I wanted to know, overtime, how many cache hits and misses my instance was getting. Searched a lot and finally found this perl script:
http://code.google.com/p/memcache-top/
Usage is very simple. Save the file, give it execution permissions, then just run:
./memcache-top.pl –commands –cumulative
Here’s an output example:
Seems like I’m doing fine, caching the right parts! Hit over 80% and only half of my allocated memcached memory being used… (that’s because I had recently restarted it, so usually it keeps filled).