Perry E. Metzger wrote:

"Olle E. Johansson" <[EMAIL PROTECTED]> writes:

My Asterisk (fresh CVS) takes 98% of the system load on my FreeBSD
server. On a slower CPU linux system, Asterisk runs at 0.1% - both
without any active channels...

Any ideas, anyone recognizing the problem?


On the BSDs, your friend is ktrace (or ktruss, depending on
flavor). It will tell you what system calls your process is executing
while it is doing this.
ktrace on FreeBSD generates a file filled with this:
And some signals caught here and there.
Doesn't make me wiser.

/Olle
---------------------------------------------------------------
74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes
       ""
 74987 asterisk RET   read 0
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes

----------
And sometimes this - repeated many times:

       ""
 74987 asterisk PSIG  SIGPROF caught handler=0x28180260 mask=0x0 code=0x0
 74987 asterisk RET   read 0
 74987 asterisk CALL  gettimeofday(0x281c8e88,0)
 74987 asterisk RET   gettimeofday 0
 74987 asterisk CALL  sigprocmask(0x3,0x281c8ef8,0)
 74987 asterisk RET   sigprocmask 0
 74987 asterisk CALL  poll(0x80cf000,0x4,0)
 74987 asterisk RET   poll 0
 74987 asterisk CALL  sigreturn(0xbfa87cec)
 74987 asterisk RET   sigreturn JUSTRETURN
 74987 asterisk CALL  poll(0x851e400,0x1,0)
 74987 asterisk RET   poll 1
 74987 asterisk CALL  read(0x15,0x2845e060,0x100)
 74987 asterisk GIO   fd 21 read 0 bytes


-----------------


_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to