Hi Guys,

im running a specific case where i don't want (actually can't have) to have 
evicted items (evictions = 0 ideally)... now i have created some simple 
algo that lock the cache, goes through linked list and evicts items... it 
makes some problems, like 10-20ms cache locks on some cases.

Now im thinking about going through each slab memory (slabs keep a list of 
allocated memory regions) ... looking for items, if expired item is found, 
evict it... this way i can go eg. 10k items or 1MB of memory at a time + 
pick slabs with high utilization and run this "additional" eviction only on 
them... so it'll prevent allocating memory just because unneded data with 
short TTL is occupying HEAD of the list.

With this linked list eviction im able to run on 2-3GB of memory... without 
it 16GB of memory is exhausted in 1-2h and then memcached starts to kill 
"good" items (leaving expired ones wasting memory)...

Any comments?
Thanks.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to