Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161008AbVLODf6 (ORCPT ); Wed, 14 Dec 2005 22:35:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161009AbVLODf6 (ORCPT ); Wed, 14 Dec 2005 22:35:58 -0500 Received: from waste.org ([64.81.244.121]:45218 "EHLO waste.org") by vger.kernel.org with ESMTP id S1161008AbVLODf5 (ORCPT ); Wed, 14 Dec 2005 22:35:57 -0500 Date: Wed, 14 Dec 2005 19:29:04 -0800 From: Matt Mackall To: Matthew Dobson Cc: Rik van Riel , linux-kernel@vger.kernel.org, andrea@suse.de, Sridhar Samudrala , pavel@suse.cz, Andrew Morton , Linux Memory Management Subject: Re: [RFC][PATCH 1/6] Create Critical Page Pool Message-ID: <20051215032904.GB11856@waste.org> References: <439FCECA.3060909@us.ibm.com> <439FCF4E.3090202@us.ibm.com> <43A047A1.9030308@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43A047A1.9030308@us.ibm.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1837 Lines: 43 On Wed, Dec 14, 2005 at 08:26:09AM -0800, Matthew Dobson wrote: > Rik van Riel wrote: > > On Tue, 13 Dec 2005, Matthew Dobson wrote: > > > > > >>Create the basic Critical Page Pool. Any allocation specifying > >>__GFP_CRITICAL will, as a last resort before failing the allocation, try > >>to get a page from the critical pool. For now, only singleton (order 0) > >>pages are supported. > > > > > > How are you going to limit the number of GFP_CRITICAL > > allocations to something smaller than the number of > > pages in the pool ? > > We can't. > > > > Unless you can do that, all guarantees are off... > > Well, I was careful not to use the word guarantee in my post. ;) The idea > is not to offer a 100% guarantee that the pool will never be exhausted. > The idea is to offer a pool that, sized appropriately, offers a very good > chance of surviving your emergency situation. The definition of what is a > critical allocation and what the emergency situation is left intentionally > somewhat vague, so as to offer more flexibility. For our use, certain > networking allocations are critical and our emergency situation is a 2 > minute window of potential exreme memory pressure. For others it could be > something completely different, but the expectation is that the emergency > situation would be of a finite time, since the pool is a fixed size. What's your plan for handling the no-room-to-receive-ACKs problem? Without addressing this, this is a non-starter for most of the network OOM problems I care about. -- Mathematics is the supreme nostalgia of our time. - 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/