agreed, and i'll also take a look at try_to_swap_out as mikulas suggested.
i was thinking that this implementation would only boost the page's
reclamation priority. shrink_mmap would simply put the page on it's
reclamation LRU a little earlier than usual, and the actual work of
reclaiming the page would happen later iff the system is low on memory --
but perhaps that's too simple?
> Also is mincore really useful? Either you have the memory locked and
> then then you know that it is in core, or you haven't, then everything
> is possible. I cannot imagine a useful application for it.
vivek pai suggested mincore might be useful for applications that manage
their own user-space cache. it's easy enough to implement, and might make
it easier to port applications that depend on it to Linux.
- Chuck Lever
-- corporate: <chuckl@netscape.com> personal: <chucklever@netscape.net> or <cel@monkey.org>The Linux Scalability project: http://www.citi.umich.edu/projects/linux-scalability/
- 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/