Sat, 02 Sep 2006
Performance tuning rsize and NFS
Abstract:
By adjusting the rsize option on NFS mounts is it possible to
improve the read access time from a client perspective.
Problem
Reading large files, ISO images for example, from an NFS share can be slow. This impacts productivity.
Hypothesis
By adjusting the read buffer size of the mount command the read access time of the NFS mount should be improved.
Procedure
- Use an NFS client and server connected via a 100Mb Ethernet connection.
- Create a 2GB file on the shared directory on the server.
dd if=/dev/zero of=nfs_file bs=1024k count=2385 - From the client mount the NFS share using the desired rsize option.
mount -t nfs remote:/share /mount -o rsize=???? - Read the file from the mounted share while timing the results.
Repeat this three times.
time dd if=/mnt/swan/nwatson/nfs_file of=/dev/null bs=16k - Repeat this for each rsize option.
- Repeat this with the client and server connected via a 1Gb Ethernet connection.
Observations
Conclusions
A rsize of 8192 offers the best performance using 100Mb Ethernet. Ethernet connects at 1Gb are fastest with an rsize of 32768 although not specifying the rsize was close second.
About this document ...
Performance tuning rsize and NFSThis document was generated using the LaTeX2HTML translator Version 2002-2-1 (1.71)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -html_version 4.0 -no_subdir -no_navigation -split 0 nfs-performance-tuning.tex
The translation was initiated by Neil Watson on 2006-09-02
Neil Watson 2006-09-02
