Single Client Performance - CIFS & NFS on Linux

We have recently revamped our Linux-client testing for NAS units, shifting from IOMeter to IOZone. A CentOS 6.2 virtual machine was used to evaluate NFS and CIFS performance of the NAS when accessed from a Linux client. 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 shares:

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. These numbers will gain relevance as we benchmark more NAS units with similar configuration.

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.

Synology DS214play - Linux Client Performance (MBps)
IOZone Test CIFS NFS
Init Write 72 67
Re-Write 75 70
Read 27 105
Re-Read 27 110
Random Read 15 40
Random Write 57 60
Backward Read 15 33
Record Re-Write 43 803*
Stride Read 24 74
File Write 74 71
File Re-Write 73 72
File Read 19 75
File Re-Read 19 77
*: Performance number skewed by caching effect

 

Encryption Support Evaluation - Single Client CIFS on Windows Multi-Client Performance - CIFS
Comments Locked

45 Comments

View All Comments

  • Chloiber - Tuesday, May 20, 2014 - link

    Exactly.
    I don't own a NAS yet, but plan to buy a Synology 4b NAS (probably DS414). I'm a very tech savvy person and have built my own PCs since years - but I just want a NAS that works, that I have to setup once in a matter of minutes and never (or rarely) worry again. I don't want to waste any more free time on these things
  • awktane - Tuesday, May 20, 2014 - link

    I have a much larger version. Reasons I chose a NAS device rather than building my own:
    -8 disks in pretty much the same space as it would take to store 8 hdds side by side on their own
    -My time is worth more than the cost difference. I can turn features on with a click rather than installing and configuring packages.
    -In the event of a failure I don't want to have to set it all up again. I don't want to cause a failure accidentally or some update to screw things up. I can't afford downtime.
    -Fewer possible points of failure. The hardware is much simpler and streamlined.
  • cjs150 - Tuesday, May 20, 2014 - link

    I have had a NAS for 2-3 years. (QNAP).

    I would never bother with a 2 bay NAS, I want redundancy, as HDs do fail. I know that technically ZFS is a better solution than RAID 5 but for a home media store, RAID 5/6 is fine.

    Yes I could build a cheap Mini-ITX build to do the same job, but a good NAS takes 5 mins to set up (then about 10 hours to build a 6TB RAID 5 array!) and should simply work.

    Perfect for people like me who do not have the time to spend fiddling with it for optimum set up and have a family wanting access to the film library now!
  • Beany2013 - Tuesday, May 20, 2014 - link

    I think when my DS214+ needs replacing (or when I find £500 down the back of the couch, etc) one of the chunkier, VMware/citrix/HyperV certified units will be next - I can then justify building another VM server and using that as a small SAN type thingy.

    I can use the DS214 as an iSCSI host, but it's not really quick enough over a single GbE link, and I don't have trunking/aggregating capable switch to boost performance...

    In time...oh yes, in time....
  • bznotins - Tuesday, May 20, 2014 - link

    Thanks for the discussion, it's really helped me to understand the benefit of a unit like this (mostly time/simplicity). Which are perfectly good reasons to go that route.

    What I was concerned about was that I was missing some other benefit of a NAS other than time/ease. It doesn't appear to be the case.

    As someone who needs four drives + optical (ripping) + SSD (OS), I have always just leaned toward rolling my own. I love the ability to use TeamViewer to remote into my PC and manage things. Plex runs great. I keep AirSync native on it to sync my music collection to my Android devices over WiFi. In order to manage my media, it's great to be able to run Media Companion on it.

    I guess for all my needs, if I got one of these NAS boxes I would still need a full-time PC to manage my media and streaming needs. Thus, it makes sense to take the time and effort to build my own.

    Appreciate the discussion.
  • Major_Kusanagi - Tuesday, May 20, 2014 - link

    I got an incredible deal on a Dell T20 Server: $199 with a Haswell processor and 4GB of RAM to start. The expansion abilities are nice, to include up to 6 drives (13TB total space). Granted, I could have built my own, but getting an actual server with a modern processor for $199 can't be beat.
  • GTaudiophile - Tuesday, May 20, 2014 - link

    I must be the idiot then. About 3 years ago I build a small tower using a AMD Athlon X2 quad-core CPU, 16GB ECC RAM, and 4x 1TB drives running FreeNAS7 in a ZFS2 configuration. Performance through SAMBA was simply abysmal. Earlier this year I bought the DS214play and it just works the way I want it to. I run 2x 4TB drives in RAID1 using the old 4x 1TB drives as a backup to the NAS. I love that it's a small, silent box that sits on an IKEA Expedit shelf. it hides behind a photograph. Performance through SAMBA is much better than what I experienced before. Setup and Web access is indeed idiot proof. And most of all I feel I have great support (and apps) behind the product. I frankly got tired of doing the "nerd" solution. I just wanted something small, silent, supported, and highly functional. The DS214play does this for me.
  • Major_Kusanagi - Tuesday, May 20, 2014 - link

    I don't think you're an idiot GTaudiophile, sometimes I don't want to deal with the whole 'geek out' thing either, and I'm a Systems Administrator. :-p
  • bsd228 - Tuesday, May 20, 2014 - link

    Poor samba performance 3 years ago points to problems around the SMB1->2 migration, particularly when we're talking about freenas7. MS made it a moving target. Eventually solved. But you're cheating a bit by comparing it to 3 years later technology. If you have rebuilt with a more recent freenas release, or gone to solaris, you'd have also seen better samba performance.
  • chaos215bar2 - Tuesday, May 20, 2014 - link

    I know this is somewhat tangential to the main review, but since you mention Photo Station, one important thing to note is that it does not properly support photos in non-sRGB color spaces (including AdobeRGB which is very common in mid-to-high end cameras). These photos all end up looking muddy and washed out in Photo Station, since the color space is discarded during processing.

Log in

Don't have an account? Sign up now