One of the things I quickly found to be bothering me is the fact that there was an apparently long and unexplicable delay for all new network connections which resembled to a dns resolving. No reason for lengthy dns resolving though. So I did a strace:

socket(PF_FILE, SOCK_STREAM, 0)         = 4
fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_FILE, path="/var/run/avahi-daemon/socket"}, 110) = 0
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f35000_
llseek(4, 0, 0xbfa7d918, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(4, "RESOLVE-ADDRESS 10.0.0.6\n", 25) = 25read(4,  <unfinished ...>

the results shows a connection to a avahi-daemon which I have no ideea what is good for so I should not need it. I disabled it in /etc/default/avahi-daemon

cat /etc/default/avahi-daemon # 0 = don't start, 1 = start
AVAHI_DAEMON_START=0

Hope it helps.

Comments:

joetke -

I come from a redhat background and I didn’t have the idea to take a close look at /etc/default. Thanks to your blog I realized that too many useless (from my standpoint of course) services were launched at boot.
I get all unexpected advantages from disabling them the way you suggested. Now surfing the web is much responsive. Thank you very much from Strasbourg, France.
I’m still wondering why kubuntu triggers all those services at boot.


Adrian Puente -

Thxs for the hint, I was annoyed about this daemon that I don’t found useful.

Ch0ks


iGuide -

It did the trick, finally, thanks!


Random Hack -

Yes incoming ssh and ftp connections were slow. Turning this off fixed it!


fred -

The dreaded avahi-daemon is a nasty Apple creation for Linux. Apple in their infinite moronic attitude of there is only us and the rest don’t count have this system in Macs that gets you an IP address on a network not matter what. It ignores DHCP and your local ifconfig setups to get that address not matter if it breaks the rest of the of the Linux system. I found it running on this data base server of which no one could understand why it suddenly changed it’s ip address and the default gateway. Avahi will do this. SO yes turn the darn thing off and even rm it.