Greetings,
I've recently move a FreeBSD 7.2 NFS/ZFS(mirror) server to FreeBSD 8.1-RELEASE NFS/ZFS(raidz2).
As I reused the rc.conf options and exports file from the 7.2 version, and everything ran fine at startup, i didn't go further in the configuration.
From a Linux client machine, I kept the same mount options :
and when I try to write a 5GB file I get :
2.1 MB/s !!!!
If I just unset the 'sync' option from the linux client mount point :
I had about 40 MB/s when It was NFS/mirror ZFS (with sync activated), so due to raidz2 way of working, I guess decreasing to a little 30 MB/s is not very surprising...
But I know that this sync option preserve from big problems (freezes, and so on) and I would really like to keep it with better NFS writes speed of course (all machines are on a Gigabit Ethernet switch/NIC).
As the Release Note of 8.1 mentionned improvements with NFS, I would like to know if there is something to add on the server/client/both options ?
Regards,
P.S. here are my exports file :
and the rc.conf 's NFS parameters :
I've recently move a FreeBSD 7.2 NFS/ZFS(mirror) server to FreeBSD 8.1-RELEASE NFS/ZFS(raidz2).
As I reused the rc.conf options and exports file from the 7.2 version, and everything ran fine at startup, i didn't go further in the configuration.
From a Linux client machine, I kept the same mount options :
Code:
chimay:/mediatheque /home/sidh/mediatheque nfs tcp,noauto,rsize=32768,wsize=32768,timeo=14,intr,nolock,bg,[B][U]sync[/U][/B]
and when I try to write a 5GB file I get :
Code:
dd if=/dev/zero of=/home/sidh/mediatheque/file5GB bs=1k count=5M
[...]
5368709120 bytes (5.4 GB) copied, 2595.15 s, 2.1 MB/s
2.1 MB/s !!!!
If I just unset the 'sync' option from the linux client mount point :
Code:
dd if=/dev/zero of=/home/sidh/mediatheque/file5GB bs=1k count=5M
[...]
5368709120 bytes (5.4 GB) copied, 194,995 s, 27.5 MB/s
I had about 40 MB/s when It was NFS/mirror ZFS (with sync activated), so due to raidz2 way of working, I guess decreasing to a little 30 MB/s is not very surprising...
But I know that this sync option preserve from big problems (freezes, and so on) and I would really like to keep it with better NFS writes speed of course (all machines are on a Gigabit Ethernet switch/NIC).
As the Release Note of 8.1 mentionned improvements with NFS, I would like to know if there is something to add on the server/client/both options ?
Regards,
P.S. here are my exports file :
Code:
/mediatheque -maproot=sidh -alldirs -network 172.31.255.0 -mask 255.255.255.0
and the rc.conf 's NFS parameters :
Code:
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
nfs_client_enable="YES"