From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <988d63bed4e88f426c25b4ed4cb4c473.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199707180215.UAA12845@ellpspace.math.ualberta.ca> Date: Thu, 17 Jul 1997 20:15:31 -0600 (MDT) From: Michal Jaegermann Subject: Re: NFS Problems? was Re: Anyone Home? In-Reply-To: Lo Sheng * Software Engineer * wrote: > > On Thu, 17 Jul 1997, Greg Lindahl wrote: > > > I've seen _performance_ complaints, mostly because Linux defaults to > > 1k packet sizes and most admins don't know to increase it. But I > > haven't seen complaints about bugs before. > > mmm ... well, I, for one, don't know how to increase the size. Could you > share with me? This is straight from 'man mount': Mount options for nfs Instead of a textual option string, parsed by the kernel, the nfs file system expects a binary argument of type struct nfs_mount_data. The program mount itself parses the following options of the form `tag=value', and puts them in the structure mentioned: rsize=n, wsize=n, timeo=n, retrans=n, acregmin=n, acregmax=n, acdirmin=n, acdirmax=n, actimeo=n, retry=n, port=n, mountport=n, moun- thost=name, mountprog=n, mountvers=n, nfsprog=n, nfsvers=n, namlen=n. The option addr=n is accepted but ignored. Also the following Boolean options, possibly preceded by no are recognized: bg, fg, soft, hard, intr, posix, cto, ac, tcp, udp. For details, see nfs(5). Especially useful options include rsize=8192,wsize=8192 This will make your nfs connection much faster than with the default buffer size of 1024. soft This option allows the kernel to time out if the nfs server is not responding for some time, other- wise it will try forever. The time can be specified with timeo=time. This option is useful if your nfs server sometimes doesn't respond or will be rebooted while some process tries to get a file from the server. Actually mount manpage is chock-full of interesting and useful options for various file systems. Highly recommended reading material. Good values for rsize and wsize may depend on your particular ethernet card and also on a hardware on the other end, so you should experiment a bit. Normally the bigger, the merrier - up to some limit. Linux is using 1k as a default because some cheap PC ether cards were crashing with higher values (or so I was told). Michal -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com