]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Favor placing a task on the preferred node
authorMel Gorman <mgorman@suse.de>
Mon, 7 Oct 2013 10:29:18 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 12:47:41 +0000 (14:47 +0200)
commit1f816b3c8f2be0211a238fc19300470a195a4526
treeca32297c046a3789b44e1255b94ef8d0b760d1f9
parent4bbfdbe8aa3dfcec96a42c261a52eeb4d599ee32
sched/numa: Favor placing a task on the preferred node

A tasks preferred node is selected based on the number of faults
recorded for a node but the actual task_numa_migate() conducts a global
search regardless of the preferred nid. This patch checks if the
preferred nid has capacity and if so, searches for a CPU within that
node. This avoids a global search when the preferred node is not
overloaded.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
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-41-git-send-email-mgorman@suse.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c