1827953 Members
3136 Online
109973 Solutions
New Discussion

Parameters NFS Volume

 

Parameters NFS Volume

I want to mount an NFS volume to share a application tier between 2 servers. What NFS mount parameters would I use for optimal performance. Any help would be appreciated.

Thanks,
Alex
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: Parameters NFS Volume

Oh, that is such an open ended question, that it is near impossible to answer accurately.

I'm assuming you've done an optionless mount, and it isn't performing well?

What options have you tried?

What sort of sizes of data are you trying to load over the NFS (saying 'application tier' doesn't help too much)? Are we talking about 100's of KB, or MB?
One long-haired git at your service...
Matti_Kurkela
Honored Contributor

Re: Parameters NFS Volume

More questions:
When an application performs a disk operation, is it typically a small operation (e.g. write one line of text to a log file) or a large one (e.g. read several megabytes of data at once)?

Which version of NFS protocol are you using?
(NFS v2 is the oldest version, NFS v3 is newer and allows improved performance, NFS v4 is bleeding-edge and very different from the older versions, maybe not quite ready for production yet?)

The man pages ("man mount" and "man 5 nfs" both) say that options "rsize=8192,wsize=8192" would improve throughput "greatly".

MK
MK
Ivan Ferreira
Honored Contributor

Re: Parameters NFS Volume

I would use NFSv4 as it performs the same operations using less daemons, and performing more request on each connection than previous versions (allows combining several basic NFS ops (LOOKUP, OPEN, READ, etc.) into a single
complex RPC operation). The locking mechanism is also improved.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: Parameters NFS Volume

use this options.

type nfs (rw,nosuid,nolock,soft,rsize=8192,wsize=8192)