<div dir="ltr"><div><div><div><div>Hi List !<br><br></div>I'm facing a problem with the CPU consumption in Asterisk 11.22.0.<br><br>I could decrease a lot of load, migrating both the astdb.sqlite3 and call recordings (with Monitor app) to a tmpfs mount in RAM (with noatime and nodiratime flags), manually spread each of the hardware interrupts (network interfaces, wanpipe and megasas) to an individual dedicated CPU core and stick the Asterisk process to other dedicated CPU core (free of hardware interrupts).<br><br>Now the usage is 90% of his core with 300 active channels (66% SIP + 17% IAX + 17% DAHDI). 17% of channels are g.729 transcoded via software. <span tabindex="-1" id="result_box" class="" lang="en"><span>Some considerations are that there is +30 AMI concurrent clients</span></span>, plus SIP Realtime peers. I don't have any AGI script or ODBC custom function/query. The DialPlan is minimal for the work it does too.<br><br></div>My question is: Is there any way to identify the more demanding routine/task in Asterisk so I can know where to tweak ?<br><br></div>I read the excelente post of Moy [1], but the most usage of CPU is in the mail process of Asterisk, not in any of the threads. Moreover, the pstack command don't work on my 64-bits system.<br><br></div>Hope anyone can help. Cheers.<br><br>[1] <a href="https://moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/">https://moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/</a><br clear="all"><div><div><div><div><div><div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">GnuPG Key ID: 0x39BCA9D8<br><a href="https://www.github.com/mefhigoseth" target="_blank">https://www.github.com/mefhigoseth</a><br>...:::[ God Rulz ! ]:::...</div>
</div></div></div></div></div></div></div>