]>
Commit | Line | Data |
---|---|---|
8043cbef GKH |
1 | From 14800984706bf6936bbec5187f736e928be5c218 Mon Sep 17 00:00:00 2001 |
2 | From: Mike Galbraith <efault@gmx.de> | |
3 | Date: Fri, 7 Nov 2008 15:26:50 +0100 | |
4 | Subject: sched: fine-tune SD_MC_INIT | |
5 | ||
6 | From: Mike Galbraith <efault@gmx.de> | |
7 | ||
8 | commit 14800984706bf6936bbec5187f736e928be5c218 upstream. | |
9 | ||
10 | Tune SD_MC_INIT the same way as SD_CPU_INIT: | |
11 | unset SD_BALANCE_NEWIDLE, and set SD_WAKE_BALANCE. | |
12 | ||
13 | This improves vmark by 5%: | |
14 | ||
15 | vmark 132102 125968 125497 messages/sec avg 127855.66 .984 | |
16 | vmark 139404 131719 131272 messages/sec avg 134131.66 1.033 | |
17 | ||
18 | Signed-off-by: Mike Galbraith <efault@gmx.de> | |
19 | Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> | |
20 | Signed-off-by: Ingo Molnar <mingo@elte.hu> | |
21 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
22 | ||
23 | --- | |
24 | include/linux/topology.h | 2 +- | |
25 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
26 | ||
27 | --- a/include/linux/topology.h | |
28 | +++ b/include/linux/topology.h | |
29 | @@ -120,10 +120,10 @@ void arch_update_cpu_topology(void); | |
30 | .wake_idx = 1, \ | |
31 | .forkexec_idx = 1, \ | |
32 | .flags = SD_LOAD_BALANCE \ | |
33 | - | SD_BALANCE_NEWIDLE \ | |
34 | | SD_BALANCE_FORK \ | |
35 | | SD_BALANCE_EXEC \ | |
36 | | SD_WAKE_AFFINE \ | |
37 | + | SD_WAKE_BALANCE \ | |
38 | | SD_SHARE_PKG_RESOURCES\ | |
39 | | BALANCE_FOR_MC_POWER, \ | |
40 | .last_balance = jiffies, \ |