Skip to content

Commit 073b5be

Browse files
Mel Gormaningomolnar
authored andcommitted
sched/numa: Remove check that skips small VMAs
task_numa_work skips small VMAs. At the time the logic was to reduce the scanning overhead which was considerable. It is a dubious hack at best. It would make much more sense to cache where faults have been observed and only rescan those regions during subsequent PTE scans. Remove this hack as motivation to do it properly in the future. 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-29-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 1bc115d commit 073b5be

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎kernel/sched/fair.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,10 +1127,6 @@ void task_numa_work(struct callback_head *work)
11271127
if (!vma_migratable(vma))
11281128
continue;
11291129

1130-
/* Skip small VMAs. They are not likely to be of relevance */
1131-
if (vma->vm_end - vma->vm_start < HPAGE_SIZE)
1132-
continue;
1133-
11341130
do {
11351131
start = max(start, vma->vm_start);
11361132
end = ALIGN(start + (pages << PAGE_SHIFT), HPAGE_SIZE);

0 commit comments

Comments
 (0)