[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Reclaim orphaned swap pages




On Mon, 2 Apr 2001, Richard Jerrell wrote:

> > Actually if vm_enough_memory fails that prevents oom, apps get ENOMEM
> > instead of killed by oom_kill later. Moreover vm_enough_memory is long
> > different and apparently it's just overestimating free pages that makes
> > people unhappy with the resulted higher oom_kill/ENOMEM rate. If you
> 
> That's not really what I'm getting at.  Currently if you run a memory
> intensive application, quit after it's pages are on an lru, and try to
> restart, you won't be able to get the memory.  This is because pages which
> are sitting around in the swap cache are not counted as free, and they
> should be, because they are freeable.

No. Dirty swapcache pages which have pte's referencing them are not
freeable.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/