Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED!] Starting network slows down computer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
carnaby
n00b
n00b


Joined: 19 Jan 2005
Posts: 58
Location: seattle

PostPosted: Wed Nov 12, 2008 5:30 am    Post subject: [SOLVED!] Starting network slows down computer Reply with quote

My hard drive bit the dirt so I had to re-install gentoo from scratch. After installing everything works great, except that after I start wlan0 (dhcp) some aspects of the computer slow way down. For example, starting a gnome terminal goes from near instantaneous to 10 seconds. Anyone have any idea what the slow-down is all about? Stopping wlan0 speeds things back up again. The slowdown also occurs when eth0 is started. I took the networks out of the default run level because that was causing gnome startup to be very slow as well.

Last edited by carnaby on Wed Nov 12, 2008 7:00 am; edited 1 time in total
Back to top
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Wed Nov 12, 2008 5:45 am    Post subject: Reply with quote

Are you missing definitions for localhost in your /etc/hosts?

When the network is up what does

Code:

ping localhost
do?

Also try "ping hostname" where hostname is your machine's name.

Check /etc/hosts, mine shows:

Code:
127.0.0.1   localhost laptop
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


My machine is named laptop.
Back to top
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Wed Nov 12, 2008 5:46 am    Post subject: Reply with quote

Also check that /etc/nsswitch.conf has:

Code:

hosts:     files dns


Otherwise it will do network name resolution first.
Back to top
View user's profile Send private message
carnaby
n00b
n00b


Joined: 19 Jan 2005
Posts: 58
Location: seattle

PostPosted: Wed Nov 12, 2008 7:00 am    Post subject: Reply with quote

That did it, thanks. I had to change the line in hosts from

127.0.0.1 localhost

to

127.0.0.1 localhost myhostname

where myhostname is my computer's hostname :)

I had the line for the external IP with myhostname, but not the localhost ip.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum