From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 20 Aug 2007 13:27:30 -0700 (PDT) From: Christoph Lameter Subject: Re: [RFC 2/9] Use NOMEMALLOC reclaim to allow reclaim if PF_MEMALLOC is set In-Reply-To: <1187641056.5337.32.camel@lappy> Message-ID: References: <20070814153021.446917377@sgi.com> <20070814153501.305923060@sgi.com> <20070818071035.GA4667@ucw.cz> <1187641056.5337.32.camel@lappy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Peter Zijlstra Cc: Pavel Machek , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, dkegel@google.com, David Miller , Nick Piggin List-ID: On Mon, 20 Aug 2007, Peter Zijlstra wrote: > > Plus the same issue can happen today. Writes are usually not completed > > during reclaim. If the writes are sufficiently deferred then you have the > > same issue now. > > Once we have initiated (disk) writeout we do not need more memory to > complete it, all we need to do is wait for the completion interrupt. We cannot reclaim the page as long as the I/O is not complete. If you have too many anonymous pages and the rest of memory is dirty then you can get into OOM scenarios even without this patch. > Networking is different here in that an unbounded amount of net traffic > needs to be processed in order to find the completion event. Its not that different. Pages are pinned during writeout from reclaim and it is not clear when the write will complete. There are no bounds that I know in reclaim for the writeback of dirty anonymous pages. But some throttling function like for dirty pages is likely needed for network traffic. -- 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-mm.org/ . Don't email: email@kvack.org