From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 2 Apr 2001 21:19:33 -0300 (BRT) From: Marcelo Tosatti Subject: Re: [PATCH] Reclaim orphaned swap pages In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Richard Jerrell Cc: Szabolcs Szakacsits , linux-mm@kvack.org List-ID: 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/