The slab allocator is the default.<br><br>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.<br><br>There are very few reasons why you would not want to use the default.
<br><br><br><div><span class="gmail_quote">On 8/30/07, <b class="gmail_sendername">Ajinkya Nahar</b> &lt;<a href="mailto:ajinkya@truesparrow.com">ajinkya@truesparrow.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy;">Hi all,</span></font></p>

<p><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy;">What is the default memory allocation
technique in memcached?</span></font></p>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">Is it using the in built slab
allocator or using </span></font></b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">malloc/free?</span></font></h3>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">As per the FAQ (<a href="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/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
<font color="navy"><span style="color: navy;">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/</span></font></a>)
it is a compile time option.</span></font></b></h3>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">But no details are given
about how do we configure or set this option?</span></font></b></h3>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">Please let me know your comments/suggestions
on this.</span></font></b></h3>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">Thanks in advance.</span></font></b></h3>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">Regards,</span></font></b></h3>

<h3><b><font color="navy" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: navy; font-weight: normal;">Ajinkya</span></font></b></h3>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

</div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>&quot;Be excellent to each other&quot;