LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   incredibly slow network speed -current (https://www.linuxquestions.org/questions/slackware-14/incredibly-slow-network-speed-current-4175735297/)

dimm0k 03-25-2024 09:25 AM

incredibly slow network speed -current
 
I'm currently running -current from 2022-03-24 that was upgraded from a clean install of 15.0. Since Linux is a home/hobby environment for me it has taken a pretty big backseat since that last update. I've used it from time to time throughout and never noticed it until the last couple of days when the network speed was really really slow - LAN and the Internet are affected. I've tried restarting the network connection, rebooting, switching to the 2nd ethernet connection on the motherboard, as well as swapping network cables and switch ports. With this machine capable of dual booting, I can confirm the network is fine while in Windows. Any ideas how to fix this and what might be the cause?

marav 03-25-2024 12:28 PM

The only thing I can deduce from the "details" you give is that Windows probably displays fake speeds :D

yvesjv 03-25-2024 01:05 PM

Quote:

Originally Posted by dimm0k (Post 6491820)
I'm currently running -current from 2022-03-24 that was upgraded from a clean install of 15.0. Since Linux is a home/hobby environment for me it has taken a pretty big backseat since that last update. I've used it from time to time throughout and never noticed it until the last couple of days when the network speed was really really slow - LAN and the Internet are affected. I've tried restarting the network connection, rebooting, switching to the 2nd ethernet connection on the motherboard, as well as swapping network cables and switch ports. With this machine capable of dual booting, I can confirm the network is fine while in Windows. Any ideas how to fix this and what might be the cause?

Do you have the correct firmware loaded when booting up?

dimm0k 03-25-2024 02:40 PM

Quote:

Originally Posted by marav (Post 6491855)
The only thing I can deduce from the "details" you give is that Windows probably displays fake speeds :D

haha best comment of the week!

Quote:

Originally Posted by yvesjv (Post 6491861)
Do you have the correct firmware loaded when booting up?

are you referring to the firmware for the ethernet card itself? currently using the generic kernel and an initrd created with mkinitrd

business_kid 03-25-2024 03:13 PM

There's an information vacuum here. Do you want to fix this? If so, we need numbers.
  • Have you connected your two network cards to each other? What speed can they do in file transfers?
  • Try each card under windows & linux on speedtest.net or similar. Post the results.
  • Post your OS, kernel version and network card details. Somebody might know something. Are they by any chance Realtek nics? https://www.linuxquestions.org/quest...es-4175734884/

marav 03-25-2024 03:47 PM

Quote:

Originally Posted by dimm0k (Post 6491881)
haha best comment of the week!

;-)

Can you post the output of ?:
Code:

$ inxi -Fmz

dimm0k 03-25-2024 03:57 PM

Quote:

Originally Posted by business_kid (Post 6491884)
There's an information vacuum here. Do you want to fix this? If so, we need numbers.
  • Have you connected your two network cards to each other? What speed can they do in file transfers?
  • Try each card under windows & linux on speedtest.net or similar. Post the results.
  • Post your OS, kernel version and network card details. Somebody might know something. Are they by any chance Realtek nics? https://www.linuxquestions.org/quest...es-4175734884/

Currently running a slackpkg upgrade-all that's downloading at roughly 150KB/s from 207.223.116.213 so speed tests will be affected while this is still ongoing. 2 different NICs on the motherboard, both exhibiting the same performance issue. Prior to posting about this issue I had tried running speed tests from both NICs and that gave roughly the same results - ~20Mb/s download, ~18Mb/s upload, while my connection is rated for 500Mb/s down, 20Mb/s up. In dual booted Windows on the same machine and my work laptop running Windows they both give 500+ Mb/s download speeds. Below is the lspci -v info for both NICs. Kernel is Linux 5.17.0 #1 SMP PREEMPT Mon Mar 21 04:05:37 CDT 2022 x86_64 Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz GenuineIntel GNU/Linux and I'm on -current after a fresh install of Slackware 15.0.


