Need help understanding memcached stats
Garth Webb
garth at sixapart.com
Mon Feb 12 20:28:17 UTC 2007
You can look at 'get_hits' and 'get_misses' to get an idea of how your
cache is doing. These are the number of times a 'get' request tried to
retrieve something and got it, or found nothing respectively. In your
case:
100 * 281577/(281577+5381) == 98%
A 98% hit rate is very good.
Garth
On Mon, 2007-02-12 at 10:09 -0500, Scott Newman wrote:
> I'm new to memcached, and I'm having trouble understanding what the
> numbers in the stats output. I looked around, but couldn't find much
> documentation beyond misses and hits.
>
> If anyone knows of some documentation, or would be willing to explain
> what the numbers represent, I'd be grateful.
>
> Here are the stats I'm looking at. I can't tell from looking at them
> if my cache is tuned well.
>
> STAT pid 1815
> STAT uptime 235303
> STAT time 1171292111
> STAT version 1.2.0
> STAT pointer_size 32
> STAT rusage_user 3.765427
> STAT rusage_system 11.224293
> STAT curr_items 601
> STAT total_items 5378
> STAT bytes 12735133
> STAT curr_connections 47
> STAT total_connections 303
> STAT connection_structures 62
> STAT cmd_get 286958
> STAT cmd_set 5378
> STAT get_hits 281577
> STAT get_misses 5381
> STAT bytes_read 75947133
> STAT bytes_written 1068293702
> STAT limit_maxbytes 268435456
More information about the memcached
mailing list