On Tue, Feb 05, 2008 at 02:06:23PM -0800, Christoph Lameter wrote:
Avoid the PT lock? The PT lock has to be taken anyway by the linux
VM.
"holding off new references until _end" = per-range mutex less scalar
and more expensive than the PT lock that has to be taken anyway.
"lightway way of locking" = mm-wide-mutex (not necessary at all if we
take advantage of the per-pte-scalar PT lock that has to be taken
anyway like in my patch)
KVM is also going to map a lot of stuff, but mapping involves mmap,
munmap/mremap/mprotect not. The size of mmap is irrelevant in both
approaches. optimizing do_exit by making the tlb-miss runtime slower
doesn't sound great to me and that's your patch does if you force GRU
to use it.
--