File Transfers Slow Using Manjaro KDE Linux Compared To Windows

You need to have base-devel and $KERNEL-headers installed to use AUR and DKMS …

This would do it:

sudo pacman -Syu base-devel linux$(uname -r| grep -o -E '[0-9]+' | head -n 2 | sed 'N;s/\n//')-headers

(all that magic code is just nabbing what kernel you run so that command becomes something like sudo pacman -Syu base-devel linux510-headers for example)

Then go ahead and rebuild that DKMS package.

Thanks again @cscs

That worked better this time, no errors on the driver build.
It did say r8169 conflicts and to blacklist (there’s still a blacklist file in modprob.d so I left it).

I rebooted, but still no dice and transferring at 20MB/s

Any other magic tricks?

I hate realtek. And broadcom. And printers for that matter. (cue officespace) :sweat_smile:
Maybe try with boot option

pcie_aspm=off

(as above like the IPv6 option)

1 Like

Yes, like Epson printers - I’ve wanted to Officespace that thing for a long time!

I’ve updated grub as below:

GRUB_CMDLINE_LINUX="ipv6.disable=1 pcie_aspm=off"

Then ran sudo update-grub and rebooted

Tried copying again, still 20MB/s

Done perfectly … but apparently didnt help.

Can I just be double-triple-sure … we are talking about the wired ethernet connection, right ?

Yes the wired ethernet

Maybe …

iw dev enp5s0 set power_save off

Eck… getting to the end of my guessing here.

I copied that into the terminal and it came back:
command failed: Operation not permitted (-1)

Tried it with sudo in front and said:
command failed: No such device (-19)

huh?

iw dev

yes correct

no I mean … please return the output of that command … it should show us what the correct id is … actually let me amend that slightly:

iw dev | grep -v -E 'ssid|addr'

Although if I justtype iw dev it outputs

phy#0
        Interface wlp4s0
                ifindex 3
                wdev 0x1
                addr ae:ff:97:11:5b:1a
                type managed
                txpower 15.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes        tx-packets
                        0       0       0       0       0       0       0       0               0

Odd. It doesnt even list your ethernet … then again … I guess it is iw. heh. forgive me.

When it output that, I thought it must be the wifi port?

Yeah … used to troubleshooting wireless … iw is for wireless … please check:

ip link

Thanks @cscs

ip link gives:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 9c:5c:8e:2f:ac:9d brd ff:ff:ff:ff:ff:ff
3: wlp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether 22:94:f6:1c:89:e2 brd ff:ff:ff:ff:ff:ff

Hail-Mary:

ethtool -s enp5s0 autoneg off speed 100 duplex full

Secondary thought … boot params:

pcie_aspm=force r8168.aspm=1

(obviously opposite of off above, and should replace)

I tried the first command, but didn’t reboot as I figured it would only reset with a reboot

ethtool -s enp5s0 autoneg off speed 100 duplex full

But it’s made it even slower, to the point I can barely open a network folder! Oops.

Changing autoneg to on puts it back to working again though

Your benchmark is a samba file transfer?

Maybe the network is fine and its only samba, that is slow.
Try iperf to test your speed.

Thanks @Monarc

Correct as that’s what I will generally use for file transfers. As I’ve said previously, it works fine in a Linux Mint install, but not on Manjaro. Just for shits’n’giggles I tried Manjaro Cinnamon just to see if it might have something to do with the desktop environment (as mint used cinnamon) but still slow in that too.

With iperf, am I correct that I need to start it on the server I’m testing?
iperf -s

Then start it on my laptop with Manjaro
iperf -c ip-address

I’ll have to lookup how to start it on my QNAP as I don’t think it has a terminal installed natively. I have tried to connect to it via ssh but doesn’t want to connect for some reason. I’ll have to read up on that a bit more.