Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964820AbWA0Hfw (ORCPT ); Fri, 27 Jan 2006 02:35:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964828AbWA0Hfw (ORCPT ); Fri, 27 Jan 2006 02:35:52 -0500 Received: from uproxy.gmail.com ([66.249.92.200]:27812 "EHLO uproxy.gmail.com") by vger.kernel.org with ESMTP id S964820AbWA0Hfv convert rfc822-to-8bit (ORCPT ); Fri, 27 Jan 2006 02:35:51 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WUp6odDMigVcU/YHSASpfrK5RcOLPfb5V9TrIZnhUPri6W+ktKw8FDiuLymW08i/Si7Ebog8FaWC4H/uxh5yQ7N7e8gHzbc6PyhYIFjVIqtyBp8GtcaE2NZyvRE7/6Ya5l5zBHXKJmlwLrvVhVkRG/YVA1gsJAShJAWOhM3f0kQ= Message-ID: <84144f020601262335g49c21b62qaa729732e9275c0@mail.gmail.com> Date: Fri, 27 Jan 2006 09:35:49 +0200 From: Pekka Enberg To: Matthew Dobson Subject: Re: [patch 0/9] Critical Mempools Cc: Benjamin LaHaise , Christoph Lameter , linux-kernel@vger.kernel.org, sri@us.ibm.com, andrea@suse.de, pavel@suse.cz, linux-mm@kvack.org In-Reply-To: <43D968E4.5020300@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <1138217992.2092.0.camel@localhost.localdomain> <43D954D8.2050305@us.ibm.com> <43D95BFE.4010705@us.ibm.com> <20060127000304.GG10409@kvack.org> <43D968E4.5020300@us.ibm.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1592 Lines: 32 Hi, Benjamin LaHaise wrote: > > Personally, I'm more in favour of a proper reservation system. mempools > > are pretty inefficient. Reservations have useful properties, too -- one > > could reserve memory for a critical process to use, but allow the system > > to use that memory for easy to reclaim caches or to help with memory > > defragmentation (more free pages really helps the buddy allocator). On 1/27/06, Matthew Dobson wrote: > That's an interesting idea... Keep track of the number of pages "reserved" > but allow them to be used something like read-only pagecache... Something > along those lines would most certainly be easier on the page allocator, > since it wouldn't have chunks of pages "missing" for long periods of time. Any thoughts on what kind of allocation patterns do we have for those critical callers? The worst case is of course that for just one 32 byte critical allocation we steal away a complete page from the reserves which doesn't sound like a good idea under extreme VM pressure. For a general solution, I don't think it's enough that you simply flag an allocation GFP_CRITICAL and let the page allocator do the allocation. As as side note, we already have __GFP_NOFAIL. How is it different from GFP_CRITICAL and why aren't we improving that? Pekka - 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/