[avahi] avahi-daemon periodically eats CPU 50% more or less in embedded system
chen leyn
leyncl at gmail.com
Mon Jul 6 21:09:42 PDT 2009
Hi, Lennart,
Thanks for your informaiton.
Looked into it deeper, it might not be a bug of Avahi, just hundred hosts in
the same network which periodically sending Multicast package might be a
heavy load to avahi-daemon, which is running in an embedded system.
In my case, seems like too many network traffic causes too many avahi
internal time events been created, between a very tiny interval. Just wonder
whether it's possible to change below place to optimize this condition in my
case (given that I don't need to consider about Apple Bonjour compliance
test right now)?
#define AVAHI_RESPONSE_JITTER_MSEC 500
Thanks!
Leyn
2009/6/29 Lennart Poettering <lennart at poettering.net>
> 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.
>
> Sorry,
>
> LennartLennart
>
> --
> Lennart Poettering Red Hat, Inc.
> lennart [at] poettering [dot] net
> http://0pointer.net/lennart/ GnuPG 0x1A015CC4
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/avahi/attachments/20090706/f1a1ac4a/attachment.html
More information about the avahi
mailing list