legacy-wiki
Lab nfs speeds
Recovered from the older tannerjc.net wiki snapshot dated January 23, 2016.
-
Netapp and Linux** [http://media.netapp.com/documents/tr3483.pdf]
-
Netapp thin provisioning** [http://media.netapp.com/documents/tr-3183.pdf]
-
nfs performance tuning** [http://nfs.sourceforge.net/nfs-howto/ar01s05.html]
-
http://www.techrepublic.com/blog/opensource/tuning-nfs-for-better-performance/64
Testing speed
time dd if=/dev/zero of=bigfile bs=1024 count=10000000
Mounting NFS
Linux:
mount 192.168.1.3:/exports /mnt/nfs
Solaris:
mount -F nfs -o vers=3 192.168.1.3:/exports /mnt/nfs
LINUX: 10GB file created over NFS w/ sync option from RHEL 4u7 to Fedora 8 Host
[root@dhcp243-189 mnt]# mount 10.11.243.16:/exports nfs
[root@dhcp243-189 nfs]# df -h ./
Filesystem Size Used Avail Use% Mounted on
10.11.243.16:/exports
76G 16G 57G 22% /mnt/nfs
[root@dhcp243-189 nfs]# time dd if=/dev/zero of=bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
real 15m57.921s
user 0m4.451s
sys 0m20.739s
LINUX: 10GB file created over NFS w/ async option from RHEL 4u7 to Fedora 8 Host
[root@dhcp243-189 mnt]# mount -o async 10.11.243.16:/exports nfs
[root@dhcp243-189 mnt]# cd nfs
[root@dhcp243-189 nfs]# df -h ./
Filesystem Size Used Avail Use% Mounted on
10.11.243.16:/exports
76G 16G 57G 22% /mnt/nfs
[root@dhcp243-189 nfs]# time dd if=/dev/zero of=bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
real 15m43.311s
user 0m4.562s
sys 0m19.825s
LINUX: 10GB file created on local filesystem - Fedora 8
[root@localhost exports]# pwd
/exports
[root@localhost exports]# df -h ./
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-lv.root
76G 26G 47G 36% /
[root@localhost exports]# ls
bigfile
[root@localhost exports]# rm bigfile
rm: remove regular file `bigfile'? y
[root@localhost exports]# time dd if=/dev/zero of=bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
10240000000 bytes (10 GB) copied, 205.778 s, 49.8 MB/s
real 3m26.395s
user 0m5.203s
sys 0m58.910s
[root@localhost exports]#
SOLARIS: 10GB file created over NFS (no options) from Solaris 10 to Ubuntu 8.04
-bash-3.2# mount -F nfs -o vers=3 192.168.1.3:/exports /mnt/nfs
-bash-3.2# cd nfs
-bash-3.2# df -h ./
Filesystem size used avail capacity Mounted on
192.168.1.3:/exports 142G 27G 108G 20% /mnt/nfs
-bash-3.2# time dd if=/dev/zero of=bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
real 8m57.486s
user 0m23.795s
sys 1m52.813s
-bash-3.2# uname -a
SunOS opensolaris 5.11 snv_86 i86pc i386 i86pc
LINUX: 10GB file created on local filesystem - Ubuntu 8.04
mootxk@graybox:/exports$ time dd if=/dev/zero of=bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
10240000000 bytes (10 GB) copied, 244.274 s, 41.9 MB/s
real 4m4.489s
user 0m2.972s
sys 1m17.325s
mootxk@graybox:/exports$ uname -a
Linux graybox 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux
LINUX 10GB file created over NFS w/ sync option from RHEL 5u2 to Ubuntu 8.04 Host
[root@localhost mnt]# mount 192.168.1.3:/exports /mnt/nfs
[root@localhost mnt]# cd nfs
[root@localhost nfs]# time dd if=/dev/zero of=bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
10240000000 bytes (10 GB) copied, 284.549 seconds, 36.0 MB/s
real 4m44.655s
user 0m7.502s
sys 0m54.633s
[root@localhost nfs]# df -h ./
Filesystem Size Used Avail Use% Mounted on
192.168.1.3:/exports 143G 37G 99G 27% /mnt/nfs
[root@localhost nfs]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
LINUX 10GB file created over NFS from RHEL 4u8 to Fedora 11 Host
[root@rhel4box mnt]# time dd if=/dev/zero of=/mnt/fedora/bigfile bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
real 10m46.831s
user 0m19.281s
sys 1m21.928s
LINUX 10GB file created over NFS from RHEL 5u4 to Fedora 11 Host
[root@rhel5box mnt]# time dd if=/dev/zero of=/mnt/fedora/bigfile2 bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
10240000000 bytes (10 GB) copied, 587.972 seconds, 17.4 MB/s
real 9m48.091s
user 0m18.392s
sys 2m56.262s