[Asterisk-Users] Asterisk pins CPU

Mark Spencer markster at digium.com
Sun Feb 8 10:09:17 MST 2004


In the mean time try running asterisk with no console.  This is bug #864.
Preliminary analysis shows that after a "restart now", one of the
ioctl()'s performed by editline fails with "-1".  Ignoring the ioctl made
the CLI non-functional.  Happy to get any help I can in this regard.

Mark

On Sun, 8 Feb 2004, Jason Becker wrote:

> Hello All.
>
> Many times I've done a "top" and found that Asterisk is pinning the CPU,
> even when Asterisk isn't being used (this is on a DEV box):
>
> 2044 root      15   0  5232 5228  2608 R    98.6  8.5 626:58   0 asterisk
>
> I'm running a recent build of Asterisk on Slackware (2.4.24 kernel):
>
> www*CLI> show version
> Asterisk CVS-02/07/04-21:34:06 built by root at www on a i686 running Linux
>
> A strace shows that it's looping on this:
>
> -begin-
>
> write(1, "\nUse STOP NOW to shutdown Asteri"..., 35) = -1 EIO
> (Input/output erro
> r)
> write(1, "*CLI> ", 6)                   = -1 EIO (Input/output error)
> read(0, "", 1)                          = 0
> ioctl(0, SNDCTL_TMR_STOP, {B38400 opost isig icanon echo ...}) = -1 EIO
> (Input/o
> utput error)
>
> -end-
>
> The machine does not have a soundcard and my /etc/asterisk/modules.conf has:
>
> noload => chan_alsa.so
> noload => chan_oss.so
>
> If I restart asterisk all is well, for awhile. I'm not sure what
> triggers this behvaior. Anyone else getting this behavior?
>
> I wish the lists were searchable... :(
>
> Thanks.
>
> Cheers
>
> Jason
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list