Thanks Matt.  I did look a bit through the 'stats slabs' command, but
perhaps I'm not interpreting it correctly.  In the most basic test,
when I put in a 100 byte object, I'm seeing a slab being created with
a chunk size of 176.  However, 'stats sizes' shows me one item of
'192'.  So there's part of my confusion...am I using 176 bytes for the
object or 192?

The second part of my confusion is the ability to actually see that
100 byte object.  If instead of 100 bytes, I use 150, I'm not seeing
any difference in the output of 'stats slabs' or 'stats sizes'.
Obviously I can do these contrived tests and know what it is I'm
putting into the cache, but I'm concerned that when it moves into a
production setting I won't know the exact size of all the objects in
the cache.  I'm using server version 1.2.8 at the moment.

Am I reading these stats incorrectly?

Any detailed help would be really appreciated.

Thanks so much.

On Dec 4, 12:25 pm, Matt Ingenthron <[email protected]> wrote:
> Hi aprildtd,
>
> aprildtd wrote:
> > Hello all.  I'm just beginning to play with memcache, and I read
> > somewhere that talked about some inefficiencies with the slab
> > allocator.  I'm not too concerned at the moment, but I was wondering
> > if you could help me monitor that?  I've looked through some of the
> > basic stats and can see how much memory has been allocated, but I
> > can't see how much is actually being used.
>
> You may want to look at "stats slabs".
>
> http://code.google.com/p/memcached/wiki/FAQ#How_does_memcached%27s_me...http://github.com/memcached/memcached/blob/master/doc/protocol.txt#L468
>
> Hope that helps,
>
> - Matt

Reply via email to