Hello guys,
I've built up my own NAS system based on:
- ASRock J4205-ITX
- 8GB DDR3 RAM
- 64GB Samsung 470 as system disk
- 2TB WD Red
- 3TB WD Red
- Debian Stretch 9.3
- OMW Arrakis 4.0.16-1
Now I'd like to share some folders with some Linux machines (Arch, ubuntu mate & xubuntu). As I have no Windows machines and therefore no real need for SMB shares I'd favour to share it via NFS. But unfortunately the NFS performance seems quite poor according to some benchmarks I've made:
Protocol | Speed [MB/s] |
SMB/CIFS | 115.27 |
NFS3 | 71.38 |
NFS4, sync | 72.08 |
NFS4, async | 66.63 |
NFS4, several options, see code below | 67.99 |
While performing the test neither the server nor the client did something challenging.
The client was a Lenovo T61 with Arch on a 256GB Samsung 750 disk, which may be nearly on the edge as the T61 only offers SATA1 interfaces.
All software on server and client was up-to-date.
NFS ran with 8 threads and the export options were: rw,subtree_check,secure
SMB/CIFS was shared with OMV default options
Are there options thatcould speed up NFS transmission or is SMB really faster?
michael@t61:~$ sudo mount -t cifs -o rw,uid=1026,username=michael //server.home./share /mnt/test/
Password for michael@//server.home./share:
michael@t61:~$ rsync -av --progress Projekte/aqemu/ubuntu_mate_HDA.img /mnt/test
sending incremental file list
ubuntu_mate_HDA.img
8,296,333,312 100% 115.27MB/s 0:01:08 (xfr#1, to-chk=0/1)
sent 8,298,358,898 bytes received 35 bytes 112,902,842.63 bytes/sec
total size is 8,296,333,312 speedup is 1.00
michael@t61:~$ rm /mnt/test/ubuntu_mate_HDA.img
michael@t61:~$ sudo umount /mnt/test
michael@t61:~$ sudo mount -t nfs -o rw server.home.:/export/share /mnt/test/
michael@t61:~$ rsync -av --progress Projekte/aqemu/ubuntu_mate_HDA.img /mnt/test
sending incremental file list
ubuntu_mate_HDA.img
8,296,333,312 100% 71.38MB/s 0:01:50 (xfr#1, to-chk=0/1)
sent 8,298,358,898 bytes received 35 bytes 72,474,750.51 bytes/sec
total size is 8,296,333,312 speedup is 1.00
michael@t61:~$ rm /mnt/test/ubuntu_mate_HDA.img
michael@t61:~$ sudo umount /mnt/test
michael@t61:~$ sudo mount -t nfs -o rw server.home.:/share /mnt/test/
michael@t61:~$ rsync -av --progress Projekte/aqemu/ubuntu_mate_HDA.img /mnt/test
sending incremental file list
ubuntu_mate_HDA.img
8,296,333,312 100% 72.08MB/s 0:01:49 (xfr#1, to-chk=0/1)
sent 8,298,358,898 bytes received 35 bytes 70,624,331.34 bytes/sec
total size is 8,296,333,312 speedup is 1.00
michael@t61:~$ rm /mnt/test/ubuntu_mate_HDA.img
michael@t61:~$ sudo umount /mnt/test
michael@t61:~$ sudo mount -t nfs -o rw,async server.home.:/share /mnt/test/
michael@t61:~$ rsync -av --progress Projekte/aqemu/ubuntu_mate_HDA.img /mnt/test
sending incremental file list
ubuntu_mate_HDA.img
8,296,333,312 100% 66.63MB/s 0:01:58 (xfr#1, to-chk=0/1)
sent 8,298,358,898 bytes received 35 bytes 67,193,189.74 bytes/sec
total size is 8,296,333,312 speedup is 1.00
michael@t61:~$ rm /mnt/test/ubuntu_mate_HDA.img
michael@t61:~$ sudo umount /mnt/test
michael@t61:~$ sudo mount -t nfs -o rw,bg,intr,soft,users,noauto,_netdev,proto=tcp,retry=3,timeo=10 server.home.:/share /mnt/test/
michael@t61:~$ rsync -av --progress Projekte/aqemu/ubuntu_mate_HDA.img /mnt/test
sending incremental file list
ubuntu_mate_HDA.img
8,296,333,312 100% 173.73MB/s 0:00:45 (xfr#1, to-chk=0/1)
rsync: write failed on "/mnt/test/ubuntu_mate_HDA.img": Input/output error (5)
rsync error: error in file IO (code 11) at receiver.c(393) [receiver=3.1.2]
michael@t61:~$ sudo umount /mnt/test
michael@t61:~$ sudo mount -t nfs -o rw,bg,intr,soft,users,noauto,_netdev,proto=tcp server.home.:/share /mnt/test/
michael@t61:~$ rsync -av --progress Projekte/aqemu/ubuntu_mate_HDA.img /mnt/test
sending incremental file list
ubuntu_mate_HDA.img
8,296,333,312 100% 67.99MB/s 0:01:56 (xfr#1, to-chk=0/1)
sent 8,298,358,898 bytes received 35 bytes 68,866,049.24 bytes/sec
total size is 8,296,333,312 speedup is 1.00
michael@t61:~$ rm /mnt/test/ubuntu_mate_HDA.img
michael@t61:~$ sudo umount /mnt/test
Alles anzeigen