Eternal Question: NFS or SMB storage

dpearceFL

Active Member
Jun 1, 2020
98
5
28
65
I have always used NFS shares which seems to be the most common sharing protocol but today I decided to compare NFS with SMB shares. All of my use is to host VM QCOW2 files.

The storage target is a UGREEN DXP4800 Plus running TrueNAS SCALE. It has a mirrored pair of spinning drives. I created a dataset and shared it with both SMB and with NFS. I then created a pair of VMs on a Proxmox server, one VM using the SMB share and one using the NFS share. Everything is connected with a 2.5 Gb/s network.

I am benchmarking the disk on both VMs, one at a time using iozone (/opt/iozone/bin/iozone -t1 -i0 -i2 -r1k -s1g /tmp)

According to iozone my SMB share is 3x times faster except for the random write test it is 5x faster.

Is this just a quirk of iozone? If I rsync a file to each VM from a third server, the NFS share is 140% of what I get from the SMB share.

If I use dd to create a file, NFS is faster by almost a third.

One other thing I noticed: Using dd to my SMB share, really thrashing the hard drives. NFS no where as much.

Disk benchmarks seem to be generally junk.

Comments?
 
That's a quirk of benchmark caching by os as nfs is far less cpu intensive while has less protocol and logging overhead.
 
  • Like
Reactions: UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!