diff options
author | Rik van Riel <riel@redhat.com> | 2013-10-07 06:29:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-09 08:48:16 -0400 |
commit | 04bb2f9475054298f0c67a89ca92cade42d3fe5e (patch) | |
tree | ab48887e23b7f820380a3f415cbe0a6f64f7fecc /mm/huge_memory.c | |
parent | 3e6a9418cf05638b103e34f5d13be0321872e623 (diff) |
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>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 7ab4e32afe12..1be2a1f95b61 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -1296,8 +1296,10 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
1296 | page_nid = page_to_nid(page); | 1296 | page_nid = page_to_nid(page); |
1297 | last_cpupid = page_cpupid_last(page); | 1297 | last_cpupid = page_cpupid_last(page); |
1298 | count_vm_numa_event(NUMA_HINT_FAULTS); | 1298 | count_vm_numa_event(NUMA_HINT_FAULTS); |
1299 | if (page_nid == this_nid) | 1299 | if (page_nid == this_nid) { |
1300 | count_vm_numa_event(NUMA_HINT_FAULTS_LOCAL); | 1300 | count_vm_numa_event(NUMA_HINT_FAULTS_LOCAL); |
1301 | flags |= TNF_FAULT_LOCAL; | ||
1302 | } | ||
1301 | 1303 | ||
1302 | /* | 1304 | /* |
1303 | * Avoid grouping on DSO/COW pages in specific and RO pages | 1305 | * Avoid grouping on DSO/COW pages in specific and RO pages |