You are not logged in.

#1 2012-03-20 17:11:28

vimes
Member
Registered: 2012-03-20
Posts: 13

So slow internet

Hello! I've installed Arch Linux for the first time now, and loving it. but something in my network configuration is wrong, after fiddling allot with the wiki (beginner install guide, nettwork, install guide) I still can't find the problem.

Pages take a LONG time to load, over a minute and 60% of the time the page won't load at all and I have to re-fresh the page and hope, so I'm wondering if any one could help me? pretty please : )
http://paste.pocoo.org/show/568575/ <- /etc/hosts
http://paste.pocoo.org/show/568576/ <- /etc/rc.conf

*note I have added localhost before the hostname "localhost.localdomain localhost archie" in both lines in /etc/hosts*

Thank you for all replies!

Edit: pacman is running fine 95% of the time

Last edited by vimes (2012-03-20 17:30:52)

Offline

#2 2012-03-20 17:25:15

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: So slow internet

Sorry, I don't have any suggestions, I just wanted to say that this is a perfect example of how to post a question on this forum:

You've:
* checked the wiki and done your homework beforehand
* asked a clear and specific question
* included the output of relevant files
* pastebinned those files and linked to them

and all in a first post without any replies telling you to do it.

Welcome to the forum! big_smile

I hope this gets resolved soon so you can get on with enjoying Arch.


In the meantime, what's the output of e.g. "ping archlinux.org"? (wondering about latency)
Is there any chance that you've copied over some configuration files from another system with proxy settings? (HTTP_* vars etc)

edit: well, I didn't have any suggestions at the beginning of the post, and I'm not sure the bad ones count tongue

Last edited by Xyne (2012-03-20 18:34:58)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2012-03-20 17:29:44

vimes
Member
Registered: 2012-03-20
Posts: 13

Re: So slow internet

Thanks : )

pinging archlinux.com (ran ping -c 3 archlinux.org and ping archlinux.org, and ping some other sites) returnet "ping: unknown host <some website>", even though sites do load in the browser after some F5'ing, weird.

Edit: tried to ping google later, it worked and returned:

"[andreas@archie ~]$ ping [url=http://www.google.com]www.google.com[/url]
PING [url=http://www.l.google.com]www.l.google.com[/url] (209.85.173.105) 56(84) bytes of data.
64 bytes from 209.85.173.105: icmp_req=1 ttl=48 time=54.3 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=2 ttl=48 time=53.9 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=3 ttl=48 time=53.8 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=4 ttl=48 time=54.1 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=5 ttl=48 time=54.0 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=6 ttl=48 time=53.9 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=7 ttl=48 time=53.9 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=8 ttl=48 time=54.0 ms
64 bytes from lpp01m01-in-f105.1e100.net (209.85.173.105): icmp_req=9 ttl=48 time=53.8 ms

the next time I tried it didn't work, seems as though ping only works some times (just as the websites)

Last edited by vimes (2012-03-20 17:44:14)

Offline

#4 2012-03-20 17:33:19

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: So slow internet

I'd check out my /etc/resolv.conf ... having wrong entries here make the www a nightmare.
I would also add the google-nameservers to it in any case - whether or not you have a valied entriy from before (8.8.8.8 and 8.8.4.4)

Offline

#5 2012-03-20 17:40:20

vimes
Member
Registered: 2012-03-20
Posts: 13

Re: So slow internet

/etc/resolv.conf seems OK to me, then again I'm no expert, here is the file http://paste.pocoo.org/show/568629 with the google nameservs added.

Offline

#6 2012-03-20 17:47:13

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: So slow internet

The dns servers specified in /etc/resolv.conf will be queried in the order they're listed. Just for the sake of testing; could you try putting the Google dns ip's at the top of the list?


Burninate!

Offline

#7 2012-03-20 17:55:06

vimes
Member
Registered: 2012-03-20
Posts: 13

Re: So slow internet

Things seemed to get better after moving the google DNSes up, sites load slowly ..but they load. Front page of the new york times took ~30 seconds to load.

The problem is not the internet SPEED, speedtest.net yielded good results with download speed at 37 MB/s : S

Offline

#8 2012-03-20 17:58:31

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: So slow internet

Do you have ipv6 enabled by any chance? Quickest way to check would be to simply run "ip addr" and see if it has an inet6 address.

If so, try disabling ipv6 as documented here.


Burninate!

Offline

#9 2012-03-20 18:04:52

vimes
Member
Registered: 2012-03-20
Posts: 13

Re: So slow internet

I disabled it by adding

 # Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.<nic0>.disable_ipv6 = 1
...
net.ipv6.conf.<nicN>.disable_ipv6 = 1

  to /etc/sysctl.d/ipv6.conf, problem still persists, also the /etc/sysctl.d/ipv6.conf file was empty ...was it suppose to be?

Offline

#10 2012-03-20 18:07:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,614
Website

Re: So slow internet

Nothing new, I just wanted to second GCool's suggestion (and Xyne's praise for a well asked question).  This does sound very much like an IPv6 issue.  Hopefully it is, that's a very easy fix.

