<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=en-IL link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>We run FreeSWITCH on Amazon AWS EC2, using the c5.xlarge machine size, meaning 4 CPUs with hyper-threading, sums up to 8 vCpu.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In time of high-traffic, the system is reaching 100% CPU at about 400 concurrent sessions, which is typically 200 calls (2 sessions per call).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>RTP is sent as G-711. SIP signaling is this test is UDP (no TCP or other protocols).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>These numbers are after reducing the log level and moving the core-dsn to memory.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The dialplan in this test is very simple.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ulimit values are as recommended in FreeSWITCH documentation.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>On thread level, we see many threads that consume <1.5% CPU. Several threads consume more, apparently the signaling.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Question:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Do these numbers make sense? We expected to see much more traffic before the CPU is congested.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Are there simple tricks to reduce the CPU usage (as we did with changing the log level)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Is there a way to analyze the CPU consumption so we can try and improve?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks<o:p></o:p></span></p></div></body></html>