sched, numa, mm: Count WS scanning against present PTEs, not virtual memory ranges
authorMel Gorman <mgorman@suse.de>
Wed, 14 Nov 2012 18:34:32 +0000 (18:34 +0000)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:46 +0000 (14:42 +0000)
commit9f40604cdab935e80db57b309c48659de349d4e6
tree72f77bdb7d8ab07e4db4323642db7c04eca8e9e9
parent6e5fb223e89dbe5cb5c563f8d4a4a0a7d62455a8
sched, numa, mm: Count WS scanning against present PTEs, not virtual memory ranges

By accounting against the present PTEs, scanning speed reflects the
actual present (mapped) memory.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
kernel/sched/fair.c