Hi, relative noob to TrueNAS here. I just set up a new system and am noticing similarly poor performance with both CIFS and NFS compared to rsyncing over ssh. I have turned off sync and compression on my whole pool and am mounting with the async option because that is the first thing that everyone seems to suggest.
I transferred a folder of 10 3.5GB files via the 3 methods and watched the network graph. CIFS and NFS seem to have a fairly long ‘spool up’ time before actually beginning the transfer of each file, while ssh only has a small blip at each new file.
My commands:
CIFS: Mounted at ‘Tank’ with fstab:
/mnt/Tank cifs credentials=/home/nas-credentials,file_mode=0775,dir_mode=0775,uid=1000,gid=1000 0 0//192.168.0.21/Data
rsync -avP /mnt/Files/media/ /mnt/Tank/Media/
NFS: Mounted at ‘testdrive’ with command:
sudo mount -t nfs -o rw,credentials=/home/nas-credentials 192.168.0.21:/mnt/Tank/Data /mnt/testdrive/
rsync -avP /mnt/Files/media/ /mnt/testdrive/Media/
ssh: rsync -avP /mnt/Files/media/ 192.168.0.21:/mnt/Tank/Data/Media/
These are the network graphs while transferring the 10 3.5GB files. I was not able to zoom in constantly so the scales are slightly different. In order:
CFIS: 6:45 minutes
NFS: 7:10 minutes
SSH: 5:45 minutes
Does anyone know why this is happening or what I could do improve it?