Code:

00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V (rev 05)
        DeviceName:  Onboard LAN
        Subsystem: ASUSTeK Computer Inc. Ethernet Connection (2) I218-V
        Flags: bus master, fast devsel, latency 0, IRQ 72, NUMA node 0
        Memory at dc100000 (32-bit, non-prefetchable) [size=128K]
        Memory at dc136000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at f000 [size=32]
        Capabilities: [c8] Power Management version 2
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [e0] PCI Advanced Features
        Kernel driver in use: e1000e
        Kernel modules: e1000e

Code:

6:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
        Subsystem: ASUSTeK Computer Inc. I211 Gigabit Network Connection
        Flags: bus master, fast devsel, latency 0, IRQ 18, NUMA node 0
        Memory at dc600000 (32-bit, non-prefetchable) [size=128K]
        I/O ports at c000 [size=32]
        Memory at dc620000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
        Capabilities: [70] MSI-X: Enable+ Count=5 Masked-
        Capabilities: [a0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 38-d5-47-ff-ff-af-45-31
        Capabilities: [1a0] Transaction Processing Hints
        Kernel driver in use: igb
        Kernel modules: igb


jkh2cpu 03-25-2024 06:04 PM

You are using wired connections to your router, right? Not using wireless adapters, right?

marav 03-25-2024 06:08 PM

You could test if you have the same results with a Slackware-current live ISO

dimm0k 03-25-2024 07:49 PM

Quote:

Originally Posted by marav (Post 6491894)
;-)

Can you post the output of ?:
Code:

$ inxi -Fmz

Code:

{~}$ inxi -Fmz
System:
  Kernel: 5.17.0 x86_64 bits: 64 Desktop: Xfce 4.16.0 Distro: Slackware 15.0
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A
    serial: <superuser required>
  Mobo: ASUSTeK model: X99-DELUXE II v: Rev 1.xx
    serial: <superuser required> UEFI-[Legacy]: American Megatrends v: 1902
    date: 04/19/2018
Memory:
  RAM: total: 102.1 GiB used: 5.82 GiB (5.7%)
  RAM Report:
    unknown-error: Unknown dmidecode error. Unable to generate data.
CPU:
  Info: 6-core model: Intel Core i7-6850K bits: 64 type: MT MCP cache:
    L2: 1.5 MiB
  Speed (MHz): avg: 1827 min/max: 1200/4000 cores: 1: 2206 2: 1769 3: 3016
    4: 1325 5: 1200 6: 1199 7: 2581 8: 1320 9: 2720 10: 2190 11: 1199 12: 1200
Graphics:
  Device-1: NVIDIA GK110 [GeForce GTX 780] driver: nvidia v: 470.103.01
  Device-2: Logitech HD Webcam C615 type: USB
    driver: snd-usb-audio,uvcvideo
  Display: server: X.Org v: 1.20.14 driver: X: loaded: nvidia
    unloaded: modesetting,nouveau,nv,vesa gpu: nvidia resolution:
    1: 2560x1440~60Hz 2: 2560x1440~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 780/PCIe/SSE2
    v: 4.6.0 NVIDIA 470.103.01
Audio:
  Device-1: Intel C610/X99 series HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GK110 High Definition Audio driver: snd_hda_intel
  Device-3: AudioQuest DragonFly Black v1.5 type: USB driver: snd-usb-audio
  Device-4: Logitech HD Webcam C615 type: USB
    driver: snd-usb-audio,uvcvideo
  Sound Server-1: ALSA v: k5.17.0 running: yes
  Sound Server-2: PulseAudio v: N/A running: yes
Network:
  Device-1: Intel Ethernet I218-V driver: e1000e
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel I211 Gigabit Network driver: igb
  IF: eth1 state: down mac: <filter>
  Device-3: Broadcom BCM4360 802.11ac Wireless Network Adapter
    driver: bcma-pci-bridge
