From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 30 Nov 2006 11:06:24 -0800 (PST) From: Christoph Lameter Subject: Re: [RFC][PATCH 5/6] slab: kmem_cache_objs_to_pages() In-Reply-To: <1164912917.6588.155.camel@twins> Message-ID: References: <20061130101451.495412000@chello.nl> > <20061130101922.175620000@chello.nl> > <1164912917.6588.155.camel@twins> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Peter Zijlstra Cc: netdev@vger.kernel.org, linux-mm@kvack.org, David Miller List-ID: On Thu, 30 Nov 2006, Peter Zijlstra wrote: > Right, perhaps my bad in wording the intent; the needed information is > how many more pages would I need to grow the slab with in order to store > so many new object. Would you not have to take objects currently available in caches into account? If you are short on memory then a flushing of all the caches may give you the memory you need (especially on a system with a large number of processors). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org