From owner-freebsd-hackers Fri Nov 8 02:13:42 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA22745 for hackers-outgoing; Fri, 8 Nov 1996 02:13:42 -0800 (PST) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA22739 for ; Fri, 8 Nov 1996 02:13:38 -0800 (PST) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id KAA00652; Fri, 8 Nov 1996 10:13:19 GMT Date: Fri, 8 Nov 1996 10:13:17 +0000 (GMT) From: Doug Rabson To: Karl Denninger cc: hackers@FreeBSD.org Subject: Re: Funny behavior in NFS In-Reply-To: <199611051605.KAA05286@Venus.mcs.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 5 Nov 1996, Karl Denninger wrote: > > Don't you need the "intr" flag to be able to ^C out of an operation? The > > "soft" flag gives up the operation after a number of retries but isn't > > necessarily interruptable > > Yes, but you can sit with a "soft" mount for hours and it never times out.. I just tried to reproduce this and the soft, intr stuff works fine for me. What you may be seeing is that the code exponentially increases the timeout each time any request times out. This means that for a moderately busy machine which loses its connection, the timeout will go right up to the maximum (256 * timeout specified for mount_nfs) as the first eight processes attempt NFS requests. With the default timeout and retry count, this would mean that the requests will take about 45 minutes to time out. At any time during this 45 minutes, you can ^C the request (for an interruptable mount) and get control back at most one second later. For a single user machine, with only one NFS request outstanding, the total timeout is about 15 minutes. If this is not right for your site, you could try reducing the retrans count down to 5 from the default value of 10. For my testing, I had an fstab line like this: foo:/home /home nfs rw,soft,intr,-x5 0 0 -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426