| View previous topic :: View next topic |
| Author |
Message |
tliou Tux's lil' helper

Joined: 23 Nov 2004 Posts: 86 Location: Salt Lake City, UT
|
Posted: Sat Aug 08, 2009 7:03 pm Post subject: very slow firefox unexpected solution |
|
|
Hi,
Since it took two days to solve, I figured that someone else might want to read about this problem:
I did a two days ago. Since that time, firefox became so slow that it timed out looking up obscure sites like google.com. Other computers on the same network had no trouble.
I re-emerged firefox, sqlite, xulrunner one at a time with no effect. I installed mozilla-firefox-bin with no effect. I re-emerge avahi and tried substituting mDNSresponder since the firefox window seemed to be stuck looking up addresses. There was no effect.
Most sites actually did come up in the browser though painfully slowly--just under the timeout limits. However, once on a site, pages local to that site came up very fast. On the gentoo forums, I read and tried the suggestion to put the firefox profile into ram:
http://forums.gentoo.org/viewtopic-t-717117-highlight-firefox+tmpfs.html
No improvement resulted.
I gave up on firefox and installed opera. It had no effect on the problem which gave me the hint to look elsewhere (as if the lack of reports of problems with firefox had not). For whatever reason, fetches and pings and other command line communication with other sites worked fine.
Then I remembered that my IP service had a major hardware overhaul a few weeks ago. I wondered if their ip addresses had changed.
| Code: | | ls -l /etc/resolv.conf |
revealed that resolv.conf was last touched in November 2008. The contents revealed that it was created by dhcpcd. After doing a man dhcpcd I did this:
| Code: | mv /etc/resolv.conf /etc/resolv.conf.old
dhcpcd -x eth0
dhcpcd eth0 |
All the ip addresses in the brand new resolv.conf were changed compared to the November 2008 version.
Took a deep breath and restarted firefox. It is blazingly fast again.
It appears that winXP and MacOs (running X) update resolv.conf or its equivalent but that gentoo does not. Why the slowdown in firefox was triggered by an emerge that happened a few days after the IP service update is a mystery to me. That resolv.conf is static would not be a problem if the ip has no changes in its servers, but in this case there was a big change. Makes me wonder how stable my service is.
I'd be interested in comments (just don't call me stupid too many times). Hope this helps someone even though it isn't a "deep" problem. |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1937 Location: Zurich, Switzerland
|
Posted: Sat Aug 08, 2009 7:38 pm Post subject: |
|
|
resolve.conf contains the nameserver and searchdomain entries. the former are use to translate fqdn into ip numbers.
What I am more surprised is that you did not reboot your machine since November 2008. (normally resolv.conf gets update whenever the system gets booted - implying that you use dhcp).
just my thoughts.
V.
PS. I sometimes run into the same problem with my notebook + networkmanager + suspend... sometimes, no always, some stale entries remain, any anykind of webbroswing downloading - you name it - get sluggish |
|
| Back to top |
|
 |
tliou Tux's lil' helper

Joined: 23 Nov 2004 Posts: 86 Location: Salt Lake City, UT
|
Posted: Sat Aug 08, 2009 8:51 pm Post subject: |
|
|
| Actually this particular machine is rebooted at least daily. And I do use dhcp. Is there a hidden problem? |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1937 Location: Zurich, Switzerland
|
Posted: Sun Aug 09, 2009 6:37 am Post subject: |
|
|
Could be...
Which DHCP-Client are you using?
Do You have any "funky" lines in /etc/conf.d/net?
Is openresolv installed? (not sure, whether it is relevant...)
Which baselayout are you using? |
|
| Back to top |
|
 |
tliou Tux's lil' helper

Joined: 23 Nov 2004 Posts: 86 Location: Salt Lake City, UT
|
Posted: Sun Aug 09, 2009 6:48 am Post subject: |
|
|
I use net-misc/dhcpcd-4.0.13
Contents of /etc/conf.d/net:
| Code: | # This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "dhcp" )
dhcp_eth0="nodns nonis"
| emerge --search openresolv returns:
| Code: | emerge --search openresolv
Searching...
[ Results for search key : openresolv ]
[ Applications found : 1 ]
* net-dns/openresolv
Latest version available: 3.1.1
Latest version installed: [ Not Installed ]
Size of files: 8 kB
Homepage: http://roy.marples.name/projects/openresolv
Description: A framework for managing DNS information
License: BSD-2
|
And, baselayout:
| Code: | * sys-apps/baselayout
Latest version available: 1.12.11.1
Latest version installed: 1.12.11.1
Size of files: 217 kB
Homepage: http://www.gentoo.org/
Description: Filesystem baselayout and init scripts
License: GPL-2
|
I do get a message during boot up every time about baselayout-2, something to the tune of:
The device-mapper init script is written for baselayout-2
Please do not use it with baselayout-1
I've never figured out what to do about that error, but it has never caused any problems besides the error message that I've ever noticed. |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1937 Location: Zurich, Switzerland
|
Posted: Sun Aug 09, 2009 7:35 am Post subject: |
|
|
I think we go the bugger.... Or I don't have nodns in my dhcp_eth0 options. (nodns means: do not update my dns entries. In some setups you want to get an IP Address via DHCP, but still use your default dns servers [or at least that is the concept])
remove that line, or just the nodns options, and restart you network interface.
If /etc/resolv.conf gets touched again, we found the problem.
if not....
cheers
V. |
|
| Back to top |
|
 |
tliou Tux's lil' helper

Joined: 23 Nov 2004 Posts: 86 Location: Salt Lake City, UT
|
Posted: Wed Aug 12, 2009 5:36 am Post subject: |
|
|
Took a couple of days to get back to this.
Taking "nodns" out worked. /etc/resolv.conf got touched with boot up.
Thanks! |
|
| Back to top |
|
 |
|