Can somebody explain this

I am experiencing very very slow network performance.

gmpc when trying to fetch from discogs.com or last.fm hangs for 4 seconds (even if it happens in a different thread).

trying to ping those hosts gives the same crap.

6 packets transmitted, 6 received, 0% packet loss, time 25989ms

rtt min/avg/max/mdev = 165.326/177.251/188.114/8.728 ms

The roundtrip time here is fine, 160ms.. but to determine that for 6 packets, takes 26 seconds….
If I strace gmpc, I see it block on a futex.  for 4.7 seconds

futex(0xae1790, 0×80 /* FUTEX_??? */, 2) = 0 <4.779978>

If I strace ping, I see it constantly hit the avahi-daemon socket. So after stopping avahi-daemon everything was back to normal.

Can somebody tell me what in gods name avahi-daemon is doing to cause this almost 5 second block.
Why does it block gmpc completely, even if it runs in it own thread?

WEIRD shit.

One comment

  • evandrofisico
    March 21, 2009 - 1:57 am | Permalink

    take a look at your /etc/nsswitch.conf to see if it is using mdns/avahi for name resolution, and avahi configuration to see what automatic domain it is. I’ve had some machines taking a long time trying to resolve names using avahi before giving up and trying dns.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>