Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761327AbXHTTPS (ORCPT ); Mon, 20 Aug 2007 15:15:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754721AbXHTTPE (ORCPT ); Mon, 20 Aug 2007 15:15:04 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:45998 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754224AbXHTTPD (ORCPT ); Mon, 20 Aug 2007 15:15:03 -0400 Date: Mon, 20 Aug 2007 12:15:01 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Peter Zijlstra cc: Nick Piggin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, dkegel@google.com, David Miller , Daniel Phillips Subject: Re: [RFC 0/3] Recursive reclaim (on __PF_MEMALLOC) In-Reply-To: <1187581894.6114.169.camel@twins> Message-ID: References: <20070814142103.204771292@sgi.com> <20070815122253.GA15268@wotan.suse.de> <1187183526.6114.45.camel@twins> <20070816032921.GA32197@wotan.suse.de> <1187581894.6114.169.camel@twins> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1683 Lines: 32 On Mon, 20 Aug 2007, Peter Zijlstra wrote: > > > <> What Christoph is proposing is doing recursive reclaim and not > > > initiating writeout. This will only work _IFF_ there are clean pages > > > about. Which in the general case need not be true (memory might be > > > packed with anonymous pages - consider an MPI cluster doing computation > > > stuff). So this gets us a workload dependant solution - which IMHO is > > > bad! > > > > Although you will quite likely have at least a couple of MB worth of > > clean program text. The important part of recursive reclaim is that it > > doesn't so easily allow reclaim to blow all memory reserves (including > > interrupt context). Sure you still have theoretical deadlocks, but if > > I understand correctly, they are going to be lessened. I would be > > really interested to see if even just these recursive reclaim patches > > eliminate the problem in practice. > > were we much bothered by the buffered write deadlock? - why accept a > known deadlock if a solid solution is quite attainable? Buffered write deadlock? How does that exactly occur? Memory allocation in the writeout path while we hold locks? There are many worst case scenarios in the current reclaim implementation that are not addressed and we so far have not addressed these because the code is very sensitive and it is not clear that the complexity introduced by these changes is offset by the benefits gained. - 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/