Suggestion for future version of memcached?

Jehiah Czebotar jehiah at
Sat Dec 30 19:59:28 UTC 2006

On 12/30/06, Randy Wigginton <krw at> wrote:
> Why would I want this?  So I can get accurate statistics about memory
> used by non-expired objects.  For example, in using memcache for
> session management, it is hard to see whether the instance is large
> enough or not.
> Also would be nice to see stats on ejected non-expired objects; but
> that might exist already, I'm not sure.

I hadn't thought of this; but i think two separate counters added to
the stats might be quite useful (and easy to implement). One to show
the number of elements ejected before they expired (via LRU), another
showing the number of elements ejected after they expired. Then you
could watch the rate of growth on both numbers and be able to gauge if
your pool has enough memory or not.

More information about the memcached mailing list