Victor Villarreal
2016-Jul-06 18:10 UTC
[asterisk-users] Identify more demanding routine inside Asterisk
Hi List ! I'm facing a problem with the CPU consumption in Asterisk 11.22.0. 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). 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. Some considerations are that there is +30 AMI concurrent clients, 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. My question is: Is there any way to identify the more demanding routine/task in Asterisk so I can know where to tweak ? 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. Hope anyone can help. Cheers. [1] https://moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/ -- GnuPG Key ID: 0x39BCA9D8 https://www.github.com/mefhigoseth ...:::[ God Rulz ! ]:::... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160706/21850eb2/attachment.html>