path: root/kernel/kexec.c
diff options
authorAndi Kleen <>2016-05-23 16:24:05 -0700
committerLinus Torvalds <>2016-05-23 17:04:14 -0700
commit725fc629ff2545b061407305ae51016c9f928fce (patch)
treed9b5ace469a064da5439bd6c96d1e714df85bab2 /kernel/kexec.c
parent5c8ccefdf46c5f87d87b694c7fbc04941c2c99a5 (diff)
kernek/fork.c: allocate idle task for a CPU always on its local node
Linux preallocates the task structs of the idle tasks for all possible CPUs. This currently means they all end up on node 0. This also implies that the cache line of MWAIT, which is around the flags field in the task struct, are all located in node 0. We see a noticeable performance improvement on Knights Landing CPUs when the cache lines used for MWAIT are located in the local nodes of the CPUs using them. I would expect this to give a (likely slight) improvement on other systems too. The patch implements placing the idle task in the node of its CPUs, by passing the right target node to copy_process() [ use NUMA_NO_NODE, not a bare -1] Link: Signed-off-by: Andi Kleen <> Cc: Thomas Gleixner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'kernel/kexec.c')
0 files changed, 0 insertions, 0 deletions