I've set up a TrueNAS box which has some SMB shares for home file sharing. I noticed that my Solus is astonishingly slower than other machines when accessing those shares. To give some numbers here's a test:
- Downloaded an ISO image just under 2GB and made 4 copies in an "images" folder
- Copied from mac mini (2012 i5 with 2 cores) to my NAS:
macmini:testds user$ du -sm ~/Downloads/images
7873 /Users/user/Downloads/images
macmini:testds user$ time cp -R ~/Downloads/images .
real 1m54.272s [...]
macmini:testds user$ time cp -R ~/Downloads/images .
real 1m59.964s [...]
macmini:testds user$ time cp -R ~/Downloads/images .
real 2m4.938s [...]
- Copied from Solus PC (Ryzen 3900 12c/24t) to my NAS:
user@host /run/user/1000/gvfs/smb-share:server=nas.local,share=testds $ du -sm ~/Downloads/images2/
7819 /home/user/Downloads/images2/
user@host /run/user/1000/gvfs/smb-share:server=nas.local,share=testds $ time cp -R ~/Downloads/images2 .
real 22m31.934s [...]
user@host /run/user/1000/gvfs/smb-share:server=nas.local,share=testds $ time cp -R ~/Downloads/images2 .
real 22m14.061s [...]
user@host /run/user/1000/gvfs/smb-share:server=nas.local,share=testds $ time cp -R ~/Downloads/images2 .
real 23m49.475s [...]
Now, admittedly the Mac Mini has a slightly faster link (plugged into the same router) as opposed to the Solus PC (uses a powerline adapter), but those numbers are NOT because of this (read on to see proof).
Also note that the reason I used "time" for the measurement is that the mac mini's file manager (finder) does not show transfer rates when copying.
However, to exclude the "slow network" factor (powerline adapter) and make a direct comparison, I created a Windows 10 virtual machine inside Solus and did the same copy:
- From host Solus I can see in the file manager report 17MB/sec and the copy takes about 9 minutes (which surprisingly is much faster than the command line copy, so there's another mystery)
- From the Windows 10 VM inside Solus, the windows explorer shows transfer rates in the range of 48-52MB/sec (!) which is three times faster than the Solus host and finishes in less than 3 minutes!
So something's up with SMB. I've done zero configuration on it so it should be out-of-the-box setup.
The question is: has anyone else noticed such weird performance with the samba client in Solus and did you by any chance fix it and can share the fix?
Otherwise, what would you suggest I do to investigate further my samba setup (again should be default) and how can I go about making it faster? I'm hoping it's some default configuration that can be fixed...