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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.