Comment 12 for bug 355355

Revision history for this message
Pedro CĂ´rte-Real (pedrocr) wrote :

I ran across this bug because bug #528925 makes this very evident. It seems to me this bug is actually in synaptic as that is another of the big CPU consumers in top and I can reproduce the same behavior by running "Reload" in synaptic. I'm guessing update-manager is actually calling synaptic to do the work.

I tried strace on synaptic and it seems to be doing poll() in a tight loop and getting EAGAIN repeatedly. It should probably be doing select() instead or at least sleeping for a little bit between invocations. No need to update the status bar as fast as possible, it only slows down actual work, like installing packages. :)

I grepped the synaptic source and couldn't find any calls to poll() so I guess it is being called inside a library. My gdb skills aren't enough to track that down.