Re: NFS.

Tom Dyas (tdyas@hardees.rutgers.edu)
Sun, 24 Nov 96 2:18:34 EST


> On Sun, 24 Nov 1996, Tom Dyas wrote:
>
> > > I have two linux systems on a 10BT LAN. The /home tree of one system is
> > > mounted from the other, as is the /var/spool/mail directory, and various
> > > other parts of the system.
> > >
> > > This is *SLOW*, Very slow -- FTP'ing between the systems 400k+/second is
> > > average, over NFS, that figure drops below 50. I've been told that NFS is
> > > by design slow and this is what I'm going to have to live with.
> >
> > Have you increased the size of the packets that NFS uses to transfer
> > information between the hosts? On the client side, use the mount
> > options "rsize" and "wsize" to increase the read and write packets,
> > respectively. The Linux default is 1024 bytes which is too small for
> > performance reasons. For example, Sun systems use 8192 bytes for rsize
> > and wsize. To be safe, just use 8192.
>
> I've tried sizes from 1024 -- 300000 ... Only now did I try 8192. Things
> are VASTLY improved.
>
> Much thanks. :)

No problem. Anothe reason why 8192 is safe is that it is a multiple of
the page size, 4096. Even though systems accept lots of values for
rsize and wsize, I consider it unsafe to use things that are not a
multiple of the page size or a power of two. :)

Tom