Hi Kamesh,

NFS is quite a dog where it comes to network throughputs: not only
does it slow down I/O drastically, it chokes up the network too quite
awesome.  Some tips for enhancing NFS performance:

1.  Do minimal benchmarks with the rsize and wsize options set to
various values and stick to the one which gives maximum throughput
(man 8 mount, look at Mount options for nfs).

2.  Put the client and server on a switch rather than a hub.

3.  Download the programs for your ethernet card from scyld.com and
make sure that you're forcing the card to the highest speed possible.
Auto-negotiation usually means that the card is working in 10Mbps,
half-duplex, completely brain-dead mode.

4.  Make sure the server is using the kernel NFS server, not the
userland nfsd program.

5.  Try both NFSv2 and NFSv3 and use the faster one.

Let us know if any of these have any effect on your performance --
would be nice to have data for future reference.

[Posting after quite some time... I presume this is still the correct
list for these kinds of questions? <g,d&r> ]

Regards,

-- Raju

>>>>> "Kamesh" == kameshj  <[EMAIL PROTECTED]> writes:

    Kamesh> Hi all, We are developing a large scale email application
    Kamesh> - qmail as MTA and our own API for mail retrieval to end
    Kamesh> users. Both qmail and our API run on RedHAT Linux 7.1 with
    Kamesh> SMP patches.

    Kamesh> When we run our performance tests - with mail directories
    Kamesh> stored on a local drive we get very good performance and
    Kamesh> throuput - in the ranges of 50-60 ms.

    Kamesh> When we run the tests on a NFS mounted drive (EMC storage
    Kamesh> device) - the response times drop down drastically - to
    Kamesh> the order of 2-3 seconds.

    Kamesh> Is there some NFS or network level optimization we should
    Kamesh> be doing to get a better throughput?

    Kamesh> We noticed that when we run the tests the second time -
    Kamesh> the performance is much better. The first time access to
    Kamesh> NFS mounted files and directories is very slow. Is this
    Kamesh> related to OS Swap spaces, caching etc?

-- 
Raju Mathur          [EMAIL PROTECTED]           http://kandalaya.org/

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to