[asterisk-dev] asterisk optimalizations

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Feb 7 05:57:04 CST 2008


On Thu, Jan 24, 2008 at 10:12:59AM +0100, marek cervenka wrote:
> hi,
> 
> i'm testing asterisk 1.6/1.4/1.2 in the following scenario
> centos5/cpu quad xeon E5335 2.0Ghz
> - test clients behind nat
> - 1500+ testing instances - reregister option from 1min to 1hour
> - qualify set to 5000
> 
> top shows over 100% cpu. cpu cores sometimes go to 95%
> with htop i see ~16threads but only one child have ~95% cpu
> (how i can get info about that thread? what he is doing?)

The simplest way:

  strace -p PID_OF_THREAD

(On standard top you need to press H to see each thread separatelly)

This can give a very good hint in many situations. Unless the thread is
in a loop that is 100% userspace code and no system calls.

In that case you may try:

  gdb -p PID_OF_THREAD

But that is more intrusive.


-- 
               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-dev mailing list