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? /O
> 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?Is 'top' suggesting that * is actually consuming 98%? If it is, take a look at the * logs for signs of what it might be. We've seen this happen on a lab RH9 system, but its usually while we been doing other unusual things. (In our case, two extra instances of mpg consuming the ~98%; copying *.conf files to a second system that didn't actually have any x100p cards in it, etc.) FWIW, I'm running yesterday's cvs on two RH9 systems just fine.
--- "Olle E. Johansson" <oej@edvina.net> wrote:> 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?You mean both are in the idle state, no active calls? That should be a big clue. My guess is that the difference you see is due to different implementations of pthreads. Have you tried running a debugger? Most of us don't have BSD systems and can't help. But if it were me a debugger would be my first step. IMO gdb is a pain to use. I like "ddd". See here: www.gnu.org/software/ddd/ ====Chris Albertson Home: 310-376-1029 chrisalbertson90278@yahoo.com Cell: 310-990-7550 Office: 310-336-5189 Christopher.J.Albertson@aero.org KG6OMK __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/
>Is 'top' suggesting that * is actually consuming 98%? > >If it is, take a look at the * logs for signs of what it might be. We've >seen this happen on a lab RH9 system, but its usually while we been doing >other unusual things. (In our case, two extra instances of mpg consuming >the ~98%; copying *.conf files to a second system that didn't actually >have any x100p cards in it, etc.) > >FWIW, I'm running yesterday's cvs on two RH9 systems just fine.i had a problem with asterisk consuming all the resources available on redhat 9. it would occur roughly every 24 hours or so - and would cause all sorts of problems. when a new channel opened up it fought for resources for a few seconds - so no speech could be heard, then when it could grab enough resources to process the channel it would... but the quality would be terrible. it can be solved with this: export LD_ASSUME_KERNEL=2.4.1 so now thats in my asterisk init script before actually starting asterisk. since doing this i havent had a problem (3 weeks ago). duncna
"Olle E. Johansson" <oej@edvina.net> 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. Perry
I've tried to summarize my experiences of Asterisk on a FreeBSD system: http://www.voip-info.org/tiki-index.php?page=Asterisk+FreeBSD If you have facts to add, please mail me off list or edit the Wiki page. /Olle
Hi there, Has anyone had much success installing Asterisk on FreeBSD 5 upwards? If so what are the packages required to get asterisk working. Thanks Umar. Registered in England No. 04348334. Tel: (+44) 0118 965 5600 This message is subject to and does not create or vary any contractual relationship between alwaysON Group, its subsidiaries or affiliates ("Emperian & alwaysON") and you. Internet communications are not secure and therefore alwaysON Group does not accept legal responsibility for the contents of this message. Any view or opinions expressed are those of the author. The message is intended for the addressee only and its contents and any attached files are strictly confidential. If you have received it in error, please telephone the number above. Thank you.
Hello, Asterisk in FreeBSD ports is currently FORBIDDEN due to security issues raised in pwlib (H323). As I just want to test Asterisk internally at this point I commented out the FORBIDDENs and compiled it with no problems. Unfortunately though, I can't seem to get any SIP softphones to register with Asterisk. I have tried SJPhone on Windows and KPhone and Linphone under FreeBSD. At the Asterisk console I've turned the sip debug on, but don't see anything at all. (no SIP traffic). I have followed the quickstart quide and configured things in sip.conf, but with no success. At this stage, and someone please confirm that Asterisk is really working on FreeBSD ? :) The version I installed is 0.7.2, running on FreeBSD 4.7. many thanks, Richard
Hello, ereyone! I have just installed Asterix on my FreeBSD (-current) box I'm planning to use it as H323 PBX for softphones Currently I'm stuck in transfering a call to another machine running H323 client When I define forwarding address as H323/ip$192.168.1.77|20|r Asterisk will crash immediately with Segmentation Fault when trying to transfer Program received signal SIGSEGV, Segmentation fault. 0x289f1314 in _init () from /usr/local/lib/asterisk/modules/chan_h323.so (gdb) x/3i $eip 0x289f1314 <_init+12668>: cmpb $0x0,(%eax) 0x289f1317 <_init+12671>: je 0x289f1327 <_init+12687> 0x289f1319 <_init+12673>: sub $0xc,%esp When I define call forwarding address as: H323/ip$192.168.1.77/|20|r i.e. additional "/" after IP It will perfectly connect and transfer call if there is H323 cli running If target machine is powered off or no software is running it will behave weird It will eat 100% cpu, hang forever and transmit silence to caller However tracing h.323 shows that it indeed detects that there is no H.323 connection to target avaible -- PBX1 is calling host ip$192.168.1.77 -- Call token is ip$localhost/25892 -- Call reference is 25892 -- Called ip$192.168.1.77 -- No phone running for ip$192.168.1.77:1720 == H.323 Connection deleted. Any help will be much appreciated. I will be glad to provide any required debuggin info, etc. Cheers, AL.
Hi Guys, I'm very interested if somebody using asterisk on FreeBSD and not Linux without problem ? Thank you for your feedbacks, Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041213/1d417f59/attachment.htm