> I got frusted a bit by this problem (smsd using incredible much cpu
> even when idle) so I ran smsd through valgrind (well, callgrind).
> It looks like tons of time is spend in an usleep(100); (yes, hundred).
> I always thought that Linux would just round it up to the next
> scheduling interval but it looks like that is a busy loop these days?
> I changed it from 100us to 10ms and now the cpu usage dropped from on
> average > 8% to < 1%. And that is on a "Intel(R) Core(TM) i7-3930K CPU
> @ 3.20GHz".
> Really something that communicates with a device at 19.2kBps should
> not use that much cpu.
> So please apply.
> Thanks.
> Oh and I think there maybe other possibilities of optimizing smsd left.
>
>
>
> Regards,
>
>
> Folkert van Heusden
>
> www.smartwinning.info

This fix is applied in the version >= 3.1.16 (upstream).

Regards,
Keke

Reply via email to