You are not logged in.

#1 2014-09-15 16:43:06

Sonic
Member
Registered: 2011-10-31
Posts: 6

[Solved] Low download speed only on ArchLinux

Hello ArchLinux Users,

I've recently installed ArchLinux (2014.09.03, Kernel: 3.16.2-1) on my computer using a NetGear N150 Wireless Adapter for internet connection. Everything works fine except the download speed, which is only at ~80kb/s instead of ~500kb/s on Windows 8 oder Ubuntu 13.10. Upload speed is fine like in other operation systems.

This problem already appears in the installation process of ArchLinux: I could download the base system (with pacstrap) with only 80 kb/s, which took me quite a while. I even choosed the best download servers using reflector before that. I'm using NetworkManager in GNOME to connect to the internet. In the installation process I used wifi-menu.

Does somebody of you know where the problem could be here? In the following I attached the outputs of iwconfig, ip addr and cat /proc/net/wireless.

Output of iwconfig:

wlp0s18f2u6  IEEE 802.11bgn  ESSID:"MyESSID"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: BA:05:23:2E:2C:A7   
          Bit Rate=65 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=68/70  Signal level=-42 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:4050   Missed beacon:0

Output of ip addr:

{..}
3: wlp0s18f2u6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 16:22:14:3a:22:ac brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.112/24 brd 192.168.2.255 scope global dynamic wlp0s18f2u6
       valid_lft 1813100sec preferred_lft 1813100sec
    inet6 fa80::1546:9adf:fa35:32ac/64 scope link 
       valid_lft forever preferred_lft forever

Output of cat /proc/net/wireless

Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
wlp0s18f2u6: 0000   69.  -41.  -256        0      0      0      1   4476        0

Just tell me if you need further information.

Thank you in advance,
Sonic

Last edited by Sonic (2014-09-15 19:43:22)

Offline

#2 2014-09-15 16:47:42

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 934
Website

Re: [Solved] Low download speed only on ArchLinux

Could you paste the output of "lspci -k" and lsusb

And, if possible, lsmod on Archlinux and Ubuntu (maybe also lspci -k from ubuntu) for comparison

Offline

#3 2014-09-15 16:55:00

Sonic
Member
Registered: 2011-10-31
Posts: 6

Re: [Solved] Low download speed only on ArchLinux

Hello Vamp898,

Thanks for the fast answer. I don't have Ubuntu on my computer anymore, because I replaced it with ArchLinux.
Here are the outputs:

lspci -k

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RX780/RX790 Host Bridge
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RX780/RX790 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RX780/RD790 PCI to PCI bridge (external gfx0 port A)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port C)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: ahci
	Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3c)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel modules: i2c_piix4, sp5100_tco
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: pata_atiixp
	Kernel modules: pata_atiixp, pata_acpi, ata_generic
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 4383
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 4396
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
	Kernel modules: amd64_edac_mod
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)
	Subsystem: NVIDIA Corporation Device 0828
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
	Subsystem: NVIDIA Corporation Device 0828
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7599
	Kernel driver in use: r8169
	Kernel modules: r8169

lsusb

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c245 Logitech, Inc. G400 Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsmod (on ArchLinux)

Module                  Size  Used by
ctr                    12927  1 
ccm                    17534  1 
fuse                   91542  3 
arc4                   12536  2 
snd_hda_codec_hdmi     45117  4 
nvidia              10499180  65 
ath9k_htc              64528  0 
ath9k_common           21746  1 ath9k_htc
nls_utf8               12456  2 
ath9k_hw              403753  2 ath9k_common,ath9k_htc
ntfs                  202154  2 
ath                    26067  3 ath9k_common,ath9k_htc,ath9k_hw
led_class              12859  1 ath9k_htc
mac80211              522822  1 ath9k_htc
snd_hda_codec_realtek    67127  1 
kvm_amd                63227  0 
cfg80211              458257  4 ath,ath9k_common,mac80211,ath9k_htc
snd_hda_codec_generic    63126  1 snd_hda_codec_realtek
kvm                   421222  1 kvm_amd
rfkill                 22963  3 cfg80211
microcode              22061  0 
mousedev               17272  0 
evdev                  21544  21 
mac_hid                12633  0 
serio_raw              12849  0 
pcspkr                 12595  0 
edac_core              51366  0 
snd_hda_intel          26327  12 
k10temp                12618  0 
edac_mce_amd           21166  0 
r8169                  68119  0 
hwmon                  12930  1 k10temp
snd_hda_controller     26727  1 snd_hda_intel
drm                   262101  3 nvidia
snd_hda_codec         112648  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
mii                    12675  1 r8169
snd_hwdep              17244  1 snd_hda_codec
snd_pcm                88487  5 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
sp5100_tco             12864  0 
tpm_infineon           16882  0 
snd                    73436  31 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
i2c_piix4              20857  0 
tpm_tis                17134  0 
tpm                    31467  2 tpm_tis,tpm_infineon
soundcore              13031  2 snd,snd_hda_codec
i2c_core               50152  3 drm,i2c_piix4,nvidia
acpi_cpufreq           17218  0 
shpchp                 35210  0 
wmi                    17339  0 
processor              27777  1 acpi_cpufreq
button                 12909  0 
ext4                  505941  4 
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   90556  1 ext4
hid_generic            12393  0 
usbhid                 48603  0 
hid                   102220  2 hid_generic,usbhid
sd_mod                 44356  9 
crc_t10dif             12431  1 sd_mod
crct10dif_common       12356  1 crc_t10dif
ata_generic            12490  0 
pata_acpi              12771  0 
atkbd                  22254  0 
libps2                 12739  1 atkbd
ahci                   29195  7 
libahci                27158  1 ahci
pata_atiixp            12747  0 
ohci_pci               12808  0 
ehci_pci               12512  0 
ohci_hcd               42982  1 ohci_pci
ehci_hcd               69939  1 ehci_pci
libata                181553  5 ahci,pata_acpi,libahci,ata_generic,pata_atiixp
usbcore               203424  6 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,ath9k_htc
scsi_mod              147011  2 libata,sd_mod
usb_common             12440  1 usbcore
i8042                  18002  1 libps2
serio                  18282  4 serio_raw,atkbd,i8042

Offline

#4 2014-09-15 17:38:14

pulser
Member
Registered: 2013-12-23
Posts: 3

Re: [Solved] Low download speed only on ArchLinux

Hi there,

I believe I know the issue you are facing - it's the ath9k kernel driver, logged as this bug on Arch (https://bugs.archlinux.org/task/40905), which is upstream at https://bugzilla.kernel.org/show_bug.cgi?id=78581 in kernel 3.15.x and above.

The good news is the latter indicates recent progress a few days ago, with a one-line fix that appears to resolve the issue (comment 21 on bugzilla).

As Arch is ahead of ubuntu on kernel, you won't see the issue there. There is a "workaround" for the issue (not personally convinced by how good it is, but that's my experience only), as detailed at https://bugzilla.kernel.org/show_bug.cgi?id=78581#c3, by setting nohwcrypt in the modprobe options. The actual kernel fix sounds better to me though, although I have not tested it yet - hopefully it will get into a new kernel release soon.

Offline

#5 2014-09-15 19:42:46

Sonic
Member
Registered: 2011-10-31
Posts: 6

Re: [Solved] Low download speed only on ArchLinux

Hello pulser,

you hit the nail on the head, thank you very much!
I followed the instruction in the 8th post (https://bugzilla.kernel.org/show_bug.cgi?id=78581#c8) and now the download speed is alright.

Offline

Board footer

Powered by FluxBB