Bluetooth:
  Device-1: ASUSTek Broadcom BCM20702 Single-Chip Bluetooth 4.0 + LE
    type: USB driver: btusb
  Report: hciconfig ID: hci0 state: up address: <filter> bt-v: 2.1
RAID:
  Device-1: md0 type: mdraid level: mirror status: active size: 5.46 TiB
    report: 2/2 UU
  Components: Online: 1: sdb1 2: sda1
  Device-2: md127 type: mdraid level: mirror status: active size: 1.82 TiB
    report: 2/2 UU
  Components: Online: 1: sdd1 2: sde1
Drives:
  Local Storage: total: raw: 15.24 TiB usable: 7.96 TiB
    used: 5.35 TiB (67.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 950 PRO 256GB
    size: 238.47 GiB
  ID-2: /dev/sda vendor: Seagate model: ST6000NE0023-2EX110 size: 5.46 TiB
  ID-3: /dev/sdb vendor: Seagate model: ST6000NE0023-2EX110 size: 5.46 TiB
  ID-4: /dev/sdc vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
  ID-5: /dev/sdd vendor: Hitachi model: HDS722020ALA330 size: 1.82 TiB
  ID-6: /dev/sde vendor: Western Digital model: WD20EZRZ-00Z5HB0
    size: 1.82 TiB
Partition:
  ID-1: / size: 29.36 GiB used: 22.23 GiB (75.7%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-2: /home size: 799.24 GiB used: 654.04 GiB (81.8%) fs: ext4
    dev: /dev/dm-1
  ID-3: /var size: 7.79 GiB used: 718.6 MiB (9.0%) fs: ext4 dev: /dev/dm-2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 29.0 C mobo: N/A gpu: nvidia temp: 37 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 40%
Info:
  Processes: 379 Uptime: 1d 8h 39m Shell: Bash inxi: 3.3.13

Quote:

Originally Posted by jkh2cpu (Post 6491929)
You are using wired connections to your router, right? Not using wireless adapters, right?

correct, both adapters are wired connections - only use one, but have tried both

Quote:

Originally Posted by marav (Post 6491931)
You could test if you have the same results with a Slackware-current live ISO

that's the plan once the slackpkg upgrade completes... may take a while at this speed

marav 03-25-2024 08:58 PM

You could also give this a try

Code:

This enables OS control over PCI Express ASPM (Active State
Power Management) and Clock Power Management. ASPM supports
state L0/L0s/L1.

ASPM is initially set up by the firmware. With this option enabled,
Linux can modify this state in order to disable ASPM on known-bad
hardware or configurations and enable it when known-safe.

ASPM can be disabled or enabled at runtime via
/sys/module/pcie_aspm/parameters/policy

Or add this to your GRUB_CMDLINE_LINUX
Code:

pcie_aspm=off

Lockywolf 03-25-2024 09:29 PM

Quote:

Originally Posted by dimm0k (Post 6491898)
Currently running a slackpkg upgrade-all that's downloading at roughly 150KB/s from 207.223.116.213 so speed tests will be affected while this is still ongoing. 2 different NICs on the motherboard, both exhibiting the same performance issue. Prior to posting about this issue I had tried running speed tests from both NICs and that gave roughly the same results - ~20Mb/s download, ~18Mb/s upload, while my connection is rated for 500Mb/s down, 20Mb/s up. In dual booted Windows on the same machine and my work laptop running Windows they both give 500+ Mb/s download speeds.

We need to see how you test your speed.
If you use speedtest in a browser, or speedtest-cli, those are not very reliable. I mean, they work for a one-shot test, but not for a thorough investigation.

For a start, if you can, connect some other machine to the same network (say, your laptop), and run iperf3, as well as iperf3 -R. You should get roughly the speed of your ethernet switch.

My first guess actually is that your machine connects to wifi automatically, and sets this connection to be the default, so the test don't even go through the ethernet link. This would explain the difference between Windows and Slackware, if Windows selects the wired adapter by default, and Slackware selects Wifi.

henca 03-26-2024 01:43 AM

Quote:

Originally Posted by Lockywolf (Post 6491957)
My first guess actually is that your machine connects to wifi automatically, and sets this connection to be the default, so the test don't even go through the ethernet link. This would explain the difference between Windows and Slackware, if Windows selects the wired adapter by default, and Slackware selects Wifi.

That guess would be possible to verify by studying the output from:

Code:

/sbin/ifconfig -a
regards Henrik

Bavarian Slacker 03-26-2024 12:11 PM

I had the same problem a few years ago. The solution was a BIOS-Update.

dimm0k 03-26-2024 03:57 PM

Quote:

Originally Posted by marav (Post 6491931)
You could test if you have the same results with a Slackware-current live ISO

Unfortunately it looks like Slackware Live Edition is also affected with this slow speed issue

Quote:

Originally Posted by Lockywolf (Post 6491957)
We need to see how you test your speed.
If you use speedtest in a browser, or speedtest-cli, those are not very reliable. I mean, they work for a one-shot test, but not for a thorough investigation.

For a start, if you can, connect some other machine to the same network (say, your laptop), and run iperf3, as well as iperf3 -R. You should get roughly the speed of your ethernet switch.

My first guess actually is that your machine connects to wifi automatically, and sets this connection to be the default, so the test don't even go through the ethernet link. This would explain the difference between Windows and Slackware, if Windows selects the wired adapter by default, and Slackware selects Wifi.

Well, I was going to try and see if the WiFi on this desktop would get better speeds, but the WiFi NIC isn't even detected so no go there. As for running iperf3, it does look like I'm getting decent LAN speeds
Code:

[ ID] Interval          Transfer    Bitrate        Retr  Cwnd
[  5]  0.00-1.00  sec  113 MBytes  944 Mbits/sec    0    247 KBytes     
[  5]  1.00-2.00  sec  111 MBytes  935 Mbits/sec    0    247 KBytes     
[  5]  2.00-3.00  sec  111 MBytes  932 Mbits/sec    0    247 KBytes     
[  5]  3.00-4.00  sec  112 MBytes  935 Mbits/sec    0    247 KBytes     
[  5]  4.00-5.00  sec  111 MBytes  934 Mbits/sec    0    247 KBytes     
[  5]  5.00-6.00  sec  112 MBytes  936 Mbits/sec    0    247 KBytes     
[  5]  6.00-7.00  sec  111 MBytes  934 Mbits/sec    0    247 KBytes     
[  5]  7.00-8.00  sec  111 MBytes  934 Mbits/sec    0    247 KBytes     
[  5]  8.00-9.00  sec  111 MBytes  931 Mbits/sec    0    247 KBytes     
[  5]  9.00-10.00  sec  112 MBytes  938 Mbits/sec    0    247 KBytes     
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval          Transfer    Bitrate        Retr
[  5]  0.00-10.00  sec  1.09 GBytes  935 Mbits/sec    0            sender
[  5]  0.00-10.00  sec  1.09 GBytes  934 Mbits/sec                  receiver

Quote:

Originally Posted by henca (Post 6491983)
That guess would be possible to verify by studying the output from:

Code:

/sbin/ifconfig -a
regards Henrik

Code:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.42  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fe80::c6d2:28a6:5a68:3b54  prefixlen 64  scopeid 0x20<link>
        ether 38:d5:47:af:45:30  txqueuelen 1000  (Ethernet)
        RX packets 226109  bytes 88800169 (84.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1658861  bytes 2457711326 (2.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xdc100000-dc120000 

eth1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 38:d5:47:af:45:31  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xdc600000-dc61ffff 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4593  bytes 4323078 (4.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4593  bytes 4323078 (4.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Quote:

Originally Posted by Bavarian Slacker (Post 6492070)
I had the same problem a few years ago. The solution was a BIOS-Update.

unfortunately this desktop is quite old and there has not been any BIOS updates for a while and I'm already on that one...


All times are GMT -5. The time now is 09:52 PM.