From: Mel Gorman Date: Mon, 7 Oct 2013 10:29:18 +0000 (+0100) Subject: sched/numa: Favor placing a task on the preferred node X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~40^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c8a50aa873a7e1d6cc0913362051ff9912dc6ca;p=pandora-kernel.git 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 Reviewed-by: Rik van Riel Cc: Andrea Arcangeli Cc: Johannes Weiner Cc: Srikar Dronamraju Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1381141781-10992-41-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed