Single Client Performance - CIFS and NFS on Linux

A CentOS 6.2 virtual machine was used to evaluate NFS and CIFS performance of the NAS when accessed from a Linux client. We chose IOZone as the benchmark for this case. In order to standardize the testing across multiple NAS units, we mount the CIFS and NFS shares during startup with the following /etc/fstab entries.

//<NAS_IP>/PATH_TO_SMB_SHARE /PATH_TO_LOCAL_MOUNT_FOLDER cifs rw,username=guest,password= 0 0

<NAS_IP>:/PATH_TO_NFS_SHARE /PATH_TO_LOCAL_MOUNT_FOLDER nfs rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2, sec=sys,mountaddr <NAS_IP>,mountvers=3,mountproto=udp,local_lock=none,addr=<NAS_IP> 0 0

The following IOZone command was used to benchmark the CIFS share:

IOZone -aczR -g 2097152 -U /PATH_TO_LOCAL_CIFS_MOUNT -f /PATH_TO_LOCAL_CIFS_MOUNT/testfile -b <NAS_NAME>_CIFS_EXCEL_BIN.xls > <NAS_NAME>_CIFS_CSV.csv

IOZone provides benchmark numbers for a multitude of access scenarios with varying file sizes and record lengths. Some of these are very susceptible to caching effects on the client side. This is evident in some of the graphs in the gallery below.

Readers interested in the hard numbers can refer to the CSV program output here.

The NFS share was also benchmarked in a similar manner with the following command:

IOZone -aczR -g 2097152 -U /nfs_test_mount/ -f /nfs_test_mount/testfile -b <NAS_NAME>_NFS_EXCEL_BIN.xls > <NAS_NAME>_NFS_CSV.csv

The IOZone CSV output can be found here for those interested in the exact numbers.

A summary of the bandwidth numbers for various tests averaged across all file and record sizes is provided in the table below. As noted previously, some of these numbers are skewed by caching effects. A reference to the actual CSV outputs linked above make the entries affected by this effect obvious.

WD My Cloud DL4100 - Linux Client Performance (MBps)
IOZone Test CIFS NFS
Init Write 78 35
Re-Write 74 38
Read 43 116
Re-Read 42 117
Random Read 25 65
Random Write 66 29
Backward Read 26 52
Record Re-Write 1547* 256*
Stride Read 40 113
File Write 74 38
File Re-Write 74 39
File Read 30 95
File Re-Read 30 96
*: Benchmark number skewed due to caching effect
Single Client Performance - CIFS & iSCSI on Windows Multi-Client Performance - CIFS on Windows
Comments Locked

27 Comments

View All Comments

  • dreamcat4 - Thursday, March 5, 2015 - link

    It does not really seem to go away (ever be removed) the choice of the user to decide the underlying file system. Whether it is to be ZFS or RAID or other possible options such a btrfs etc.

    If you do want to buy a Synology etc box (which is fine BTW), just be sure to realize that you are usually relying upon a linux RAID-something underneath that. So then that is effectively translates into being your user choice of the underlying filesystem.

    It is very hard for individuals to properly compare RAID vs ZFS vs neither (or "other"). Because most of us only get the time to rely upon ONE of those solutions in our NAS device. However if you are sure to keep 1 full backup of all your data, then the reliability aspect. Or the risk of doing RAID rebuilds, silent non-ECC zfs errors, etc. can mostly be entirely negated. And storage process are cheap enough these days to be able to make a full backup. That I recommend above all else because then you only need to compare and choose over the relative advantages of each solution. Which makes the decision a lot easier.

    You should never trust a single RAID array or ZFS storage pool to keep you data safe. That includes the user-configuration aspect of such complex filesystems.
  • dreamcat4 - Thursday, March 5, 2015 - link

    Would also like to mention the UFS version 2.01 filesystem. It may not turn out to be suitable for all of your NAS needs. However UFS v2.01 has some unique advantages over other formats. It is properly recognized for both r+w on all of the most popular client platforms: Linux Windows and Mac OS X. Without needing any special driver whatsoever. And that advantage can be particularly helpful in recovery situations (when the other non-storage hardware has failed). So UFS v2.01 is a very good alternative to FAT32, NTFS, EXT, UFS, and HFS+ for those reasons. It's main competitor is FAT32. However unlike FAT32 it has no annoying 4GB file size limit, and comes with journalling.
  • CiccioB - Thursday, March 5, 2015 - link

    Is there a plan for the consumer versions (My Cloud/ My Cloud Mirror) to be upgraded soon as well?
  • 1DaveN - Thursday, March 5, 2015 - link

    I've worked a little with a pre-release one of these, and have several of the similar WD storage boxes. One of the best things about these is that they are quite small, and practically silent. You can put them anywhere - I have two in a shared office, and my office mate would complain about the noise if she noticed it. The build quality is excellent, and they should be widely available, leading to some discounting at places like Amazon.

    My oldest of these WD boxes dates from the summer of 2011 (if you look on their web site, you'll find a number of different servers that look very similar. Mine runs Windows Storage Server 2008 R2 Essentials). That one has been storing daily backups of 16 Windows client PCs since 2011 and I've never had any problems with it whatsoever.

    I'm not sure a NAS is a device where performance is the first consideration. At least for me, they're not primary storage where a slow response is keeping me waiting. I tend to use a NAS more for backup or archived file storage where a few seconds one way or the other isn't really noticeable.
  • jay401 - Friday, March 6, 2015 - link

    Anyone know why WD's HDD prices have been shooting upward the last few weeks? 4-6TB Reds have gone up quite a bit. Is there a supply problem?
  • ap90033 - Tuesday, March 10, 2015 - link

    Is it me or does this site seem to have about half the reviews and info that it used to?
  • ewanhumphries1706 - Wednesday, December 20, 2017 - link

    ACS is one stop IT solutions service provider based in the UK, catering to companies of all sizes. They also promote workplace innovation through their latest office furniture and interior design services.
    https://www.acs365.co.uk/it-solutions/it-support

Log in

Don't have an account? Sign up now