From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 27 Dec 2007 11:53:43 -0800 (PST) From: Christoph Lameter Subject: Re: SLUB In-Reply-To: <47740228.2010508@hp.com> Message-ID: References: <476A850A.1080807@hp.com> <476AFC6C.3080903@hp.com> <476B122E.7010108@hp.com> <4773B50B.6060206@hp.com> <47740228.2010508@hp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Mark Seger Cc: linux-mm@kvack.org List-ID: On Thu, 27 Dec 2007, Mark Seger wrote: > > Order = 0. So Total would be 4096 << 0 = 4096. Wrong value. > > > I'm not sure what your 'wong value. I think it's because I said page_size << > order instead of (page_size << order ) * number of slabs, right? Right. > one more thing - can I assume order is a constant for a particular type of a > slab and only need to read it at initialization time? Correct. Only the number of slabs and the number of objects changes. -- 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