diff options
author | Nick Piggin <nickpiggin@yahoo.com.au> | 2005-06-25 17:57:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:42 -0400 |
commit | 147cbb4bbe991452698f0772d8292f22825710ba (patch) | |
tree | cb86550d7e440e7dfbe22b0af6d2cfc991cb76cf /include/linux/topology.h | |
parent | cafb20c1f9976a70d633bb1e1c8c24eab00e4e80 (diff) |
[PATCH] sched: balance on fork
Reimplement the balance on exec balancing to be sched-domains aware. Use this
to also do balance on fork balancing. Make x86_64 do balance on fork over the
NUMA domain.
The problem that the non sched domains aware blancing became apparent on dual
core, multi socket opterons. What we want is for the new tasks to be sent to
a different socket, but more often than not, we would first load up our
sibling core, or fill two cores of a single remote socket before selecting a
new one.
This gives large improvements to STREAM on such systems.
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/linux/topology.h')
-rw-r--r-- | include/linux/topology.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h index b23ec64df7f1..665597207def 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h | |||
@@ -93,6 +93,7 @@ | |||
93 | .idle_idx = 0, \ | 93 | .idle_idx = 0, \ |
94 | .newidle_idx = 0, \ | 94 | .newidle_idx = 0, \ |
95 | .wake_idx = 0, \ | 95 | .wake_idx = 0, \ |
96 | .forkexec_idx = 0, \ | ||
96 | .flags = SD_LOAD_BALANCE \ | 97 | .flags = SD_LOAD_BALANCE \ |
97 | | SD_BALANCE_NEWIDLE \ | 98 | | SD_BALANCE_NEWIDLE \ |
98 | | SD_BALANCE_EXEC \ | 99 | | SD_BALANCE_EXEC \ |
@@ -123,6 +124,7 @@ | |||
123 | .idle_idx = 0, \ | 124 | .idle_idx = 0, \ |
124 | .newidle_idx = 1, \ | 125 | .newidle_idx = 1, \ |
125 | .wake_idx = 1, \ | 126 | .wake_idx = 1, \ |
127 | .forkexec_idx = 0, \ | ||
126 | .flags = SD_LOAD_BALANCE \ | 128 | .flags = SD_LOAD_BALANCE \ |
127 | | SD_BALANCE_NEWIDLE \ | 129 | | SD_BALANCE_NEWIDLE \ |
128 | | SD_BALANCE_EXEC \ | 130 | | SD_BALANCE_EXEC \ |