way to find average age of cache items being deleted by LRU algorithm?

11 views
Skip to first unread message

Bennett Haselton

unread,
Jul 1, 2009, 9:14:47 PM7/1/09
to memcached
Is there a statistic that shows the average age of cache items that
are being deleted, once the cache is full and the LRU algorithm is
forcing some items to be deleted?

I looked in the output of "stats" but didn't see anything like that.

Bennett

Clint Webb

unread,
Jul 1, 2009, 10:27:45 PM7/1/09
to memc...@googlegroups.com
I dont think so, but that would actually be a very useful thing to know.



--
"Be excellent to each other"

Dustin

unread,
Jul 1, 2009, 10:40:37 PM7/1/09
to memcached
You can't get the average, but you can get the most recent, which is
generally close enough. See "age" in stats items. Note that it's per-
slab.

dormando

unread,
Jul 5, 2009, 10:55:25 PM7/5/09
to memcached

Actually, it's the 'evicted_time' stat, if the poster is asking about the
average age of items being evicted early? Otherwise the LRU is deleting
expired items. The average age matters a bit less there.

-Dormando

Reply all
Reply to author
Forward
0 new messages