summaryrefslogtreecommitdiff
path: root/lib/842
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2016-05-23 16:24:05 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-26 12:13:18 +0200
commit6052eb871217c0679ac63779fc5e43eb49c83b0c (patch)
treec90da5b2d63a284c9ef70c36ab0926ea61ed585c /lib/842
parent6cc5b73d79697e1a529249572ac022192f1ddffd (diff)
kernek/fork.c: allocate idle task for a CPU always on its local node
commit 725fc629ff2545b061407305ae51016c9f928fce upstream. 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() [akpm@linux-foundation.org: use NUMA_NO_NODE, not a bare -1] Link: http://lkml.kernel.org/r/1463492694-15833-1-git-send-email-andi@firstfloor.org Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/842')
0 files changed, 0 insertions, 0 deletions