Poor local SMB copy performance

Aero-Graphics

Dabbler
Joined
Jun 19, 2023
Messages
16
On my new TrueNAS CORE 13.0-U5.1 install I am having a weird issue when coping to a different location on the TrueNAS system.

Performance is generally good, I can typically max out a 10Gb/s network connection copying to TrueNAS from an external source:

Transfer.png



But if I do an SMB copy from TrueNAS to another location on the TrueNAS storage the transfer rate is abysmally slow:

Transfer2.png



The underlying storage is plenty quick, it takes just under a minute to write a 200GB file:

Code:
root@H-4-1[~]# dd if=/dev/zero of=/mnt/Q_Pool/QSBox/TESTING/dd.tst bs=1m count=200000
200000+0 records in
200000+0 records out
209715200000 bytes transferred in 55.503615 secs (3778406131 bytes/sec)



And then it takes about half that time to read the same 200GB file:

Code:
root@H-4-1[~]# dd of=/dev/null if=/mnt/Q_Pool/QSBox/TESTING/dd.tst bs=1m count=200000
200000+0 records in
200000+0 records out
209715200000 bytes transferred in 31.005955 secs (6763707070 bytes/sec)



And here you can see the same copy executed from the command line only takes about 1m:

Code:
root@H-4-1[~]# time cp /mnt/Q_Pool/QSBox/TESTING/0505-Line17075.tif /mnt/Q_Pool/QSBox/TESTING/0505-Line17075-2.tif
cp /mnt/Q_Pool/QSBox/TESTING/0505-Line17075.tif   0.00s user 13.17s system 19% cpu 1:06.40 total



So, this must be an issue with Samba. But I have been unable to find anything describing this exact issue.

Any ideas?

Rob
 
Last edited:

Aero-Graphics

Dabbler
Joined
Jun 19, 2023
Messages
16
Top