EDIT: nevermind ... this was cross posted with the previous response.

Last edited by Trilby (2012-03-20 18:08:15)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2012-03-20 18:53:01

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: So slow internet

If you don't mind, could you install the "net-tools" and "ethtool" package (they're both in the official repositories, so you can just do it via pacman) and then post the output of the following commands?

# netstat -i
# ifconfig -a
# lspci -k (just the entry of your nic will do)
# traceroute www.google.com
# ethtool eth0

EDIT: added a few more things.

Last edited by Gcool (2012-03-20 19:00:40)


Burninate!

Offline

#12 2012-03-20 19:01:34

vimes
Member
Registered: 2012-03-20
Posts: 13

Re: So slow internet

"the internet" got ALLOT better after doing the configurations you guys asked me to do AND a re-boot, I would say it is close to normal now, even though pages load slower then in my windows 7 they load fast enough.
I'll run the programs though, maybe you can find an error.

netstat -i output: http://pastebin.com/H4CEkes2

iconfig -a output: http://pastebin.com/0j4ibxhr

ethtool eth0 outptup: http://pastebin.com/FD6uYv98

lspci -k: http://paste.pocoo.org/show/568669/ , didn't find the "my nick" part so pasted it all.

traceroute www.google.com: http://paste.pocoo.org/show/568670/

Last edited by vimes (2012-03-20 19:12:15)

Offline

#13 2012-03-20 19:21:35

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: So slow internet

Glad to hear it's working out for you.

The output you posted looks pretty decent except for 1 thing. Ipv6 is still enabled on your eth0 interface. If disabling it through your sysctl config doesn't work; you can also disable it by adding "ipv6.disable=1" to the kernel line in your bootloader config.


Burninate!

Offline

#14 2012-03-20 19:41:51

vimes
Member
Registered: 2012-03-20
Posts: 13

Re: So slow internet

Oh dear, sorry for being and utter noobie but I thought I added it, apparently I did so wrong and I get an error message when booting up.
http://paste.pocoo.org/show/568679/ (Line 41)

Again, thank you for helping me fix the internet speed : )

Offline

#15 2012-03-21 08:32:12

Blµb
Member
Registered: 2008-02-10
Posts: 224

Re: So slow internet

This is a long shot, but a while ago, I had a router which had problems with tcp window scaling, so every connection would start well, but drop down to hell after a few packets.
You could try this:

echo 0 > /proc/sys/net/ipv4/tcp_window_scaling

If you don't notice any changes, it'll reset at the next boot (or you can use 1 instead of 0 to re-enable.)
If it helps though (and, in this case, it either helps a LOT or not at all, in my experience), then I think you can add that line to /etc/rc.local


You know you're paranoid when you start thinking random letters while typing a password.
A good post about vim
Python has no multithreading.

Offline

#16 2012-03-21 15:56:23

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: So slow internet

*chuckles* Only goes to show - when you play by the rules - you get a lot of help!

Re the /etc/resolv.conf - you _could_ put the google nameservers in /etc/resolv.conf.head because /etc/resolv.conf will usually be rewritten at each boot (by hdcpd)

Offline

Board footer

Powered by FluxBB