[/etc/resolv.conf] Extra slow login / app launch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: network-manager
[Running NM 0.6.4 on feisty]
Since NM keeps /etc/resolv.conf between reboots, major slowdown can happen to the whole desktop if the networks changes between reboots.
Consider the following scenario, at different locations:
1) At work using wireless network. NM generated /etc/resolv.conf
2) Shutdown computer. Went home
3) At home, computer boots with previous /etc/resolv.conf
Unfortunately it can take up to 5 minutes for NM authenticate and establish connection to the home network (i must keep repeating password for some unknown and annoying reason).
The thing is, until i'm connected to the home network, the whole desktop is UNUSABLE since applications take a few minutes to start.
If I add the following script to /etc/init.d (to be run on boot and on shutdown), the logging process is MUCH faster, and applications start instantly:
------
#!/bin/sh
echo "nameserver 0.0.0.0" > /etc/resolv.conf
------
After a successful authentication NM generates a valid /etc/resolv.conf and no slowdown is experienced launching applications or logging in again.
The slow login/desktop bug appears to have been around for a while. The bug is reported in edgy & feisty and they are mostly unconfirmed and mostly of undecided importance. Although I'm very happy with feisty, I am finding this bug a bit bothersome so I thought I'd do some research through the bug archives.
I think this bug has been reported numerous times. The bug list that follows, I think are reports of effectively the same bug.
Bug #78263 - claims workaround (feisty)
Bug #78493 (edgy)
Bug #79466 (edgy)
Bug #80827 - claims workaround (edgy)
Bug #92997 - claims workaround (feisty)
Bug #94048 (feisty)
Bug #110616 (feisty?)
Bug #110775 (feisty)
Bug #110187 - reports slow desktop as a side effect of other network config issues. (feisty)
---------------
Bug #95264 - Maybe related (not clear) (feisty)
Bug #93447 - Maybe related (not clear) (edgy)
---------------
It seems most discussions are blaming this bug on one or more of:
Network-manager
avahi
hosts file
resolve file
static IP addresses
no network connection.
I can't vouch for the claimed workarounds - but I intend on investigating them further.
The person who solves this one will likely 'kill a number of bugs with one stone'.
I hope I'm not being too forward by presenting such a list but I am rather keen to see this bug solved. I hope this list helps to unify further discussion & prompts some further thought on the matter.
(note: I have posted it to all above bug reports so that all are in the loop)