Samba 4 Performance weak

Hi,

i have an Turris Omnia with the latest Software-Version (Updater).
I dicovered a bad performance, when copy large files from my Windows 10-Computer from the internal SSD or the external USB 3.0 SSD:
The same big File copied to:

  • 60MB/s to the Raspberry 4 with libreelec - USB 3.0 SSD
  • 25MB/s to the Turris - Both internal + External USB 3.0 SSD
  • 20MB/s to an Synology 213J - HDD

The turris should (?) be have the needed performance:

internal SATA-SSD:

hdparm -Tt /dev/sda
/dev/sda:
 Timing cached reads:   1228 MB in  2.00 seconds = 613.45 MB/sec
 Timing buffered disk reads: 1076 MB in  3.00 seconds = 358.65 MB/sec

external USB3-SSD:

hdparm -Tt /dev/sdb1
/dev/sdb1:
 Timing cached reads:   1220 MB in  2.00 seconds = 610.10 MB/sec
 Timing buffered disk reads: 1030 MB in  3.00 seconds = 343.09 MB/sec

iperf3-Results from the Win10 to the Turris:

iperf3 -c 192.168.73.149
Connecting to host 192.168.73.149, port 5201
[  4] local 192.168.73.172 port 57001 connected to 192.168.73.149 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   105 MBytes   879 Mbits/sec
[  4]   1.00-2.00   sec   105 MBytes   884 Mbits/sec
[  4]   2.00-3.00   sec   105 MBytes   877 Mbits/sec
[  4]   3.00-4.00   sec   104 MBytes   876 Mbits/sec
[  4]   4.00-5.00   sec   105 MBytes   880 Mbits/sec
[  4]   5.00-6.00   sec   105 MBytes   879 Mbits/sec
[  4]   6.00-7.00   sec   106 MBytes   888 Mbits/sec
[  4]   7.00-8.00   sec   105 MBytes   879 Mbits/sec
[  4]   8.00-9.00   sec   104 MBytes   873 Mbits/sec
[  4]   9.00-10.00  sec   106 MBytes   889 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.02 GBytes   880 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1.02 GBytes   880 Mbits/sec                  receiver

smb.conf is nearly identical - Libreelec:

workgroup = WORKGROUP
server min protocol = SMB2
server max protocol = SMB3

server string = LibreELEC
browseable = yes
writeable = yes
printable = no
deadtime = 30
mangled names = no
name resolve order = host bcast
printcap name = /dev/null
load printers = no
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
fruit:model = Xserve

# samba share options
map to guest = Never
guest account = root
security = user
username map = /run/samba/samba.map

# samba tuning options
socket options = TCP_NODELAY IPTOS_LOWDELAY
min receivefile size = 16384
aio read size = 16384
aio write size = 16384
use sendfile = yes

[extSSD]
path = /media/extSSD
available = yes
browseable = yes
public = no 
writeable = yes

Turris:

[global]
netbios name = TurrisOmnia
interfaces = br-lan 
server string = Turris
workgroup = WORKGROUP

server min protocol = SMB2
server max protocol = SMB3
browseable = yes
writeable = yes
printable = no
deadtime = 30
mangled names = no
name resolve order = host bcast
printcap name = /dev/null
load printers = no
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
fruit:model = Xserve

# samba share options
map to guest = Bad User
guest account = root
security = user

# samba tuning options
socket options = TCP_NODELAY IPTOS_LOWDELAY
min receivefile size = 16384
aio read size = 16384
aio write size = 16384
use sendfile = yes


[Netzfreigabe]
path = /srv/Netzfreigabe/
comment = Turris
available = yes
browseable = yes
guest ok = yes
writeable = yes

Has someone an idea?
I think the Rapsberry-Samba-Performance is not very good, but the Turris provides half of them :frowning:

Additional Info added 18:43:
All USB-Devices has the ext4-Format and the internal Turris-SSD has “btrfs”.
When i connected the SSD’s from the raspberry to the Turris, i can only reach the Turris-Performance (25 MB/s) not the Raspberry-Performance (60MB/s)

Thank you!

Bernd

1 Like

I have also bad samba performance.