Re: [PATCH 1/2] sched, numa, mm: Count WS scanning against presentPTEs, not virtual memory ranges

From: Rik van Riel
Date: Wed Nov 14 2012 - 13:37:57 EST


On 11/14/2012 03:50 AM, Ingo Molnar wrote:
From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

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

For this we modify mm/mprotect.c::change_protection() to return the
number of ptes modified. (No change in functionality.)

We need to figure out what we actually want here.

Do we want to mark 256MB as non-present, or do we want to leave
behind 256MB of non-present (NUMA) memory? :)

--
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/