Alex Rivera | Logout

Memcached eviction when cache is 40% full

Asked 2012-06-18T19:42:11.980
8

I am seeing evictions when the memcached is only 40% full. How is that possible?

Edit
Report

1 Answer

1

Memcached stores data according to slabs of different memory chunks. If the different memory chunks are already allocated, then the Least recently used algorithm runs on the slab and evicts the data out, even if the there are no data in other memory slabs.

Therefore a large distribution of data sizes can be responsible for this problem. By having multiple instances of memcached running and using it as a distributed system, the issue can be reduced.

answered 2012-06-20T11:49:35.027

Your Answer