Memcache and Slab Size
Posted on 2009-04-20
I'm trying to better understand how memcache's slabs work. Currently I'm storing thousands of very small items in memcache, and many are expiring way too soon. When I look at the stats, it shows memcache still has plenty of available memory.
So I'm wondering.. When memcache receives an item, and decides it should go into slab 7, does it evict items in slab 7 if that slab is full , even though memcache itself still has plenty of available memory? Or does it create a new slab, and store the item in there, leaving the existing items in slab 7 untouched?