From: Christoph Lameter <clameter@sgi.com>
To: Mark Seger <Mark.Seger@hp.com>
Cc: linux-mm@kvack.org
Subject: Re: SLUB
Date: Fri, 21 Dec 2007 13:41:38 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0712211338380.3795@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <476B122E.7010108@hp.com>
On Thu, 20 Dec 2007, Mark Seger wrote:
> I did some preliminary prototyping and I guess I'm not sure of the math. If I
> understand what you're saying, an object has a particular size, but given the
> fact that you may need alignment, the true size is really the slab size, and
> the difference is the overhead. What I don't understand is how to calculate
> how much memory a particular slab takes up. If the slabsize is really the
If you want the use in terms of pages allocated from the page allocator
then you do
slabs << order
If you want to use in actual bytes in allocated objects by the user of
a slab cache then you can do
objects * obj_size
> this IS close enough? If so, what's the significance of the number of slabs?
Its the amount of pages that were taken from the page allocator.
> Would I divide the 15997K by the number of slabs to find out how big a single
> slab is? I would have thought that's what the slab_size is but clearly it
> isn't.
The size of a single slab that contains multiple objects is
PAGE_SIZE << order
> 49 N0=19 N1=30
>
> which I'm guessing may mean 19 objects are allocated to socket 0 and 30 to
> socket 1? this is a dual-core, dual-socket system.
Right. There are 49 objects in use. 19 of those are on node 0 and 30 on
node 0. The Nx values only show up on NUMA systems otherwise this will be
omitted.
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-12-21 21:41 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 15:06 SLUB Mark Seger
2007-12-20 19:44 ` SLUB Christoph Lameter
2007-12-20 23:36 ` SLUB Mark Seger
2007-12-21 1:09 ` SLUB Mark Seger
2007-12-21 1:27 ` SLUB Mark Seger
2007-12-21 21:41 ` Christoph Lameter [this message]
2007-12-27 14:22 ` SLUB Mark Seger
2007-12-27 15:59 ` SLUB Mark Seger
2007-12-27 19:43 ` SLUB Christoph Lameter
2007-12-27 19:57 ` SLUB Mark Seger
2007-12-27 19:58 ` SLUB Christoph Lameter
2007-12-27 20:17 ` SLUB Mark Seger
2007-12-27 20:55 ` SLUB Mark Seger
2007-12-27 20:59 ` SLUB Christoph Lameter
2007-12-27 23:49 ` collectl and the new slab allocator [slub] statistics Mark Seger
2007-12-27 23:52 ` Christoph Lameter
2007-12-28 15:10 ` Mark Seger
2007-12-31 18:30 ` Mark Seger
2007-12-27 19:40 ` SLUB Christoph Lameter
2007-12-27 19:51 ` SLUB Mark Seger
2007-12-27 19:53 ` SLUB Christoph Lameter
2007-12-21 21:32 ` SLUB Christoph Lameter
2007-12-21 16:59 ` SLUB Mark Seger
2007-12-21 21:37 ` SLUB Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0712211338380.3795@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=Mark.Seger@hp.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox