[avahi] avahi-daemon periodically eats CPU 50% more or less in embedded system

Lennart Poettering lennart at poettering.net
Mon Jun 29 17:37:48 PDT 2009

On Wed, 24.06.09 12:11, chen leyn (leyncl at gmail.com) wrote:

> Hi, there,
> I'm recently working on porting Avahi (version 0.6.22) to an embedded Linux
> (kernel 2.6.17) platform. The job is almost done and we already achieved all
> the functionalities we want. However, during further testing, we found in
> some lab that there are heavy Bonjour network traffic (many Mac OS hosts),
> Avahi-daemon will eat CPU time periodically.
> We use strace to find what is happening, and here is the data, seems like
> the timeout value which avahi calculated for next poll operation is always 0
> for a while, not sure whether that's expect behavior and  whether such tight
> poll loop eat CPU time. Also want to mention that, after we plugged out the
> network cable, the symptom disappear, after plugged in back, appear again.
> Even after kill avahi-daemon and restart it, problem is still there.
> Any help we can get from here? Thanks in advance!

No clue, except maybe that gdb or even oprofile might be a more useful
tool here.

I fear you have to track that one down yourself, as I haven't had any
report about this before.



Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the avahi mailing list