Latest interface: 0.3.1
Latest system: 010
drdaveradman
User

2 posts

Posted on 19 September 2011 @ 08:11
I've been trying out new hardware and software for a home file server. My main client is a Mac Pro, so I wanted to make sure that had optimal performance. I thought I would share what I learned in this process.

Test Server:
Supermicro X9SCL+-F, I3-2100T, 8 Gig RAM (a problematic combo, btw)
5 X Samsung HD204UI in RaidZ array
ZFSguru 1.9B3

Client:
Mac Pro 2 x 2.8 Quad Mac Pro, 16 gig ram
OSX 10.6.8

Speed test command: time sh -c "dd if=/dev/zero of=ddfile1 bs=8k count=2000000 && sync"

Results:
Local disks: 313 MB/s
Mac SMB : 15 MB/s
Mac NFS: 41 MB/s
Mac NFS tuned: 106 MB/s

I also installed and tested FreeNAS 8 using the latest nightly build and OpenIndiana 148. They gave similar results. The only added item is that netatalk was available for both of those. Speed for netatalk was 84 MB/s on OI which isn't bad.

So SMB is very slow. NFS is better, but still not near gig wire speed. With a small bit if tuning tho, it is close enough to full speed to keep me happy. I should mention I am not using jumbo frames. So to tune NFS on the mac, do the following:

1) Create the file /etc/nfs.conf with the following contents:
nfs.client.allow_async = 1
nfs.client.nfsiod_thread_max = 64

2) Use Disk Utility to make your NFS server mount point automagic.
Choose File -> NFS Mounts
+ to add a mount
Fill in the url and mont locations
click the advanced mount parameters and add: async

You have to reboot to have the automounter see the changes.
pdonovan
User

76 posts

Posted on 19 September 2011 @ 11:20
I think:
sudo automount -vc

would avoid the need to reboot, but I've not tested it.
Jason
Developer

806 posts

Posted on 19 September 2011 @ 14:02
Your dd command uses bs=8k, which is not suitable for a sequential test. Could you try again with:

time sh -c "dd if=/dev/zero of=ddfile1 bs=1m count=32000 && sync"

Does that give you higher scores?

Did you mount NFS with noatime and nolock (local locking only) parameters?
Last Page

Valid XHTML 1.1