<div dir="ltr">Hi all,<div><br></div><div>I&#39;m testing Freeswitch using ESL interface, recording and SIP UDP Calls at a rate of around 5 CPS.</div><div>Freeswitch receives ESL requests and proceeds to send call to PSTN Emulator, once call is answered I start recording. I have noticed around 40% CPU utilization when recording is not enabled and ~60%+ CPU when recording is.</div><div>I created/mount a volume specifically to store the recording files. (ext4)</div><div><b><br></b></div><div><b>Server specifications:</b></div><div><br></div><div>EC2 server (<span style="background-color:rgb(234,243,254);color:rgb(0,0,0);font-family:arial;font-size:13px;white-space:nowrap">t2.medium) </span><span style="color:rgb(68,68,68);font-family:&quot;helvetica neue&quot;,roboto,arial,sans-serif;font-size:14px">2 vCPUs, 2.5 GHz, Intel Xeon Family, 4 GiB memory.</span></div><div>FreeSWITCH (Version 1.6.9 -16-d574870 64bit)<span style="background-color:rgb(234,243,254);color:rgb(0,0,0);font-family:arial;font-size:13px;white-space:nowrap"><br></span></div><div><br></div><div>







<p class="gmail-p1">I followed instructions at: <a href="https://wiki.freeswitch.org/wiki/Performance_testing_and_configurations">https://wiki.freeswitch.org/wiki/Performance_testing_and_configurations</a></p><p class="gmail-p1"><b>[Questions]</b>  </p><p class="gmail-p1">a) How to strip down Freeswitch and remove non-used modules? </p><p class="gmail-p1">Features I need:<br></p><p class="gmail-p1"><b>esl, recording, loopback, bridge, sip, spandsp, cdr_csv.</b></p><p class="gmail-p1"><span class="gmail-s1">My modules: </span></p><p class="gmail-p1"><span class="gmail-s1"><b>fs_cli -x &quot;show modules&quot;</b></span></p><p class="gmail-p1"><a href="http://pastebin.com/BQSxzFDE">http://pastebin.com/BQSxzFDE</a></p><p class="gmail-p1"><span class="gmail-s1">b) I would like to see which module is using X/Y amount of CPU cycles/memory in Freeswitch is it possible?.<b><br></b></span></p><p class="gmail-p1"><span class="gmail-s1"><b><br></b></span></p><p class="gmail-p1"><span class="gmail-s1"><b>fs_cli -x &#39;show status&#39;</b></span></p><p class="gmail-p1"><span class="gmail-s1">UP 0 years, 0 days, 1 hour, 2 minutes, 15 seconds, 541 milliseconds, 286 microseconds</span></p><p class="gmail-p1"><span class="gmail-s1">FreeSWITCH (Version 1.6.9 -16-d574870 64bit) is ready</span></p><p class="gmail-p1"><span class="gmail-s1">18192 session(s) since startup</span></p><p class="gmail-p1"><span class="gmail-s1">90 session(s) - peak 93, last 5min 92 </span></p><p class="gmail-p1"><span class="gmail-s1">5 session(s) per Sec out of max 30, peak 7, last 5min 6 </span></p><p class="gmail-p1"><span class="gmail-s1">1000 session(s) max</span></p><p class="gmail-p1"><span class="gmail-s1">min idle cpu 0.00/75.57</span></p><p class="gmail-p1"><span class="gmail-s1">















</span></p><p class="gmail-p1"><span class="gmail-s1">Current Stack Size/Max 240K/8192K</span></p><p class="gmail-p1"><br></p><p class="gmail-p1"><span class="gmail-s1">A sample image is below: 40% steady (no recording) a peak when I enabled recording.</span></p><p class="gmail-p1"><span class="gmail-s1"></span></p><img src="cid:ii_15788955eb683ab6" alt="Inline image 1" width="528" height="265"><br><p></p></div><div><br></div><div><p class="gmail-p1"><span class="gmail-s1"># top</span></p><p class="gmail-p1"><span class="gmail-s1">top - 03:25:16 up 22:42,  1 user,  load average: 3.88, 5.74, 10.39</span></p><p class="gmail-p1"><span class="gmail-s1">Tasks:</span><span class="gmail-s2"><b>  68 </b></span><span class="gmail-s1">total,</span><span class="gmail-s2"><b>   1 </b></span><span class="gmail-s1">running,</span><span class="gmail-s2"><b>  67 </b></span><span class="gmail-s1">sleeping,</span><span class="gmail-s2"><b>   0 </b></span><span class="gmail-s1">stopped,</span><span class="gmail-s2"><b>   0 </b></span><span class="gmail-s1">zombie</span></p><p class="gmail-p3"><span class="gmail-s3">%Cpu(s):</span><span class="gmail-s1"><b> 11.0 </b></span><span class="gmail-s3">us,</span><span class="gmail-s1"><b>  2.3 </b></span><span class="gmail-s3">sy,</span><span class="gmail-s1"><b>  0.0 </b></span><span class="gmail-s3">ni,</span><span class="gmail-s1"><b> 85.7 </b></span><span class="gmail-s3">id,</span><span class="gmail-s1"><b>  0.0 </b></span><span class="gmail-s3">wa,</span><span class="gmail-s1"><b>  0.0 </b></span><span class="gmail-s3">hi,</span><span class="gmail-s1"><b>  0.7 </b></span><span class="gmail-s3">si,</span><span class="gmail-s1"><b>  0.4 </b></span><span class="gmail-s3">st</span></p><p class="gmail-p3"><span class="gmail-s3">KiB Mem: </span><span class="gmail-s1"><b>  4057584 </b></span><span class="gmail-s3">total,</span><span class="gmail-s1"><b>   865964 </b></span><span class="gmail-s3">used,</span><span class="gmail-s1"><b>  3191620 </b></span><span class="gmail-s3">free,</span><span class="gmail-s1"><b>   147088 </b></span><span class="gmail-s3">buffers</span></p><p class="gmail-p3"><span class="gmail-s3">KiB Swap:</span><span class="gmail-s1"><b>  1048572 </b></span><span class="gmail-s3">total,</span><span class="gmail-s1"><b>        0 </b></span><span class="gmail-s3">used,</span><span class="gmail-s1"><b>  1048572 </b></span><span class="gmail-s3">free.</span><span class="gmail-s1"><b>   213572 </b></span><span class="gmail-s3">cached Mem</span></p><p class="gmail-p2"><span class="gmail-s1"></span><br></p><p class="gmail-p4"><span class="gmail-s1">  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                </span></p><p class="gmail-p1"><span class="gmail-s1">26217 freeswi+  -2 -10 1427444 302584  16904 S  <b>65.9</b>  7.5  28:47.49 freeswitch       </span></p></div><div><span class="gmail-s1"><br></span></div><div><br></div><div><br></div></div>