From: "Mohit Katiyar" Subject: Re: NFS inconsistent behaviour Date: Thu, 19 Oct 2006 10:53:42 +0900 Message-ID: <46465bb30610181853t38428501ha363e6d04b76f993@mail.gmail.com> References: <46465bb30610160013v47524589g39c61465b5955f65@mail.gmail.com> <20061016084656.GA13292@janus> <46465bb30610160235m211910b6g2eb074aa23060aa9@mail.gmail.com> <20061016093904.GA13866@janus> <46465bb30610171822h3f747069ge9a170f1759af645@mail.gmail.com> <20061018063945.GA5917@janus> <1161194229.6095.81.camel@lade.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Linux NFS mailing list , linux-kernel@vger.kernel.org, Frank van Maarseveen Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1GaN6N-0007Ei-Ni for nfs@lists.sourceforge.net; Wed, 18 Oct 2006 18:53:44 -0700 Received: from nf-out-0910.google.com ([64.233.182.187]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1GaN6N-00083n-GR for nfs@lists.sourceforge.net; Wed, 18 Oct 2006 18:53:44 -0700 Received: by nf-out-0910.google.com with SMTP id p46so1253302nfa for ; Wed, 18 Oct 2006 18:53:43 -0700 (PDT) To: "Trond Myklebust" In-Reply-To: <1161194229.6095.81.camel@lade.trondhjem.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Yes, I do not want to mount unmount infinitely but was just checking out of curiosity but mounting/unmounting infinitely works comepletely fine on SLES 9 which uses 2.6.5 kernel. I was just wondering what has been changed that it does not work now? On 10/19/06, Trond Myklebust wrote: > On Wed, 2006-10-18 at 08:39 +0200, Frank van Maarseveen wrote: > > On Wed, Oct 18, 2006 at 10:22:44AM +0900, Mohit Katiyar wrote: > > > I checked it today and when i issued the netstat -t ,I could see a lot > > > of tcp connections in TIME_WAIT state. > > > Is this a normal behaviour? > > > > yes... but see below > > > > > So we cannot mount and umount infinitely > > > with tcp option? Why there are so many connections in waiting state? > > > > I think it's called the 2MSL wait: there may be TCP segments on the > > wire which (in theory) could disrupt new connections which reuse local > > and remote port so the ports stay in use for a few minutes. This is > > standard TCP behavior but only occurs when connections are improperly > > shutdown. Apparently this happens when umounting a tcp NFS mount but > > also for a lot of other tcp based RPC (showmount, rpcinfo). I'm not > > sure who's to blame but it might be the rpc functions inside glibc. > > > > I'd switch to NFS over udp if this is problem. > > Just out of interest. Why does anyone actually _want_ to keep > mount/umounting to the point where they run out of ports? That is going > to kill performance in all sorts of unhealthy ways, not least by > completely screwing over any caching. > > Note also that you _can_ change the range of ports used by the NFS > client itself at least. Just edit /proc/sys/sunrpc/{min,max}_resvport. > On the server side, you can use the 'insecure' option in order to allow > mounts that originate from non-privileged ports (i.e. port > 1024). > If you are using strong authentication (for instance RPCSEC_GSS/krb5) > then that actually makes a lot of sense, since the only reason for the > privileged port requirement was to disallow unprivileged NFS clients. > > Cheers, > Trond > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs