Some question abt memcached
sgrimm at facebook.com
Fri Dec 8 19:32:56 UTC 2006
howard chen wrote:
> currently i am using 1.1.12, how can I find out the ratio
> (approximation is okay),
> and how abt 1.2.x ?
Once your cache fills up, you can use the "stats" command. Look at the
ratio between the "bytes" stat (the total amount of memory actually in
use) and the "limit_maxbytes" stat (the total amount of memory allocated
once the cache is full.)
That works in both 1.1.x and 1.2.x.
It's also possible to figure out the ratio when the cache isn't full,
but that's more complicated; you have to use "stats slabs" and subtract
out the space that hasn't been used yet in each slab.
More information about the memcached