sched/numa: Stay on the same node if CLONE_VM
authorRik van Riel <riel@redhat.com>
Mon, 7 Oct 2013 10:29:26 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 12:47:57 +0000 (14:47 +0200)
commit5e1576ed0e54d419286a8096133029062b6ad456
tree2394e5c0ed3783e36f23961c0330276cde820e03
parent0f19c17929c952c6f0966d93ab05558e7bf814cc
sched/numa: Stay on the same node if CLONE_VM

A newly spawned thread inside a process should stay on the same
NUMA node as its parent. This prevents processes from being "torn"
across multiple NUMA nodes every time they spawn a new thread.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1381141781-10992-49-git-send-email-mgorman@suse.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
kernel/fork.c
kernel/sched/core.c