[asterisk-users] VERY HIGH LOAD AVERAGE: top - 10:27:57 up 199 days, 5:18, 2 users, load average: 67.75, 62.55, 55.75

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Feb 10 05:12:00 CST 2010


On Wed, Feb 10, 2010 at 01:23:01PM +0300, RESEARCH wrote:

> @Steve Edward. Can you share your C agi codes? I presume what you want me to
> do is rewrite the script in C and use it as compiled binary

Yes.

But then again, for such a simple call (a single INSERT) you can use a
MySQL() from the dialplan.

And this is also basically the same as adding a CDR record. Which is why
I guess you can probably use the existing CDR code.

> 
> @Tzafrir. How about this
> [ivr4 ~]# ps aux | grep D
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> root      1975  0.0  0.0   3920   688 pts/4    S+   13:17   0:00 grep D
> root      3413  0.0  0.0   1832   576 ?        Ss    2009  80:58
> /usr/sbin/mDNSResponder -b -f /etc/services_mDNS

So no processes are currently in state 'D' (the two processes here are
grep itself, and an unrelated daemon, both in state 'S', which is the
normal 'Sleeping').

(So your issue was merely the fact the the CPU was flooded with work,
and not some processes hung in uninterruptable sleep).

> 
> I have killed that process but no changes

* Killing a process in state D is generally pointless (it is in an
  uniteruuptable system call: not even kill -9 would get it).
* That process was not in state D anyway :-)

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list