NFS Howto Optimization

From Linux NFS

(Difference between revisions)
Jump to: navigation, search
(Optimizing NFS Performance)
Line 1: Line 1:
==== Optimizing NFS Performance ====
==== Optimizing NFS Performance ====
 +
Careful analysis of your environment, both from the client and from the server point of view, is the first step necessary for optimal NFS performance. The first sections will address issues that are generally important to the client. Later (Section 5.3 and beyond), server side issues will be discussed. In both cases, these issues will not be limited exclusively to one side or the other, but it is useful to separate the two in order to get a clearer picture of cause and effect.
 +
 +
Aside from the general network configuration - appropriate network capacity, faster NICs, full duplex settings in order to reduce collisions, agreement in network speed among the switches and hubs, etc. - one of the most important client optimization settings are the NFS data transfer buffer sizes, specified by the '''mount''' command options '''rsize''' and '''wsize'''.
===== Setting Block Size to Optimize Transfer Speeds =====
===== Setting Block Size to Optimize Transfer Speeds =====
===== Packet Size and Network Drivers =====
===== Packet Size and Network Drivers =====
Line 9: Line 12:
===== Turning Off Autonegotiation of NICs and Hubs =====
===== Turning Off Autonegotiation of NICs and Hubs =====
===== Synchronous vs. Asynchronous Behavior in NFS =====
===== Synchronous vs. Asynchronous Behavior in NFS =====
 +
==== Non NFS-Related Means of Enhancing Server Performance ====
==== Non NFS-Related Means of Enhancing Server Performance ====

Revision as of 20:55, 5 April 2006

Contents

Optimizing NFS Performance

Careful analysis of your environment, both from the client and from the server point of view, is the first step necessary for optimal NFS performance. The first sections will address issues that are generally important to the client. Later (Section 5.3 and beyond), server side issues will be discussed. In both cases, these issues will not be limited exclusively to one side or the other, but it is useful to separate the two in order to get a clearer picture of cause and effect.

Aside from the general network configuration - appropriate network capacity, faster NICs, full duplex settings in order to reduce collisions, agreement in network speed among the switches and hubs, etc. - one of the most important client optimization settings are the NFS data transfer buffer sizes, specified by the mount command options rsize and wsize.

Setting Block Size to Optimize Transfer Speeds
Packet Size and Network Drivers
Overflow of Fragmented Packets
NFS over TCP
Timeout and Retransmission Values
Number of Instances of the NFSD Server Daemon
Memory Limits on the Input Queue
Turning Off Autonegotiation of NICs and Hubs
Synchronous vs. Asynchronous Behavior in NFS

Non NFS-Related Means of Enhancing Server Performance

Personal tools