Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757160AbXHUVAk (ORCPT ); Tue, 21 Aug 2007 17:00:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752914AbXHUVAa (ORCPT ); Tue, 21 Aug 2007 17:00:30 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:51667 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752898AbXHUVA3 (ORCPT ); Tue, 21 Aug 2007 17:00:29 -0400 Date: Tue, 21 Aug 2007 14:00:28 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Mel Gorman cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, dkegel@google.com, Peter Zijlstra , David Miller , Nick Piggin Subject: Re: [RFC 5/7] Laundry handling for direct reclaim In-Reply-To: <20070821151907.GM11329@skynet.ie> Message-ID: References: <20070820215040.937296148@sgi.com> <20070820215316.994224842@sgi.com> <20070821151907.GM11329@skynet.ie> 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: 921 Lines: 24 On Tue, 21 Aug 2007, Mel Gorman wrote: > > + nr_reclaimed += shrink_zones(priority, zones, &sc, &laundry); > > shrink_slab(sc.nr_scanned, gfp_mask, lru_pages); > > if (reclaim_state) { > > nr_reclaimed += reclaim_state->reclaimed_slab; > > reclaim_state->reclaimed_slab = 0; > > } > > + > > total_scanned += sc.nr_scanned; > > + > > Could this not isolate a load of dirty pages on the laundry list and then > shortly later go to sleep in congestion_wait() ? It would appear that with > writeout deferred that the going to sleep is going to do nothing to help > the situation. Yep that seems to be the problem that Peter saw. We need to throttle later. - 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/