I have kannel 1.4.1-2 that talks to my Nokia phone connected to it.
Powertop reports that bearerbox causes a wakeup 250 times per second.
This seems rather excessive. Does anyone know what it is doing, and
whether I can do something to make it sleep longer and allow the server
to conserve CPU power. Here's the line from powertop:
Top causes for wakeups:
73,2% (251,2) bearerbox : schedule_timeout (process_timeout)
As a bonus issue, I've noticed that bearerbox runs into a very high cpu
usage loop if it can't reach the USB device that talks to the mobile
phone. It spams lines like these to the log at a very high rate:
2007-10-20 22:41:00 [12142] [6] INFO: AT2[nk6200]: opening device
2007-10-20 22:41:00 [12142] [6] ERROR: AT2[nk6200]: open failed! ERRNO=2
2007-10-20 22:41:00 [12142] [6] ERROR: System error 2: No such file or
directory
The number of log lines for that second alone is 19369 (the log managed
to grow to 3 GB in a few minutes before I realized what was happening).
Some small delay before trying again would seem appropriate, lest Kannel
accidentally cause a DOS for the whole server.
--
Antti