Regarding Memory Allocation

Clint Webb webb.clint at gmail.com
Thu Aug 30 08:30:09 UTC 2007


The slab allocator is the default.

The FAQ is saying that you should use the default (which is the slab way),
but if you have a particular reason otherwise, you can use the malloc/free
method.

There are very few reasons why you would not want to use the default.


On 8/30/07, Ajinkya Nahar <ajinkya at truesparrow.com> wrote:
>
>  Hi all,
>
>
>
> What is the default memory allocation technique in memcached?
> *Is it using the in built slab allocator or using *malloc/free? *As per
> the FAQ (
> http://www.socialtext.net/memcached/index.cgi?faq#how_does_memcached_s_memory_allocation_work_why_not_use_malloc_free_why_the_hell_does_it_use_slabs/)
> it is a compile time option.* *But no details are given about how do we
> configure or set this option?* *Please let me know your
> comments/suggestions on this.* *Thanks in advance.* *Regards,* *Ajinkya*
>
>
>



-- 
"Be excellent to each other"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070830/a3161c83/attachment.htm


More information about the memcached mailing list