summaryrefslogtreecommitdiffstats
path: root/include/linux/pm_clock.h
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2013-10-07 11:29:17 +0100
committerIngo Molnar <mingo@kernel.org>2013-10-09 14:47:25 +0200
commitfb13c7ee0ed387bd6bec4b4024a4d49b1bd504f1 (patch)
treeb5892db95bf0b47375cc43005291006aeb115772 /include/linux/pm_clock.h
parentac66f5477239ebd3c4e2cbf2f591ef387aa09884 (diff)
downloadlinux-stable-fb13c7ee0ed387bd6bec4b4024a4d49b1bd504f1.tar.gz
linux-stable-fb13c7ee0ed387bd6bec4b4024a4d49b1bd504f1.tar.bz2
linux-stable-fb13c7ee0ed387bd6bec4b4024a4d49b1bd504f1.zip
sched/numa: Use a system-wide search to find swap/migration candidates
This patch implements a system-wide search for swap/migration candidates based on total NUMA hinting faults. It has a balance limit, however it doesn't properly consider total node balance. In the old scheme a task selected a preferred node based on the highest number of private faults recorded on the node. In this scheme, the preferred node is based on the total number of faults. If the preferred node for a task changes then task_numa_migrate will search the whole system looking for tasks to swap with that would improve both the overall compute balance and minimise the expected number of remote NUMA hinting faults. Not there is no guarantee that the node the source task is placed on by task_numa_migrate() has any relationship to the newly selected task->numa_preferred_nid due to compute overloading. Signed-off-by: Mel Gorman <mgorman@suse.de> [ Do not swap with tasks that cannot run on source cpu] 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> [ Fixed compiler warning on UP. ] Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1381141781-10992-40-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/pm_clock.h')
0 files changed, 0 insertions, 0 deletions