Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759601AbXHTUS3 (ORCPT ); Mon, 20 Aug 2007 16:18:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751448AbXHTUST (ORCPT ); Mon, 20 Aug 2007 16:18:19 -0400 Received: from canuck.infradead.org ([209.217.80.40]:47345 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbXHTUSS (ORCPT ); Mon, 20 Aug 2007 16:18:18 -0400 Subject: Re: [RFC 2/9] Use NOMEMALLOC reclaim to allow reclaim if PF_MEMALLOC is set From: Peter Zijlstra To: Christoph Lameter Cc: Pavel Machek , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, dkegel@google.com, David Miller , Nick Piggin In-Reply-To: References: <20070814153021.446917377@sgi.com> <20070814153501.305923060@sgi.com> <20070818071035.GA4667@ucw.cz> Content-Type: text/plain Date: Mon, 20 Aug 2007 22:17:36 +0200 Message-Id: <1187641056.5337.32.camel@lappy> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1671 Lines: 35 On Mon, 2007-08-20 at 12:00 -0700, Christoph Lameter wrote: > On Sat, 18 Aug 2007, Pavel Machek wrote: > > > > The reclaim is of particular important to stacked filesystems that may > > > do a lot of allocations in the write path. Reclaim will be working > > > as long as there are clean file backed pages to reclaim. > > > > I don't get it. Lets say that we have stacked filesystem that needs > > it. That filesystem is broken today. > > > > Now you give it second chance by reclaiming clean pages, but there are > > no guarantees that we have any.... so that filesystem is still broken > > with your patch...? > > There is a guarantee that we have some because the user space program is > executing. Meaning the executable pages can be retrieved. The amount > dirty memory in the system is limited by the dirty_ratio. So the VM can > only get into trouble if there is a sufficient amount of anonymous pages > and all executables have been reclaimed. That is pretty rare. > > 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. Networking is different here in that an unbounded amount of net traffic needs to be processed in order to find the completion event. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/