how to tell when your cache is full?

Gavin M. Roy gmr at myyearbook.com
Fri May 25 18:43:48 UTC 2007


Here's an example of what you can do with the data from getStats including
monitoring evictions: (note this is a example so it won't update)

http://gordo.ehpg.net/~gmr/stats/

On 5/25/07, Gavin M. Roy <gmr at myyearbook.com> wrote:
>
> Grab 1.2.2, it has an eviction value in the stats info.  An eviction is
> when memcache removes an expired item *or* the oldest non-used item to make
> room for a new item being added.
>
> In our case we would be concerned once we started seeing 100,000+
> evictions a day.
>
> Gavin
>
> On 5/25/07, Ben Hartshorne <memcache at green.hartshorne.net> wrote:
> >
> > On Fri, May 25, 2007 at 02:10:10PM -0400, Gavin M. Roy wrote:
> > > I would imagine when you start seeing more evictions in your stats
> > than you
> > > expect, you know your cache is full.  I'd say anything else is
> > > over-complicating it.
> >
> > What do you mean by evictions?  Cache misses?  There are plenty of valid
> > reasons for cache misses that can change depending on the traffic coming
> > in rather than the state of the cache being full.
> >
> > I am using version 1.1.13; the list of stats I see are pid, uptime,
> > time, version, pointer_size, rusage_user, rusage_system, curr_items,
> > total_items, bytes, curr_connections, total_connections,
> > connection_structures, cmd_get, cmd_set, get_hits, get_misses,
> > bytes_read, bytes_written, and limit_maxbytes.  Which of these indicate
> > evictions (and what is an eviction, anyways?  ;)
> >
> > Thanks,
> >
> > -ben
> >
> > --
> > Ben Hartshorne
> > email: ben at hartshorne.net
> > http://ben.hartshorne.net
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (GNU/Linux)
> >
> > iD8DBQFGVys0KeT3tvTdv64RAnI7AJ9k7TzsGZsVHQxoKSpPmZmwePn0VACgivGO
> > uLnbbn1DpnkJG5QVcNYFELc=
> > =6HCf
> > -----END PGP SIGNATURE-----
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070525/e2fc50df/attachment-0001.html


More information about the memcached mailing list