2008-01-08 01:32:58

by NeilBrown

[permalink] [raw]
Subject: Re: Man page update for timeo= and retrans= options.

On Monday January 7, [email protected] wrote:
> Hi Neil-
>
> I just spent two months and rewrote all of nfs(5). It should appear
> in the next release of nfs-utils. Steve, when can we expect to see
> the updated man page?

I thought I had seem some rewrite go past, but it wasn't in my inbox
any more and also not it Steve's git so I just went ahead...

I see it is in the .git now (as of Friday).

Comments:
- It says UDP defaults to 7/10 of a second, but
nfs_init_timeout_values()
says:
if (!to->to_initval)
to->to_initval = 11 * HZ / 10;

which suggests 11/10 of a second.

- It says
If the retrans option is not specified, the NFS client retries
each request three times.

but nfs_init_timeout_values() says

if (!to->to_retries)
to->to_retries = 2;

which suggests it retries 2 time (or tries 3 times).


- It says:
After each retransmission, the NFS client doubles the timeout
for that request, up to a maximum timeout length of 60 seconds.

but doesn't (to me) make it clear that only applies to UDP. For
TCP, the timeouts appear to increase linearly up to 600 seconds.

Thanks,
NeilBrown