zaptel optimizacion

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Apr 4 15:39:25 UTC 2006


On Tue, Apr 04, 2006 at 10:07:23AM -0500, Nestor A. Diaz wrote:
> Tzafrir Cohen wrote:
> >On Tue, Apr 04, 2006 at 09:13:08AM -0500, Nestor A. Diaz wrote:
> >  
> >>Hello VoIP Team.
> >>
> >>I switch my office asterisk server to version 1.2.1 in testing, however 
> >>i have experienced system freeze with this system.(x100p card / wcfxo 
> >>module)
> >>    
> >
> >First-off, 1.2.4 is recommended.
> >
> >Anyway, what sort of freezes? Kernel problems? Anything in the kernel
> >logs?
> >  
> this is the problem, the system still respond to telnet but no login 
> program is executed, is like there was no resources asigned to it, the 
> num /caps/scroll keys in the keyboard responds but i can not type any 
> other letter, it is something very very strange, there are no 
> /var/log/asterisk/* to check what have happened.

This still does not exclude Asterisk in a 100% CPU loop.

> >Asterisk taking 100% CPU time? Indication to that: open the manager
> >interface (manager.conf) to interfaces other than the loopback
> >(bind to 0.0.0.0). If asterisk locks, try telnetting into it (port
> >5038). If you get pings back and response from the manager interface but
> >nothing else, you have Asterisk taking 100% CPU. Try removing the -p
> >flag (the real-time priority, see /etc/default/asterisk) to get a better
> >chance of debugging this.
> >  
> maybe it should be the "-p" flag that takes the whole cpu, but the 
> strange thing is that the don't work, i am going to remove this, i also 
> run asterisk with safe_asterisk script.

safe_asterisk has nothing to do with it. It will run asterisk in a loop
in case asterisk crashes. Kind of like safe_mysql . However asterisk
shouldn't just crash. IMHO safe_asterisk only complicates things. It
will surely complicate debugging your problem.

> 
> >>I think the only way the system will freeze is because of zaptel 
> >>drivers, maybe my legacy server (athlon 850mhz) is not capable to deal 
> >>with this kind of optimizations, this is just an assumption,  
> >>DZAPTEL_OPTIMIZATIONS is not working the right way.
> >>
> >>Is there any way to insmod zaptel devices into a safe mode, not optimized 
> >>?
> >>    
> >
> >This is a compile-time optimization. You have to rebuild the modules to
> >remove it. Yet, I have a feeling that this is not the case.
> >  
> Thank you very much, i am going to remove the "-p" in order to check if 
> that's the case.  i will tell you what have been the problem if i have 
> been able to found the problem.
> 
> I also decide to insmod the following way:
> 
> /sbin/insmod /lib/modules/2.4.27-2-k7/misc/zaptel.o debug=1
> /sbin/insmod /lib/modules/2.4.27-2-k7/misc/wcfxo.o monitor=1 debug=1

Editing /etc/modutils/zaptel and running updaet-modules is generally a
better idea.

> 
> let's see what happend,
> 
> what behavious is expected with the "-p" flag when something goes wrong ?

Asterisk in a 100% CPU. The computer may be a bit "slow", but nothing
more than that. It's priority will be decreased due to its consumption
of CPU time.

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



More information about the Pkg-voip-maintainers mailing list