I think this has to do with the way some of the SMSC's have been
implemented. The basic pattern is that the smsc code fires up a thread
or two, both of which rotate around an infinite loop. Depending on how
polling of incoming data is done, these loops may well consume a lot
processing power. This is what I noticed while implementing the smsc_cgw
code (or, I did precisely the same thing). I solved it by making the
threads sleep some small amount of time (with pollfd) while waiting for
data. 

- Anders



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Robin Ericsson
Sent: 30. marraskuuta 2001 15:44
To: [EMAIL PROTECTED]
Subject: Re: smsbox eating CPU ?


On Fri, 2001-11-30 at 14:40, [EMAIL PROTECTED] wrote:
> I just noticed, the smsbox on my machine is eating up
> 'as much cpu  as it can get'.  Even though no requests are coming in 
> (it still serves messages when it has to, though).
>    Anyone have any hints on typical causes of this ?
> 
> "my other kannels" don't do this...
> The machine in question serves both a gsm modem and an SMSC.
> 

I've seen the same behaviour on our kannel running 1.1.5, and as you
say, incoming and outgoing sms's seems to work as they should.


br
Robin



Reply via email to