]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Adjust scan rate in task_numa_placement
authorRik van Riel <riel@redhat.com>
Mon, 7 Oct 2013 10:29:36 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 12:48:16 +0000 (14:48 +0200)
commite4ab406483d64fc6ddbf29d42c62d72995fb0f1e
treeab48887e23b7f820380a3f415cbe0a6f64f7fecc
parentd91766bfbdcdf6992ce30ed08f8cdfc2fbc6335c
sched/numa: Adjust scan rate in task_numa_placement

Adjust numa_scan_period in task_numa_placement, depending on how much
useful work the numa code can do. The more local faults there are in a
given scan window the longer the period (and hence the slower the scan rate)
during the next window. If there are excessive shared faults then the scan
period will decrease with the amount of scaling depending on whether the
ratio of shared/private faults. If the preferred node changes then the
scan rate is reset to recheck if the task is properly placed.

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-59-git-send-email-mgorman@suse.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
kernel/sched/fair.c
mm/huge_memory.c
mm/memory.c