[sane-devel] Analysis of saned CPU utilization

Julien BLACHE jb at jblache.org
Tue Jun 3 21:58:35 BST 2003


Jay Guerette <JayGuerette at 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 :)

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org> 



More information about the sane-devel mailing list