Hi! The default growth factor used in memcached is 1.25 which you can control with the '-f' option (take a look at the help menu with '-h').
The lower limit of a slab class is 88 bytes and the upper limit is 1MB. The ideal growth factor depends on your use-case and if you're interested in playing around with this, you can take a look at the slab classes that memcached had created with 'stats slabs' (you could either use telnet or use your client library's functionality to get the figures). It's probably best to take a step back and look at your application. E.g. think what kind of data that you're going to cache and the sizes of those data. Other than that this may interest you (not exactly what you're after but somewhat relevant): http://torum.net/2008/12/more-memcached-space/ Cheers, Toru On Mon, Jun 29, 2009 at 3:30 PM, Harish Kumar<[email protected]> wrote: > > Hi, > > I am a new user interested in knowing the details of memcached. I am > very confused seeing the code. Can any one tell in detail or give me a > link about the memory utilisation in memcached. I had gone through > slabs.c file but I didn't understand the concept. What is the smallest > chunk of memory used. By what power the memory chunk increases. > Anticipating for a good response from the professionals. Thanks in > advance. >
