[sane-devel] Analysis of saned CPU utilization

Julien BLACHE jb@jblache.org
Tue, 03 Jun 2003 22:58:35 +0200

Jay Guerette <JayGuerette@pobox.com> wrote:

> I've experienced, and seen a few references to similar experiences on the
> web, saned consuming all available CPU when in use.
> After running a strace while it was doing this, and examining the source
> to saned, it appears that it is locked in a tight select loop with no
> timeout.

Could you give some more details ? select() is only used once in the
code (not counting the poll() in main(), or the select() that's used
instead on platforms where poll() doesn't exist -- that's for 1.0.12).

A testcase would be nice.

To answer your question, patches are always welcome :)


Julien BLACHE                                   <http://www.jblache.org>