> 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.
Not easily, no. It's best to just give it the most RAM you want it to use and leave it at that. Most OS's can't always release memory from a program back to the OS at runtime, anyway. Depending on the size/type of the allocation a bit too...
