Alex,Shi
3c93717cfa
sched: Fix over-scheduling bug
...
Commit e70971591
("sched: Optimize unused cgroup configuration") introduced
an imbalanced scheduling bug.
If we do not use CGROUP, function update_h_load won't update h_load. When the
system has a large number of tasks far more than logical CPU number, the
incorrect cfs_rq[cpu]->h_load value will cause load_balance() to pull too
many tasks to the local CPU from the busiest CPU. So the busiest CPU keeps
going in a round robin. That will hurt performance.
The issue was found originally by a scientific calculation workload that
developed by Yanmin. With that commit, the workload performance drops
about 40%.
CPU before after
00 : 2 : 7
01 : 1 : 7
02 : 11 : 6
03 : 12 : 7
04 : 6 : 6
05 : 11 : 7
06 : 10 : 6
07 : 12 : 7
08 : 11 : 6
09 : 12 : 6
10 : 1 : 6
11 : 1 : 6
12 : 6 : 6
13 : 2 : 6
14 : 2 : 6
15 : 1 : 6
Reviewed-by: Yanmin zhang <yanmin.zhang@intel.com >
Signed-off-by: Alex Shi <alex.shi@intel.com >
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl >
LKML-Reference: <1276754893.9452.5442.camel@debian>
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2010-06-18 10:45:25 +02:00
..
2010-06-05 11:17:36 +09:30
2009-09-21 14:29:21 +02:00
2010-05-12 11:23:34 +02:00
2010-05-10 23:08:18 +02:00
2010-05-19 17:11:10 -07:00
2010-05-31 09:58:20 +02:00
2010-05-18 08:57:00 +10:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-06-24 00:02:38 -04:00
2010-03-30 22:02:32 +09:00
2010-04-05 13:19:45 -07:00
2009-12-12 13:08:14 +01:00
2010-04-02 20:12:00 +02:00
2010-05-10 23:18:47 +02:00
2010-06-04 15:21:45 -07:00
2010-05-19 11:48:18 -07:00
2010-06-01 09:22:50 -07:00
2010-05-27 09:12:44 -07:00
2010-05-27 09:12:45 -07:00
2009-09-18 09:48:52 -07:00
2010-03-29 18:55:40 +02:00
2010-03-06 11:26:46 -08:00
2010-06-04 15:21:45 -07:00
2010-05-27 09:12:47 -07:00
2009-04-05 11:04:19 -07:00
2010-05-30 09:00:03 -07:00
2009-07-18 14:19:53 +02:00
2009-12-09 14:22:14 +01:00
2010-02-03 15:13:22 +01:00
2010-04-12 12:19:18 +10:00
2010-05-26 16:15:37 +02:00
2009-11-27 06:21:57 +01:00
2010-05-04 08:39:36 +02:00
2009-11-18 16:32:12 +01:00
2010-05-20 21:04:21 -05:00
2009-12-03 11:50:11 +01:00
2010-05-11 17:33:42 -07:00
2010-02-16 15:11:08 -08:00
2010-05-27 09:12:45 -07:00
2010-05-08 18:08:30 +02:00
2010-05-21 09:37:31 -07:00
2010-03-24 16:31:21 -07:00
2010-03-30 22:02:32 +09:00
2010-05-04 05:38:16 +02:00
2010-04-06 00:15:37 +02:00
2010-05-21 09:37:30 -07:00
2010-05-20 21:04:18 -05:00
2010-06-05 11:17:37 +09:30
2009-10-11 11:20:58 -07:00
2009-12-14 23:55:32 +01:00
2010-05-19 08:18:44 +02:00
2010-02-25 10:34:26 +01:00
2009-09-24 07:20:58 -07:00
2010-03-30 22:02:32 +09:00
2010-05-27 09:12:48 -07:00
2010-05-27 09:12:53 -07:00
2010-03-12 16:04:50 -08:00
2010-06-03 17:03:08 +02:00
2010-03-30 22:02:32 +09:00
2010-05-27 09:12:51 -07:00
2010-05-17 00:21:03 +02:00
2010-05-27 09:12:46 -07:00
2010-05-27 22:38:15 +02:00
2010-05-20 21:04:27 -05:00
2010-05-27 09:12:57 -07:00
2010-05-27 09:12:44 -07:00
2010-02-10 17:47:17 -08:00
2010-05-10 11:08:34 -07:00
2010-05-10 11:08:34 -07:00
2010-05-11 16:10:47 -07:00
2010-05-18 08:27:54 -07:00
2010-05-11 16:10:47 -07:00
2010-05-10 11:08:35 -07:00
2010-05-11 16:10:47 -07:00
2010-05-10 11:08:35 -07:00
2010-05-27 09:12:48 -07:00
2010-03-30 22:02:32 +09:00
2010-05-11 12:01:10 -07:00
2009-04-06 11:14:02 +02:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2010-04-15 08:54:59 +02:00
2010-03-30 22:02:32 +09:00
2009-12-14 23:55:33 +01:00
2010-05-27 09:12:47 -07:00
2010-06-01 09:27:16 +02:00
2010-03-11 18:32:53 +01:00
2010-04-23 11:02:02 +02:00
2010-04-02 20:12:05 +02:00
2009-03-24 23:16:51 +01:00
2010-06-18 10:45:25 +02:00
2009-03-02 15:41:30 -08:00
2010-05-27 09:12:46 -07:00
2009-12-01 08:20:31 -08:00
2010-03-29 09:13:30 -07:00
2010-03-29 09:14:47 -07:00
2010-05-27 09:12:48 -07:00
2010-06-04 15:21:45 -07:00
2010-03-21 19:30:13 +01:00
2009-12-14 23:55:33 +01:00
2010-03-30 22:02:32 +09:00
2010-05-31 08:37:44 +02:00
2010-03-12 15:52:32 -08:00
2010-05-27 09:12:44 -07:00
2010-05-25 08:07:05 -07:00
2009-12-03 12:14:38 -08:00
2010-06-03 14:54:39 +02:00
2010-03-30 22:02:32 +09:00
2010-05-24 11:50:38 +02:00
2010-06-04 15:21:45 -07:00
2010-05-14 09:50:34 -04:00
2010-03-06 11:26:23 -08:00
2009-09-23 18:13:10 -07:00
2010-05-21 09:37:29 -07:00
2009-12-02 10:22:59 +01:00
2010-05-10 08:48:39 +02:00
2009-11-12 02:04:55 -08:00
2009-06-18 13:03:55 -07:00
2009-08-10 14:43:09 +02:00
2010-05-27 09:12:48 -07:00