Eyal, For doing that, memcached should have a fully-automated eviction mechanism, which is currently not in place. The reclaim per slab mechnism is something in that direction but it doesn't solve the issue of memory size grows "infinitely" due to expired objects.
Yiftach On Fri, Jun 8, 2012 at 4:15 PM, eyal <[email protected]> wrote: > Hi > > I was wandering if is there any modification of memcached where the > cache size can be dynamically controlled? > If there is no such thing, how difficult will it be to create one? > The idea is that once in a while a thread will wake up and change the > cache size according to the available memory, such that the overall > used memory in the machine won't exceed a defined percentage. I think > that when the cache suppose to shrink, the free memory will be > released according to the memcached LRU algorithm. > > Thanks > Eyal -- Yiftach Shoolman +972-54-7634621
