diff options
author | Mike Galbraith <efault@gmx.de> | 2009-09-15 09:07:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-15 10:51:16 -0400 |
commit | 0ec9fab3d186d9cbb00c0f694d4a260d07c198d9 (patch) | |
tree | 07773edcece2dd82a63265e027793fe8b2231960 /arch/ia64/include | |
parent | 6bd7821f905a8d6c471f0d6675f5cb7ea448d791 (diff) |
sched: Improve latencies and throughput
Make the idle balancer more agressive, to improve a
x264 encoding workload provided by Jason Garrett-Glaser:
NEXT_BUDDY NO_LB_BIAS
encoded 600 frames, 252.82 fps, 22096.60 kb/s
encoded 600 frames, 250.69 fps, 22096.60 kb/s
encoded 600 frames, 245.76 fps, 22096.60 kb/s
NO_NEXT_BUDDY LB_BIAS
encoded 600 frames, 344.44 fps, 22096.60 kb/s
encoded 600 frames, 346.66 fps, 22096.60 kb/s
encoded 600 frames, 352.59 fps, 22096.60 kb/s
NO_NEXT_BUDDY NO_LB_BIAS
encoded 600 frames, 425.75 fps, 22096.60 kb/s
encoded 600 frames, 425.45 fps, 22096.60 kb/s
encoded 600 frames, 422.49 fps, 22096.60 kb/s
Peter pointed out that this is better done via newidle_idx,
not via LB_BIAS, newidle balancing should look for where
there is load _now_, not where there was load 2 ticks ago.
Worst-case latencies are improved as well as no buddies
means less vruntime spread. (as per prior lkml discussions)
This change improves kbuild-peak parallelism as well.
Reported-by: Jason Garrett-Glaser <darkshikari@gmail.com>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1253011667.9128.16.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/topology.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/ia64/include/asm/topology.h b/arch/ia64/include/asm/topology.h index 47f3c51d5e27..42f1673ec83f 100644 --- a/arch/ia64/include/asm/topology.h +++ b/arch/ia64/include/asm/topology.h | |||
@@ -61,7 +61,7 @@ void build_cpu_to_node_map(void); | |||
61 | .cache_nice_tries = 2, \ | 61 | .cache_nice_tries = 2, \ |
62 | .busy_idx = 2, \ | 62 | .busy_idx = 2, \ |
63 | .idle_idx = 1, \ | 63 | .idle_idx = 1, \ |
64 | .newidle_idx = 2, \ | 64 | .newidle_idx = 0, \ |
65 | .wake_idx = 0, \ | 65 | .wake_idx = 0, \ |
66 | .forkexec_idx = 1, \ | 66 | .forkexec_idx = 1, \ |
67 | .flags = SD_LOAD_BALANCE \ | 67 | .flags = SD_LOAD_BALANCE \ |
@@ -87,10 +87,11 @@ void build_cpu_to_node_map(void); | |||
87 | .cache_nice_tries = 2, \ | 87 | .cache_nice_tries = 2, \ |
88 | .busy_idx = 3, \ | 88 | .busy_idx = 3, \ |
89 | .idle_idx = 2, \ | 89 | .idle_idx = 2, \ |
90 | .newidle_idx = 2, \ | 90 | .newidle_idx = 0, \ |
91 | .wake_idx = 0, \ | 91 | .wake_idx = 0, \ |
92 | .forkexec_idx = 1, \ | 92 | .forkexec_idx = 1, \ |
93 | .flags = SD_LOAD_BALANCE \ | 93 | .flags = SD_LOAD_BALANCE \ |
94 | | SD_BALANCE_NEWIDLE \ | ||
94 | | SD_BALANCE_EXEC \ | 95 | | SD_BALANCE_EXEC \ |
95 | | SD_BALANCE_FORK \ | 96 | | SD_BALANCE_FORK \ |
96 | | SD_BALANCE_WAKE \ | 97 | | SD_BALANCE_WAKE \ |