Hi, two months ago I switched from Linux Mint 19.3 to Manjaro 59 with Cinnamon DE, but I realized that in my gigabit LAN file transfer rate between the main client PC and the Home Ubuntu Server uploading a file from local to a samba shared folder with Nemo FM is 30-35 Mb/s less than before using Linux Mint!
So I’ve done some tests with live versions of Manjaro: with Manjaro Cinnamon 59, kernel 5.9.11-3-MANJARO, Nemo version 4.8.0, samba version 4.13.2-1, gvfs-smb version 1.46.1-1 Nemo transfer rate copying one or more files is about 70-75 Mb/s, while with Manjaro Cinnamon 510, kernel 5.10.23-1-MANJARO, Nemo version 4.8.6, samba version 4.14.0-1, gvfs-smb version 1.46.2-1 Nemo transfer rate copying one or more files is not more than 40 Mb/s, with a loss of about 30 Mb/s.
The output of lspci -v is:
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V
DeviceName: Onboard LAN
Subsystem: Gigabyte Technology Co., Ltd Device e000
Flags: bus master, fast devsel, latency 0, IRQ 30
Memory at f7800000 (32-bit, non-prefetchable) [size=128K]
Memory at f783a000 (32-bit, non-prefetchable) [size=4K]
I/O ports at f080 [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
Please, could someone help me understand my problem by suggesting further commands? I am a Manjaro Linux newbie. Thanks!
UPDATE: I decided to make a fresh install of Manjaro linux 59 on an external usb disk then updated system with pacman -Syu and the result is:
kernel: 5.9.16-1
cinnamon 4.8.6
samba version 4.14.2
gvfs-smb version 1.48.0-2
Nemo version 4.8.6
transfer rate: 30 Mb/s!!!
Can you test the speeds using rsync through the command-line after you mount the SMB share?
Make sure the file is large enough to get a fairly weighted average speed.
First flush any write cache to the disks:
sync
Next, create a very large 2GB file with lots of random data. (Do not run this “dd” command with sudo, and double-check the command to be on the safe side.)
If you’re getting around 28 to 32 MB/s from different computers with the large file rsync test, it might be related to how Samba is configured on your Ubuntu Server, or an option that is effecting each computer individually by coincidence.
It’s hard to trust the readings given by file managers, such as Nemo, Dolphin, Thunar, Windows Explorer, etc, especially when cache is involved.
It’s a bit out of the scope of this forum, but what version of Ubuntu Server / smbd is running on the server?
The first test that gives me 32 Mb/s is done in Manjaro with kernel 5.9, the second one in an Arch Linux machine with kernel 5.10 LTS. My ubuntu server is a 18.04.5 LTS (Bionic Beaver), samba version is 4.7.6-Ubuntu.
I want to say one thing: I am surprised seeing the kindness that I am meeting having exposed my problem in this forum for my very first time, in carrying out tests done with other distros and asserting that I have an ubuntu server (not Manjaro!), therefore with totally different types of distributions. I can assure you that in other forums, without making names, I have not found the same kindness and attention in listening to a user, I even saw a post of mine closed by forum’s admin despite all my correctness and calm in exposing my problem, respecting the rules, and for this I can only praise the work of the Manjaro community. Thank you!
For kicks, can you install the 5.4 LTS kernel via the linux-lts meta-package?
Then with the Grub menu, select Advanced Options and boot into Manjaro selecting the 5.4 kernel.
Run the test again.
This is going out of the scope of slow transfers with Nemo, but maybe it can lead you to a solution through the Ubuntu Server or some sort of offending smb/smbd setting.
Either or, but more important for your main Manjaro system.
Installing the meta-package linux-lts won’t bog down your system nor clutter it. I keep it installed on mine at all times, for the off-chance I might need to boot into an older LTS kernel.
I have to run in a bit. In the meantime, look up how to check the smbd logs on your Ubuntu Server. Depending on the level of verbosity, it might hint at some clues, such as a lower version of the SMB protocol is being used for transfers, or perhaps a more peculiar error/warning.
Can you give a brief summary of the hardware in use, from the client (your Manjaro system) to the server? Is this being sent from an internal HDD / SSD or from a USB drive to the server? What setup is the server running?
Sometimes it’s a matter of one or more hardware bottlenecks.
I’ve done a test between manjaro kernel 5.9 or 5.4 LTS and arch linux kernel 5.10 LTS, bypassing a possible misconfiguration in Ubuntu server and it’s smbd. I’ve shared a folder on Arch Linux PC using Nemo Sharing Folder, then followed the same commands above, sync etc etc and finally the same poor result:
Install the package iperf3 on both systems, Manjaro and Arch. Make sure it’s iperf3, and not iperf.
On one system, have iperf3 listen for a speed test:
iperf3 -s
On the other system, initiate a speed test, which will last 10 seconds. Replace the IP address with that of the system running iperf3 in “server” -s mode.
iperf3 -c 192.168.1.xxx
What speeds does it sustain? Over 100 MB/s? (Remember that MB/s is multiplied by 8 to give you Mb/s. So 100 MB/s is approximately 800 Mb/s.)
If you’re getting low speeds with iperf3 between two local computers on the same network, then it might not be Samba related. If you’re getting fast speeds, then it could be storage hardware or Samba, or something else.
Definitely does! Can you try it the other way, switching the roles of “-s” and “-c” of the two computers, just to rule something out?
Also what are the hardware specs of the systems involved? Do you have an external drive to run the rsync test to a temporary folder? If you’re getting 20 to 30 MB/s over a USB 3.0 connection, then this could be a buffer / hardware bottleneck.