From owner-freebsd-fs@FreeBSD.ORG Mon Oct 17 13:46:21 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 6454316A41F for ; Mon, 17 Oct 2005 13:46:21 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C649143D49 for ; Mon, 17 Oct 2005 13:46:20 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10]) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.54 (FreeBSD)) id 1ERVJf-000GTO-PG; Mon, 17 Oct 2005 15:46:15 +0200 Message-ID: <4353AB27.6070409@ant.uni-bremen.de> Date: Mon, 17 Oct 2005 15:46:15 +0200 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2 X-Accept-Language: en MIME-Version: 1.0 To: Nicolas KOWALSKI References: <20051014160128.hev160v52ossokg0@wwws.cs.ait.ac.th> <20051014045824.V5343@odysseus.silby.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: [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 13:46:21 -0000 Nicolas KOWALSKI wrote: > 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, Great news. I will give that a try. Still, i wonder if it is possible to have the server close the open connections with a small program that one could call before the first mount. Can someone give me a hint? --Heinrich -- Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - Phone : +49/421/218-4664 Fax : -3341