From owner-freebsd-fs@FreeBSD.ORG Mon Oct 17 12:24:41 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A23A016A41F for ; Mon, 17 Oct 2005 12:24:41 +0000 (GMT) (envelope-from Nicolas.Kowalski@imag.fr) Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D151943D46 for ; Mon, 17 Oct 2005 12:24:40 +0000 (GMT) (envelope-from Nicolas.Kowalski@imag.fr) Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by imag.imag.fr (8.13.0/8.13.0) with ESMTP id j9HCOZpS008825 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 17 Oct 2005 14:24:36 +0200 (CEST) Received: from corbeau.imag.fr ([129.88.43.162]) by mail-veri.imag.fr with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1ERU2d-0007ie-QB for freebsd-fs@freebsd.org; Mon, 17 Oct 2005 14:24:35 +0200 Date: Mon, 17 Oct 2005 14:24:35 +0200 From: Nicolas KOWALSKI To: freebsd-fs@freebsd.org In-Reply-To: Message-ID: References: <20051014160128.hev160v52ossokg0@wwws.cs.ait.ac.th> <20051014045824.V5343@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (imag.imag.fr [129.88.30.1]); Mon, 17 Oct 2005 14:24:36 +0200 (CEST) X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-Information: Please contact the ISP for more information Subject: [UPDATE] Re: FreeBSD NFS server not responding to TCP SYN packets from Linux/SunOS clients X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 12:24:41 -0000 On Fri, 14 Oct 2005, Nicolas KOWALSKI wrote: > Mike Silbersack writes: > > Actually, there may be a quick fix for this specific machine. If > > you set net.inet.tcp.keepidle to 1 minute (60*whatever kern.hz is), > > that'll cause keepalive packets to be sent every minute to an idle > > connection, rather than every 2 hours. That would kill the stuck > > connections much quicker. > > Unfortunately, this does not work as expected. I just tested with my > workstation (Linux 2.6), with NFS filesystems mounted with TCP; when > the station rebooted abruptely, mounting the same NFS filesystems hung > more than 1 minute (15 minutes just now). During this hang, I saw on > the server, using netstat, the nfsd process related to my workstation > in ESTABLISHED state. Thanks to Olivier, his suggestion to restart the nfsd processes after setting net.inet.tcp.keepidle makes the situation much better ! Now, this work as expected ; Linux and SunOS workstations do not hang more than a few seconds when mounting shares from the FreeBSD server after an unclean shutdown. I am still waiting for other problems to come up with this configuration, but after a few hours, it just looks really good. :-) Many thanks to all ! Best regards, -- Nicolas