You are not logged in.

#1 2006-06-21 11:41:12

Adridon
Member
Registered: 2006-06-17
Posts: 6

Performance issues after connecting to LAN

I don't really know where to put this thread, but I got some performance issues after I connected to my network. Before that everything is running ok, Applications are starting up like expected. But after I connect to the wireless network everything is so slow. A Terminal takes like 30 seconds to start, amaroK takes like a minute. And that's not normal, I think...

What causes that problem and how can I fix it?

Offline

#2 2006-06-21 13:36:27

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Performance issues after connecting to LAN

Now that you mention it, I have a very similar problem. When one of my network interfaces is up but not connected (if I simply unplug my LAN cable or turn off my antenna without `ifconfig x down`ing) some programs take a really long time to start. Firefox, for one, although it's not like it's much use without a network connection, but also Emacs (it baffles me).

Could this be related to Adridon's problem?

Offline

#3 2006-06-21 14:12:26

Pierluigi
Member
Registered: 2004-04-10
Posts: 90
Website

Re: Performance issues after connecting to LAN

Offline

#4 2006-06-21 14:25:05

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: Performance issues after connecting to LAN

Check that there is an entry in /etc/hosts that corresponds to the hostname in /etc/rc.conf. Example:

$ grep HOSTNAME /etc/rc.conf
HOSTNAME="myhostname"
$ grep myhostname /etc/hosts
127.0.0.1 myhostname.localdomain myhostname localhost

Edit: how slow am I..

Offline

#5 2006-06-21 15:26:45

Adridon
Member
Registered: 2006-06-17
Posts: 6

Re: Performance issues after connecting to LAN

That did the trick for me. Thank you.

I'm just curious... How is the missing hostname in the /etc/hosts related to the performance problem?

Offline

#6 2006-06-21 16:16:09

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Performance issues after connecting to LAN

bad coding?


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#7 2006-06-21 20:40:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Performance issues after connecting to LAN

Adridon wrote:

That did the trick for me. Thank you.

I'm just curious... How is the missing hostname in the /etc/hosts related to the performance problem?

A lot of apps, especially KDE, Gnome and XFCE4 stuff, connects to the localhost when they are started. BTW, I don't know why they do that. If your loopback device (lo) is not running or if your config for the localhost is incorrect, they can't connect to the localhost so they need to wait for a timeout. That's why they take 30-60 seconds to start but when they are started, they run normally.

Offline

#8 2006-06-22 01:27:54

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Performance issues after connecting to LAN

Exellent. Fixed me up just right.

Offline

Board footer

Powered by FluxBB