Memory management

Jure Petrovic fonz at
Mon Mar 26 12:32:03 UTC 2007

I think I have made a mistake in my previous post.

When an object falls into a slab class, it always takes full size
of that class. So, if for example we have a 50 bytes object it will
be stored in 64-byte slab class and will take whole 64 bytes (50 b + 14
b unused). 

Attacted updated pdf schematics.

Please correct me, if I am wrong.

> On Sun, 2007-03-25 at 11:30 -0700, Steven Grimm wrote:
> > Slab sizes -- or rather, the sizes of the items in each particular class 
> > of slabs -- are fixed at startup. Can you give an example of the kind of 
> > fragmentation you're seeing (or expecting to see)?
> > 
> > -Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig25-mc_internal_frag.pdf
Type: application/pdf
Size: 38030 bytes
Desc: not available
Url :

More information about the memcached mailing list