SHM_LOCK question
Manfred Spraul (manfreds@colorfullife.com)
Fri, 08 Oct 1999 11:26:00 +0200
SHM_LOCK locks pages in memory, but vmscan.c ignores that:
* it scans the associated vma.
* the pages are removed from the page tables, ie there will be a "soft
pagefault" during the next access of this page.
* swap_out() needs the kernel lock, ie it's very important that we avoid
unnecessary operations.
What about setting VM_LOCKED in shmctl(SHM_LOCK)?
[perhaps a new flags will be required, because mlock()/munlock() should
not be able to clear this flag]
--
Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/