diff options
author | Nick Piggin <nickpiggin@yahoo.com.au> | 2005-06-25 17:57:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:41 -0400 |
commit | 7897986bad8f6cd50d6149345aca7f6480f49464 (patch) | |
tree | 10a5e08e004ae685aaab6823a3774803455b7704 /include/asm-x86_64 | |
parent | 99b61ccf0bf0e9a85823d39a5db6a1519caeb13d (diff) |
[PATCH] sched: balance timers
Do CPU load averaging over a number of different intervals. Allow each
interval to be chosen by sending a parameter to source_load and target_load.
0 is instantaneous, idx > 0 returns a decaying average with the most recent
sample weighted at 2^(idx-1). To a maximum of 3 (could be easily increased).
So generally a higher number will result in more conservative balancing.
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | include/asm-x86_64/topology.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-x86_64/topology.h b/include/asm-x86_64/topology.h index 8f77e9f6bc23..fe8d80a15751 100644 --- a/include/asm-x86_64/topology.h +++ b/include/asm-x86_64/topology.h | |||
@@ -39,7 +39,11 @@ extern int __node_distance(int, int); | |||
39 | .busy_factor = 32, \ | 39 | .busy_factor = 32, \ |
40 | .imbalance_pct = 125, \ | 40 | .imbalance_pct = 125, \ |
41 | .cache_hot_time = (10*1000000), \ | 41 | .cache_hot_time = (10*1000000), \ |
42 | .cache_nice_tries = 1, \ | 42 | .cache_nice_tries = 2, \ |
43 | .busy_idx = 3, \ | ||
44 | .idle_idx = 2, \ | ||
45 | .newidle_idx = 1, \ | ||
46 | .wake_idx = 1, \ | ||
43 | .per_cpu_gain = 100, \ | 47 | .per_cpu_gain = 100, \ |
44 | .flags = SD_LOAD_BALANCE \ | 48 | .flags = SD_LOAD_BALANCE \ |
45 | | SD_BALANCE_NEWIDLE \ | 49 | | SD_BALANCE_NEWIDLE \ |