Return-Path: Received: from mx2.netapp.com ([216.240.18.37]:10549 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964789Ab1ETU1s convert rfc822-to-8bit (ORCPT ); Fri, 20 May 2011 16:27:48 -0400 Subject: Re: 2.6.38.6 - state manager constantly respawns From: Trond Myklebust To: Harry Edmon Cc: "Dr. J. Bruce Fields" , Chuck Lever , linux-nfs@vger.kernel.org Date: Fri, 20 May 2011 16:27:46 -0400 In-Reply-To: <4DD6CDD7.60503@uw.edu> References: <05D08339-888C-4A64-BDC5-8667B3901E7A@oracle.com> <4DD1772E.9010609@uw.edu> <6A6FB1C3-D4C3-40BE-810A-B4551FA9E591@oracle.com> <4DD17CB5.7010009@uw.edu> <1305575007.19725.3.camel@lade.trondhjem.org> <4DD17F79.305@uw.edu> <1305575656.19725.9.camel@lade.trondhjem.org> <20110516202059.GC1680@fieldses.org> <20110516205351.GD1680@fieldses.org> <4DD694DF.2060302@uw.edu> <20110520172639.GA11670@fieldses.org> <1305913963.12712.6.camel@lade.trondhjem.org> <4DD6C103.7090302@uw.edu> <1305920417.14253.15.camel@lade.trondhjem.org> <4DD6C4A3.5010709@uw.edu> <1305922283.14253.24.camel@lade.trondhjem.org> <4DD6CDD7.60503@uw.edu> Content-Type: text/plain; charset="UTF-8" Message-ID: <1305923266.19534.2.camel@lade.trondhjem.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Fri, 2011-05-20 at 13:23 -0700, Harry Edmon wrote: > On 05/20/11 13:11, Trond Myklebust wrote: > > On Fri, 2011-05-20 at 12:44 -0700, Harry Edmon wrote: > > > >>> Once a minute is rather unusual... What kind of server are you running > >>> against? > >>> > >>> If it is a Linux server, what is the value contained in the virtual file > >>> "/proc/fs/nfsd/nfsv4leasetime" ? > >>> > >>> > >>> > >> Same as before - Debian Squeeze running 2.6.38.6. The value of > >> /proc/fs/nfsd/nfsv4leasetime is 90 and is not something I changed. > >> > > OK... Does 'nfsstat' on the server show any 'delegreturn' updates around > > the time when the state manager thread runs? It could just be that it is > > reaping all your unused delegations. > > > > > That number seems to be increasing all the time, whether or not the > state manager process appears in the accounting file. And this is only > the one NFS client for this sever. > OK. If your client is using delegations heavily then that would indeed explain the 1 minute delay between state manager runs, since the renew daemon runs once a minute, and will mark any unused delegations for reaping by the state manager. -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com