Andres Maduro
2005-May-30 14:46 UTC
[Asterisk-Users] Urgent Help neededt!! Asterisk 1.0.7 CPU
Hi, I am quite sure it is asterisk as showed in with the top utility. I have renamed mpg123 to see if this was causing the problem but the cpu spikes keep going to 99%.... Asterisk perform well with 1 or 2 calls (with mpg123 and without mpg123) but when more than 3-4 calls are simultaneous, the load goes to 99% and audio is bad. I have noticed 2 asterisk processes at some time with the top utility. Regards. Message: 13 Date: Mon, 30 May 2005 14:54:18 -0400 From: Sebastian Silva <ssilva@gaussar.com> Subject: Re: [Asterisk-Users] Urgent Help neededt!! Asterisk 1.0.7 CPU at 99% To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <429B615A.7070309@gaussar.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, Are you sure the process consuming your CPU is Asterisk? Did you tried with different codecs? Andres Maduro wrote:> Hi, > > I am using Asterisk 1.0.7 that comes with Asterisk@Home 1.0 ISO. I have installed chan_unicall.c and MFCR2 support with latest Steve Underwood code unicall-0.0.2pre2 (yes this is the latest version, not 0.0.2pre19!!) > > Asterisk process is keeping the cpu at 99% most of the time. >Sebas -- ---------------------------------------------------------------- iCONOS / TELEMO Cel. +58 (416) 6235291 / +58 (414) 1275884 Ofi. +58 (212) 9760777 / +58 (212) 9760677 ----------------------------------------------------------------
Andres Maduro
2005-May-31 09:27 UTC
[Asterisk-Users] Urgent Help neededt!! Asterisk 1.0.7 CPU
Hi Sebas, Thanks for your answer. I am including my fstab configuration below and 3 outputs from top showing the asterisk processes eating 99% of cpu, some times there are 3 or 4 processes, some times there are 2 and some times there is one which eats 99%. The 99% of cpu is not all the time, if no calls are being handled by asterisk, the load is almost 0%, with 1 or 2 calls, some times it is 2-5%, some times it spikes to 30%,50%,70% or 80%, with more than 3, it becomes very unstable going up and down. Any thoughts on this are welcome, we have this system in production at the customer site and need to solve this as fast as we can. Your help is valuable. Regards. AM Please send a copy directly to andres@iconos.com.ve if you have valuable info as I am receiving digest of messages and it has a lot of delay. ---------------------------------------------------------- 08:58:50 up 14:29, 2 users, load average: 2.01, 1.50, 0.82 73 processes: 67 sleeping, 6 running, 0 zombie, 0 stopped CPU states: cpu user nice system irq softirq iowait idle total 60.0% 0.0% 40.0% 0.0% 0.0% 0.0% 0.0% Mem: 503852k av, 309244k used, 194608k free, 0k shrd, 68436k buff 142512k active, 59768k inactive Swap: 779144k av, 0k used, 779144k free 116236k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 4861 asterisk 25 0 9860 9848 4712 R 35.0 1.9 0:09 0 asterisk 4862 asterisk 24 0 9860 9848 4712 R 34.0 1.9 0:03 0 asterisk 4867 asterisk 23 0 9860 9848 4712 R 30.5 1.9 0:03 0 asterisk 4645 root 15 0 2172 2172 1768 R 0.5 0.4 0:00 0 sshd 1 root 15 0 508 508 448 S 0.0 0.1 0:03 0 init 2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd 3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd 4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0 7 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush 5 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd 6 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand 8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated ---------------------------------------------------------- 73 processes: 67 sleeping, 6 running, 0 zombie, 0 stopped CPU states: cpu user nice system irq softirq iowait idle total 57.7% 0.0% 42.2% 0.0% 0.0% 0.0% 0.0% Mem: 503852k av, 309244k used, 194608k free, 0k shrd, 68436k buff 142512k active, 59784k inactive Swap: 779144k av, 0k used, 779144k free 116252k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 4861 asterisk 25 0 9860 9848 4712 R 97.5 1.9 0:20 0 asterisk 4869 asterisk 19 0 9860 9848 4712 S 1.9 1.9 0:00 0 asterisk 4863 root 15 0 1136 1136 916 R 0.4 0.2 0:00 0 top 1 root 15 0 508 508 448 S 0.0 0.1 0:03 0 init 2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd 3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd 4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0 7 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush 5 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd ---------------------------------------------------------- 71 processes: 66 sleeping, 5 running, 0 zombie, 0 stopped CPU states: cpu user nice system irq softirq iowait idle total 49.0% 0.0% 50.0% 1.0% 0.0% 0.0% 0.0% Mem: 503852k av, 309228k used, 194624k free, 0k shrd, 68436k buff 142552k active, 59820k inactive Swap: 779144k av, 0k used, 779144k free 116288k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 4877 asterisk 23 0 9900 9888 4712 R 99.0 1.9 0:01 0 asterisk 1 root 15 0 508 508 448 S 0.0 0.1 0:03 0 init 2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd 3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd 4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0 7 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush 5 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd 6 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand 8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated 9 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd 13 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald 68 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd 331 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald 614 root 15 0 576 576 492 S 0.0 0.1 0:00 0 syslogd 618 root 15 0 468 468 408 S 0.0 0.0 0:00 0 klogd 638 root 15 0 1556 1556 1308 S 0.0 0.3 0:00 0 sshd 648 root 15 0 308 308 264 S 0.0 0.0 0:00 0 xplhub 661 root 25 0 824 824 712 S 0.0 0.1 0:00 0 xinetd 672 ntp 15 0 2568 2568 2204 S 0.0 0.5 0:00 0 ntpd [root@asterisk1 root]# cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/hda3 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 Message: 2 Date: Mon, 30 May 2005 16:08:40 -0500 From: Guillermo Salas M <gsalas@manta.telconet.net> Subject: Re: [Asterisk-Users] Urgent Help neededt!! Asterisk 1.0.7 CPU at 99% To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <1117487320.5394.5.camel@ozzy.manta.telconet.net.manta.telconet.net> Content-Type: text/plain On Mon, 2005-05-30 at 14:54 -0400, Sebastian Silva wrote:> Hi, > > Are you sure the process consuming your CPU is Asterisk? > Did you tried with different codecs? > > Andres Maduro wrote: > > Hi, > > > > I am using Asterisk 1.0.7 that comes with Asterisk@Home 1.0 ISO. I > > have installed chan_unicall.c and MFCR2 support with latest Steve > > Underwood code unicall-0.0.2pre2 (yes this is the latest version, > > not 0.0.2pre19!!) > > > > Asterisk process is keeping the cpu at 99% most of the time.Can you post your "/etc/fstab" ??? and the output for the "top" command.> > > > Sebas > > >