<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><title>Re: [Freeswitch-users] CPU Spikes every 20 minutes</title><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de globo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.TextodegloboCar
        {mso-style-name:"Texto de globo Car";
        mso-style-priority:99;
        mso-style-link:"Texto de globo";
        font-family:"Tahoma","sans-serif";}
span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="ES-CL" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Ken.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I mounted the db directory in RAM as you mention, but the “load average” still is high.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">You can see this here : </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">Filesystem             Size   Used  Avail Use% Mounted on</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">/dev/mapper/VolGroup00-LogVol00</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">                       132G   8.6G   117G   7% /</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">proc                      0      0      0   -  /proc</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">sysfs                     0      0      0   -  /sys</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">devpts                    0      0      0   -  /dev/pts</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">/dev/cciss/c0d0p1      104M    20M    79M  21% /boot</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">tmpfs                  4.2G      0   4.2G   0% /dev/shm</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">none                      0      0      0   -  /proc/sys/fs/binfmt_misc</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">sunrpc                    0      0      0   -  /var/lib/nfs/rpc_pipefs</span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">tmpfs                  4.2G   1.3M   4.2G   1% /usr/local/freeswitch/db</span></b></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">This is a resume from uptime and total calls for my freeswitch :</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:07 up 17 days, Total Calls : 16:26, 3 users, load average: 4.77, 4.50, 4.66 , Total Calls : 209, Total sessions: 440</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:12 up 17 days, Total Calls : 16:27, 3 users, load average: 6.79, 4.92, 4.80 , Total Calls : 245, Total sessions: 510</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:17 up 17 days, Total Calls : 16:27, 3 users, load average: 6.25, 4.84, 4.77 , Total Calls : 235, Total sessions: 488</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:22 up 17 days, Total Calls : 16:27, 3 users, load average: 6.63, 4.94, 4.81 , Total Calls : 233, Total sessions: 484</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:27 up 17 days, Total Calls : 16:27, 3 users, load average: 6.42, 4.92, 4.80 , Total Calls : 226, Total sessions: 470</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:32 up 17 days, Total Calls : 16:27, 3 users, load average: 5.90, 4.84, 4.78 , Total Calls : 218, Total sessions: 454</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:37 up 17 days, Total Calls : 16:27, 3 users, load average: 5.43, 4.76, 4.75 , Total Calls : 198, Total sessions: 416</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:43 up 17 days, Total Calls : 16:27, 3 users, load average: 4.99, 4.68, 4.72 , Total Calls : 183, Total sessions: 384</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:48 up 17 days, Total Calls : 16:27, 3 users, load average: 4.59, 4.60, 4.70 , Total Calls : 172, Total sessions: 366</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:53 up 17 days, Total Calls : 16:27, 3 users, load average: 4.31, 4.54, 4.68 , Total Calls : 184, Total sessions: 388</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:20:58 up 17 days, Total Calls : 16:27, 3 users, load average: 3.96, 4.47, 4.65 , Total Calls : 207, Total sessions: 442</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:03 up 17 days, Total Calls : 16:27, 3 users, load average: 4.04, 4.48, 4.65 , Total Calls : 203, Total sessions: 436</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:08 up 17 days, Total Calls : 16:27, 3 users, load average: 3.72, 4.40, 4.63 , Total Calls : 198, Total sessions: 418</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:13 up 17 days, Total Calls : 16:28, 3 users, load average: 3.47, 4.32, 4.60 , Total Calls : 198, Total sessions: 422</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:18 up 17 days, Total Calls : 16:28, 3 users, load average: 4.23, 4.47, 4.65 , Total Calls : 194, Total sessions: 410</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:23 up 17 days, Total Calls : 16:28, 3 users, load average: 8.30, 5.31, 4.92 , Total Calls : 211, Total sessions: 450</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:28 up 17 days, Total Calls : 16:28, 3 users, load average: 8.11, 5.32, 4.92 , Total Calls : 251, Total sessions: 536</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:33 up 17 days, Total Calls : 16:28, 3 users, load average: 8.74, 5.49, 4.98 , Total Calls : 250, Total sessions: 530</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:38 up 17 days, Total Calls : 16:28, 3 users, load average: 9.48, 5.70, 5.05 , Total Calls : 236, Total sessions: 496</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:43 up 17 days, Total Calls : 16:28, 3 users, load average: 9.45, 5.76, 5.07 , Total Calls : 233, Total sessions: 492</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:48 up 17 days, Total Calls : 16:28, 3 users, load average: 9.57, 5.84, 5.10 , Total Calls : 235, Total sessions: 496</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:53 up 17 days, Total Calls : 16:28, 3 users, load average: 10.24, 6.04, 5.17 , Total Calls : 222, Total sessions: 466</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:21:58 up 17 days, Total Calls : 16:28, 3 users, load average: 10.46, 6.16, 5.21 , Total Calls : 215, Total sessions: 452</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:03 up 17 days, Total Calls : 16:28, 3 users, load average: 11.07, 6.36, 5.28 , Total Calls : 208, Total sessions: 430</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:08 up 17 days, Total Calls : 16:28, 3 users, load average: 11.22, 6.47, 5.32 , Total Calls : 202, Total sessions: 422</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:14 up 17 days, Total Calls : 16:29, 3 users, load average: 11.52, 6.61, 5.37 , Total Calls : 240, Total sessions: 500</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:19 up 17 days, Total Calls : 16:29, 3 users, load average: 11.96, 6.78, 5.44 , Total Calls : 239, Total sessions: 498</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:24 up 17 days, Total Calls : 16:29, 3 users, load average: 14.29, 7.35, 5.63 , Total Calls : 250, Total sessions: 516</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:29 up 17 days, Total Calls : 16:29, 3 users, load average: 13.78, 7.36, 5.64 , Total Calls : 236, Total sessions: 490</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:34 up 17 days, Total Calls : 16:29, 3 users, load average: 12.92, 7.29, 5.63 , Total Calls : 209, Total sessions: 436</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:39 up 17 days, Total Calls : 16:29, 3 users, load average: 11.97, 7.18, 5.60 , Total Calls : 180, Total sessions: 372</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:44 up 17 days, Total Calls : 16:29, 3 users, load average: 11.01, 7.06, 5.57 , Total Calls : 161, Total sessions: 342</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:49 up 17 days, Total Calls : 16:29, 3 users, load average: 11.57, 7.24, 5.64 , Total Calls : 175, Total sessions: 370</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:54 up 17 days, Total Calls : 16:29, 3 users, load average: 11.12, 7.22, 5.64 , Total Calls : 181, Total sessions: 382</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:22:59 up 17 days, Total Calls : 16:29, 3 users, load average: 11.19, 7.30, 5.67 , Total Calls : 178, Total sessions: 366</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:04 up 17 days, Total Calls : 16:29, 3 users, load average: 11.10, 7.35, 5.69 , Total Calls : 173, Total sessions: 358</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:09 up 17 days, Total Calls : 16:30, 3 users, load average: 11.57, 7.51, 5.76 , Total Calls : 182, Total sessions: 378</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:14 up 17 days, Total Calls : 16:30, 3 users, load average: 11.36, 7.53, 5.77 , Total Calls : 187, Total sessions: 386</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:19 up 17 days, Total Calls : 16:30, 3 users, load average: 12.21, 7.77, 5.86 , Total Calls : 190, Total sessions: 402</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:24 up 17 days, Total Calls : 16:30, 3 users, load average: 12.04, 7.81, 5.88 , Total Calls : 239, Total sessions: 496</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:29 up 17 days, Total Calls : 16:30, 3 users, load average: 12.27, 7.93, 5.93 , Total Calls : 257, Total sessions: 532</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:34 up 17 days, Total Calls : 16:30, 3 users, load average: 12.73, 8.09, 5.99 , Total Calls : 242, Total sessions: 506</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:39 up 17 days, Total Calls : 16:30, 3 users, load average: 12.67, 8.16, 6.03 , Total Calls : 233, Total sessions: 482</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:45 up 17 days, Total Calls : 16:30, 3 users, load average: 12.38, 8.17, 6.04 , Total Calls : 238, Total sessions: 492</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:50 up 17 days, Total Calls : 16:30, 3 users, load average: 12.67, 8.30, 6.10 , Total Calls : 236, Total sessions: 482</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:23:55 up 17 days, Total Calls : 16:30, 3 users, load average: 13.09, 8.46, 6.16 , Total Calls : 222, Total sessions: 458</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:00 up 17 days, Total Calls : 16:30, 3 users, load average: 12.37, 8.39, 6.15 , Total Calls : 221, Total sessions: 470</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:05 up 17 days, Total Calls : 16:30, 3 users, load average: 11.78, 8.33, 6.14 , Total Calls : 200, Total sessions: 422</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:10 up 17 days, Total Calls : 16:31, 3 users, load average: 13.64, 8.77, 6.30 , Total Calls : 214, Total sessions: 452</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:15 up 17 days, Total Calls : 16:31, 3 users, load average: 13.98, 8.93, 6.36 , Total Calls : 255, Total sessions: 536</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:20 up 17 days, Total Calls : 16:31, 3 users, load average: 14.23, 9.06, 6.42 , Total Calls : 252, Total sessions: 524</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:25 up 17 days, Total Calls : 16:31, 3 users, load average: 15.73, 9.46, 6.56 , Total Calls : 260, Total sessions: 536</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:30 up 17 days, Total Calls : 16:31, 3 users, load average: 15.03, 9.42, 6.56 , Total Calls : 246, Total sessions: 508</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:35 up 17 days, Total Calls : 16:31, 3 users, load average: 15.11, 9.52, 6.61 , Total Calls : 230, Total sessions: 478</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:40 up 17 days, Total Calls : 16:31, 3 users, load average: 14.94, 9.58, 6.64 , Total Calls : 194, Total sessions: 408</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:45 up 17 days, Total Calls : 16:31, 3 users, load average: 14.54, 9.59, 6.66 , Total Calls : 189, Total sessions: 396</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:50 up 17 days, Total Calls : 16:31, 3 users, load average: 13.94, 9.55, 6.66 , Total Calls : 202, Total sessions: 438</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:24:55 up 17 days, Total Calls : 16:31, 3 users, load average: 13.30, 9.49, 6.66 , Total Calls : 221, Total sessions: 470</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:00 up 17 days, Total Calls : 16:31, 3 users, load average: 12.88, 9.46, 6.67 , Total Calls : 220, Total sessions: 478</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:05 up 17 days, Total Calls : 16:31, 3 users, load average: 14.25, 9.80, 6.79 , Total Calls : 219, Total sessions: 480</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:10 up 17 days, Total Calls : 16:32, 3 users, load average: 13.67, 9.76, 6.79 , Total Calls : 222, Total sessions: 490</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:16 up 17 days, Total Calls : 16:32, 3 users, load average: 13.05, 9.69, 6.79 , Total Calls : 214, Total sessions: 470</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:21 up 17 days, Total Calls : 16:32, 3 users, load average: 13.53, 9.85, 6.85 , Total Calls : 210, Total sessions: 450</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:26 up 17 days, Total Calls : 16:32, 3 users, load average: 13.81, 9.97, 6.91 , Total Calls : 250, Total sessions: 524</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:31 up 17 days, Total Calls : 16:32, 3 users, load average: 12.70, 9.80, 6.87 , Total Calls : 258, Total sessions: 536</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:36 up 17 days, Total Calls : 16:32, 3 users, load average: 11.68, 9.64, 6.83 , Total Calls : 255, Total sessions: 528</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:41 up 17 days, Total Calls : 16:32, 3 users, load average: 10.83, 9.49, 6.80 , Total Calls : 246, Total sessions: 524</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:46 up 17 days, Total Calls : 16:32, 3 users, load average: 10.04, 9.35, 6.77 , Total Calls : 262, Total sessions: 564</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:51 up 17 days, Total Calls : 16:32, 3 users, load average: 9.32, 9.21, 6.74 , Total Calls : 238, Total sessions: 510</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:25:56 up 17 days, Total Calls : 16:32, 3 users, load average: 8.57, 9.06, 6.70 , Total Calls : 220, Total sessions: 476</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">17:26:01 up 17 days, Total Calls : 16:32, 3 users, load average: 7.88, 8.91, 6.67 , Total Calls : 228, Total sessions: 498</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">What else could be happening.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Did I mention that I’m using two transcoding cards from Sangoma?</span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Ricardo.-</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">De:</span></b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>En nombre de </b>Ken Rice<br>
<b>Enviado el:</b> lunes, 22 de octubre de 2012 16:50<br><b>Para:</b> FreeSWITCH Users Help<br><b>Asunto:</b> Re: [Freeswitch-users] CPU Spikes every 20 minutes</span></p></div></div><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom:12.0pt">
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">Load Average is the number of threads/processes waiting in the kernel’s run queue at sample time... Supposedly number of cores is the how much your load avg can get to before your boxes is exhausted but this isnt exactly true on modern hardware with highly multi-threaded software like FreeSWITCH...<br>
<br>Where did I get the 100+ number? From looking at ‘top’ or ‘w’ on a box to see what the current load avg is...<br><br>Sqlite is used all over FreeSWITCH from the coredb to mod_sofia and everything in between.... When you type ‘show channels’ from fs_cli it doesn’t query the structures in RAM to show you that output, it pulls it from the sqlite db...<br>
<br>That being said, you can test quickly to see if sqlite is hammering the disk at some point by shifting freeswitch/db dir to a ram drive.<br>Example code for linux such as Centos or Debian assuming freeswitch is installed to /usr/local/freeswitch<br>
<br>Shutdown freeswitch<br>rm –rf /usr/local/freeswitch/db/*<br>mount –t tmpfs tmpfs /usr/local/freeswitch/db<br>Startup freeswitch<br><br>Once you have done that stick it back in rotation... <br><br>Note this will not affect anything but voicemail if you have voicemail running on that box and not using an external DB via mod_voicemail’s DSN settings you’ll lose the voicemail DB... (I would assume this is not the case since you are using this primarily as a Transcoder)<br>
<br>K<br><br><br>On 10/22/12 2:30 PM, &quot;Ricardo Martinez&quot; &lt;<a href="rmartinez@redvoiss.net">rmartinez@redvoiss.net</a>&gt; wrote:</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">Hi Ken.<br>
Maybe that is the problem.  I was sure that the “load average” can’t go more than #cores in your system.  In my case I have 8 cores, so a “load average” of 12 is high from my point of view.  Where did you get the number 100 for this parameter?<br>
Anyway, what is running a sqlite in freeswitch.  Does this have to do with the core.db file? Or with the cdr_sqlite module?.<br> <br>Thanks<br>Ricardo.-<br> <br><br></span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">De:</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> <a href="freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>En nombre de </b>Ken Rice<br>
<b>Enviado el:</b> lunes, 22 de octubre de 2012 16:18<br><b>Para:</b> FreeSWITCH Users Help<br><b>Asunto:</b> Re: [Freeswitch-users] CPU Spikes every 20 minutes<br></span> <br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">Could it be just a normal sqlite running a vacuum?<br>
<br>Sqlite does this every so often or if its calling a sync.... <br><br>Also freeswitch with a load avg of 12 for a short period of time isnt anything to really worry about. Due to the number of threads that’s possible with FS (ie: 1 per call leg) its not unusual to see a box humming along and the load avg well above 100 in my experience... This is due to the number of threads waiting in the run queue when it was sampled... Now, that’s not saying that this is not specifically indicative or a problem but something else to think about<br>
<br>On 10/22/12 1:52 PM, &quot;Ricardo Martinez&quot; &lt;<a href="rmartinez@redvoiss.net">rmartinez@redvoiss.net</a>&gt; wrote:<br>This is the gdb from the proccess consuming more cpu :<br> <br>(gdb) thread 7<br>[Switching to thread 7 (Thread 31781)]#0  0x0000003c03c0e047 in fsync () from /lib64/libpthread.so.0<br>
(gdb) bt<br>#0  0x0000003c03c0e047 in fsync () from /lib64/libpthread.so.0<br>#1  0x00002aede19276de in unixSync (id=0x2aaaac726380, dataOnly=&lt;value optimized out&gt;) at ./src/os_unix.c:1229<br>#2  0x00002aede1951178 in syncJournal (pPager=0x1a1c200) at ./src/pager.c:2229<br>
#3  0x00002aede1953b65 in sqlite3pager_sync (pPager=0x1a1c200, zMaster=0x0, nTrunc=0) at ./src/pager.c:3770<br>#4  0x00002aede193d07b in sqlite3BtreeSync (p=&lt;value optimized out&gt;, zMaster=0x0) at ./src/btree.c:6520<br>
#5  0x00002aede1931f15 in sqlite3VdbeHalt (p=0x2aaaad17ac70) at ./src/vdbeaux.c:1062<br>#6  0x00002aede1962613 in sqlite3VdbeExec (p=0x2aaaad17ac70) at ./src/vdbe.c:2360<br>#7  0x00002aede193036c in sqlite3Step (pStmt=0x2aaaad17ac70) at ./src/vdbeapi.c:236<br>
#8  sqlite3_step (pStmt=0x2aaaad17ac70) at ./src/vdbeapi.c:289<br>#9  0x00002aede1938978 in sqlite3_exec (db=0x1a1f070, zSql=0x2aede199e717 &quot;COMMIT&quot;, xCallback=0, pArg=0x0, pzErrMsg=0x4178bed0)<br>    at ./src/legacy.c:78<br>
#10 0x00002aede18ae0c1 in switch_core_db_exec (db=0x1a1f070, sql=0x2aede199e717 &quot;COMMIT&quot;, callback=0, data=0x0, errmsg=0x4178bf38)<br>    at src/switch_core_db.c:93<br>#11 0x00002aede1897c18 in switch_cache_db_execute_sql_real (dbh=0x1a2dce0, sql=0x2aede199e717 &quot;COMMIT&quot;, err=0x0)<br>
    at src/switch_core_sqldb.c:445<br>#12 0x00002aede18985c3 in switch_cache_db_persistant_execute_trans (dbh=0x1a2dce0, <br>    sql=0x5f03bd0 &quot;delete from calls where (caller_uuid=&#39;e64319c5-7f91-47a1-9561-42da291e499a&#39; or callee_uuid=&#39;e64319c5-7f91-47a1-9561-42da291e499a&#39;) and hostname=&#39;<a href="http://transcoder.red.net">transcoder.red.net</a> &lt;<a href="http://transcoder.red.net">http://transcoder.red.net</a>&gt;  &lt;<a href="http://transcoder.red.net">http://transcoder.red.net</a>&gt; &#39;;\ndelete from calls where (call&quot;..., retries=1)<br>
    at src/switch_core_sqldb.c:787<br>#13 0x00002aede189bf1c in switch_core_sql_thread (thread=&lt;value optimized out&gt;, obj=&lt;value optimized out&gt;)<br>    at src/switch_core_sqldb.c:1026<br>#14 0x0000003c03c0673d in start_thread () from /lib64/libpthread.so.0<br>
#15 0x0000003c030d3f6d in clone () from /lib64/libc.so.6<br> <br><br></span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">De:</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> Ricardo Martinez [<a href="mailto:rmartinez@redvoiss.net">mailto:rmartinez@redvoiss.net</a>] <br>
<b>Enviado el:</b> lunes, 22 de octubre de 2012 15:50<br><b>Para:</b> &#39;FreeSWITCH Users Help&#39;<br><b>Asunto:</b> RE: [Freeswitch-users] CPU Spikes every 20 minutes<br></span> <br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">AS far as i can see there is no java running.<br>
This is the top at the moment of the spike : <br> <br>top - 15:48:29 up 17 days, 14:55,  3 users,  load average: 14.07, 8.87, 6.48<br>Tasks: 158 total,   1 running, 157 sleeping,   0 stopped,   0 zombie<br>Cpu(s): 12.6%us,  9.0%sy,  0.0%ni, 66.1%id,  2.7%wa,  0.3%hi,  9.2%si,  0.0%st<br>
Mem:   8171500k total,  8041556k used,   129944k free,   177688k buffers<br>Swap: 10223608k total,        0k used, 10223608k free,  6951988k cached<br> <br>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                <br>
31772 root      15   0  870m 481m 6880 S 212.4  6.0   9523:51 freeswitch                                                            <br> 4210 root      19   0 36344 2940 1444 S  1.0  0.0  56:21.08 sngtc_server                                                           <br>
29586 root      15   0 12740 1132  808 R  0.3  0.0   0:00.02 top                                                                    <br>    1 root      15   0 10348  704  588 S  0.0  0.0   0:01.13 init                                                                   <br>
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.41 migration/0                                                            <br>    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0                                                            <br>
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                             <br>    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.83 migration/1                                                            <br>
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1                                                            <br>    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1                                                             <br>
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.14 migration/2                                                            <br>    9 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2                                                            <br>
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2                                                             <br>   11 root      RT  -5     0    0    0 S  0.0  0.0   0:00.07 migration/3                                                            <br>
   12 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3                                                            <br>   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3                                                             <br>
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:00.06 migration/4                                                            <br>   15 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/4                                                            <br>
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/4                                                             <br>   17 root      RT  -5     0    0    0 S  0.0  0.0   0:00.06 migration/5                                                            <br>
   18 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/5                                                            <br>   19 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/5                                                             <br>
   20 root      RT  -5     0    0    0 S  0.0  0.0   0:00.07 migration/6        <br> <br> <br>Regards,<br>Ricardo.-                       <br> <br></span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">De:</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> <a href="freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>En nombre de </b>Guillermo Ruiz Camauer<br>
<b>Enviado el:</b> lunes, 22 de octubre de 2012 15:38<br><b>Para:</b> FreeSWITCH Users Help<br><b>Asunto:</b> Re: [Freeswitch-users] CPU Spikes every 20 minutes<br></span> <br>Do you have anything like Java running that could be doing garbage collection?<br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br></span> <br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br></span>What other processes are running on the machine?  Does TOP show which process is causing the spike?<br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br></span> <br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br></span>Guillermo<br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span>On Mon, Oct 22, 2012 at 3:29 PM, Ricardo Martinez &lt;<a href="rmartinez@redvoiss.net">rmartinez@redvoiss.net</a>&gt; wrote:<br>Hi Gabe.<br>I&#39;m mean between the spikes there is nothing different as regarding to the<br>
calls... the cps maintains the same.. there are no scripts running or<br>crontabs running, the simultaneous calls are the same also.  So, for some<br>reason the &quot;load average&quot; start to grow (every 20 or 25 minutes) without<br>
any clear cause.<br>I have debug with gdb the moment the server is with 12.5 of &quot;load average&quot;<br>here : <a href="http://pastebin.freeswitch.org/20112">http://pastebin.freeswitch.org/20112</a><br><br>Can we detect a problem from here?<br>
<br>Regards,<br>Ricardo.<br><br><br><br>-----Mensaje original-----<br>De: <a href="freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] En nombre de<br>
Gabriel Gunderson<br>Enviado el: lunes, 22 de octubre de 2012 13:31<br>Para: FreeSWITCH Users Help<br>Asunto: Re: [Freeswitch-users] CPU Spikes every 20 minutes<br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span><br>On Mon, Oct 22, 2012 at 8:37 AM, Ricardo Martinez &lt;<a href="rmartinez@redvoiss.net">rmartinez@redvoiss.net</a>&gt;<br>wrote:<br>&gt; The problem is that I&#39;m having weird spikes of  &quot;load average&quot; cpu<br>
&gt; every 20 minutes (aprox), without any reason, reaching near of 12.5 of<br>&gt; load average for this machine.<br><br>What have you done to verify that it happens &#39;without any reason&#39;?<br><br><br>Gabe<br><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br><a href="consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><br>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
<br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><br><br> </p><p class="MsoNormal"><br><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">-- <br>Ken<br><u><span style="color:blue"><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><br><a href="http://www.OSTAG.org">http://www.OSTAG.org</a><br></span></u><a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch</span></p></div></body></html>