Hello,<br>We are working on optimizing our memcached configuration and I came across something I don't understand. It seems as though you are able to allocate a slab (and therefore more memory) even if you have passed the command line memory limit with other slabs. The code in question is in
slabs.c in do_slabs_newslab():<br><br> if (mem_limit && mem_malloced + len > mem_limit && p->slabs > 0)<br> return 0;<br><br>So I can theoretically allocate 1 of each type of slab I don't have yet even if I am passed my memory limit. While it turns out this is advantageous (or at worst irrelevant because of the scale of the memory we are using), I am wondering what the rationale behind this code is?