Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It is expected that NFS will be slower than any "normal" file system such as EXT3. Transferring files over the network is the main reason for the additional delay.

I am wondering how NFS can be compared with other file systems. Let us assume the NFS server and the clients are located on the same Gigabit LAN. Also, let us assume we have only 10 clients.

Is there any benchmarks that we can look at? Can we say some like the following?

NFS delay ranges from 150% to 200% when compared to other File systems??

Of course, many factors can affect the delay such as read/write operations on disks and files' sizes. Can we have an approximate measurement of delay difference?

share|improve this question
    
one word: bonie++ –  Javier Oct 26 '10 at 21:05
add comment

2 Answers

up vote 4 down vote accepted

There are too many variables to count here. First of all, NFS is a network layer on top of a physical file-system. Comparing ext3 mounted locally to ext3 shared via NFS doesn't get you much differences in terms of semantics or features. The network stack does indeed add delays so NFS will be more resource intensive to use.

However, you do have to keep in mind that served from a server that has been optimized to provide storage may outperform local storage on an NFS-client server, possibly by quite a lot. At the same time if both the server and the client are identical in hardware, the NFS-mounted volume will perform less well than the locally mounted volume.

The only way to be sure is to perform your own benchmarks to determine if your expected I/O patterns are better served with NFS (which may allow centralization) or locally-mounted storage.

share|improve this answer
add comment

It depends heavily on the workload you're running. For metadata-intensive workloads NFS is often quite slow, due to the need for cache revalidation and commit-on-close.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.