<div dir="ltr"><div class="gmail_extra">Brian,</div><div class="gmail_extra"><br></div><div class="gmail_extra">We use lots of Perl code and many Perl session in our environment. That&#39;s where malloc and calloc were getting locking the thread and would stay there forever until we restarted the freeswitch.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 7:30 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Where are you running on where malloc and calloc were locking up a thread and killing the CPU? </div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 2:49 PM, Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We haven&#39;t measured the effect in Production yet, but in the lab, it made a big difference. <div><br></div><div>The main problem that tcmalloc fixed for us was the threads locking on malloc and calloc and killing the CPU. I strongly recommend tcmalloc. In low traffic, it won&#39;t make a big difference, but in high traffic, you definitely need tcmalloc.</div><div><br></div><div>I will provide an update when I have better measurement from our production servers.</div><div><br></div><div>Regards,</div><div>Ali Pey</div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Feb 25, 2015 at 11:25 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="word-wrap:break-word">We make fairly heavy use of memory pools, which probably reduce malloc.  I suspect that using them is of little benefit but would be interested to hear to the contrary.<span><div><br><div><blockquote type="cite"><div>On Feb 24, 2015, at 2:15 PM, Tamas Jalsovszky &lt;<a href="mailto:jalsot@gmail.com" target="_blank">jalsot@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div>Great idea. Do you have any evidence whether other malloc libs (tcmalloc, jemalloc) gives better performance over glibc ones?<br><br></div>T.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 18, 2015 at 5:13 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The webpage for TCMalloc states:<div><br></div><div><p><span>You can use tcmalloc in applications you didn&#39;t compile yourself, by using LD_PRELOAD:</span></p><p><span>   $ LD_PRELOAD=&quot;/usr/lib/libtcmalloc.so&quot; blahblah</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Feb 18, 2015 at 9:59 AM, Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<div><br></div><div>Is there a way to switch to TCMalloc without recompiling freeswitch?</div><div><br></div><div>Can someone please point me to (or provide) some instructions? (Preferably for Centos 6)</div></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br></div></span></div><br></div></div><span>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=a3119e75-a1a7-443b-a5c9-25359ded6a4d&amp;cm_destination=http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=66ed4d09-d7b2-4794-8876-406982ba3dee&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=1987b5ca-5b20-4f25-8d58-6a6511dc3179&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=da4370d8-e100-4e6e-b9e9-b66549254209&amp;cm_destination=http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=81dd8dd0-3b29-4d0a-ae7d-3664ec721366&amp;cm_destination=http://www.cluecon.com" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=39f863ad-0043-47e1-8114-64b351a84d4a&amp;cm_destination=http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=129631b9-db2c-43d0-8601-adc10d491893&amp;cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=5f630567-a7d0-4188-96ac-a445a042cfd6&amp;cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=a5c9b5df-0abb-4e28-b3b0-71dca9bb36d3&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=509d0d9f-4cc2-4233-a650-ad8f73b7b1b3&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br></span></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=3996ef0e-1a9e-4a76-b143-dcf4556597d5&amp;cm_destination=http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=f018f288-0897-43f7-a9d5-cbaac19b6a46&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=40340954-2ae9-4455-be6a-96d06c6c0d81&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=b7909780-b663-4a29-ac7f-30514d11098b&amp;cm_destination=http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=3dcbd381-d749-47f7-97c4-6eea9865fc30&amp;cm_destination=http://www.cluecon.com" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=efd94a0e-4cc5-41f6-afee-4ed23039e753&amp;cm_destination=http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=1fd39132-a0f0-4cf2-8701-99efdbc90674&amp;cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=a751420e-ecd6-472d-9403-aa2eafe16a98&amp;cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=fa1d3afe-ae91-4df8-b110-b6c38b8beacb&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=b99f8833-4f63-45f1-88fc-f801a573802a&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="">-- <br><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=ffe90a76-16d0-4f0b-8785-d2c339839078&amp;cm_destination=http://www.freeswitchbook.com" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=c845113a-70b1-4120-a6ce-f95dfef87f2e&amp;cm_destination=http://www.freeswitchbook.com">http://www.freeswitchbook.com</a><br><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=76507101-9e35-4946-814f-cc54a15eaa82&amp;cm_destination=http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=3a341221-b281-402a-8695-53955058e0b1&amp;cm_destination=http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=ee80da07-f61c-4a2f-bb5a-83102f12ee79&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=b92b5efb-19e1-4d64-ad43-8c332578cbb8&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=d649a237-2f5a-4305-b84f-a2d443cb01a7&amp;cm_destination=http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=7cd1109e-be37-4da8-87fa-1799d6ef15fb&amp;cm_destination=http://www.cluecon.com" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=c4bed819-9b08-406c-b561-a7a3b3ff648f&amp;cm_destination=http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=34d0865a-ca8b-409d-9595-43a0e1b70f5a&amp;cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=7cf6b859-392a-42c9-8f7c-bd43e2ff8503&amp;cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=b2d360bb-68b0-446d-ad18-0fcb670a27a7&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=link&amp;cm_link=dd8c2c99-c313-4455-b93d-5783a837253e&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote></div><br></div><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" width="0" height="0" style="border:0; width:0px; height:0px;"><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" width="0" height="0" style="border:0; width:0px; height:0px;"><font class="cm-tracker" face="https://contactmonkey.com/api/v1/tracker?cm_session=4878e607-23bf-4d16-91f2-d04e6e6dcf22&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" style></font></div>