Rename NUMA_BIAS to NUMA_TTWU_BIAS to clarify what it does.
Also, disable by default, it seems too agressive. Also provide an
alternative to play with, instead of altering the prev cpu, alter
the waking cpu, maybe that's less agressive.
No clear data either way for the moment.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-q93t6n7j1jaz36yh056msb5d@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
}
rcu_read_lock();
- if (sched_feat_numa(NUMA_BIAS) && node != -1) {
+ if (sched_feat_numa(NUMA_TTWU_BIAS) && node != -1) {
/*
* For fork,exec find the idlest cpu in the home-node.
*/
if (node_cpu < 0)
goto find_sd;
- prev_cpu = node_cpu;
+ if (sched_feat_numa(NUMA_TTWU_TO))
+ cpu = node_cpu;
+ else
+ prev_cpu = node_cpu;
}
}
SCHED_FEAT(NUMA, true)
SCHED_FEAT(NUMA_FORCE_BIG, false)
SCHED_FEAT(NUMA_HOT, true)
-SCHED_FEAT(NUMA_BIAS, true)
+SCHED_FEAT(NUMA_TTWU_BIAS, false)
+SCHED_FEAT(NUMA_TTWU_TO, false)
SCHED_FEAT(NUMA_PULL, true)
SCHED_FEAT(NUMA_PULL_BIAS, true)
#endif