* starting 90-second grace period @ 2009-12-11 11:00 Tharindu Rukshan Bamunuarachchi 2009-12-11 17:08 ` Andy Adamson 0 siblings, 1 reply; 9+ messages in thread From: Tharindu Rukshan Bamunuarachchi @ 2009-12-11 11:00 UTC (permalink / raw) To: linux-nfs hi all, Is there anyway to reduce or remove "90-second grace period" ? I could not find any configurable parameter. grace_time seems to be derived from user_lease_time & lease_time. what are the negative effects of changing *_lease_time ? cheers -- Tharindu Rukshan Bamunuarachchi ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 11:00 starting 90-second grace period Tharindu Rukshan Bamunuarachchi @ 2009-12-11 17:08 ` Andy Adamson 2009-12-11 17:25 ` Tharindu Rukshan Bamunuarachchi 0 siblings, 1 reply; 9+ messages in thread From: Andy Adamson @ 2009-12-11 17:08 UTC (permalink / raw) To: Tharindu Rukshan Bamunuarachchi; +Cc: linux-nfs you can set the lease time, which is the grace period, by writing to /proc/fs/nfsd/nfsv4leasetime note that this file is only available after the nfsd module is loaded, and is only read by nfsd upon startup. -->Andy On Dec 11, 2009, at 6:00 AM, Tharindu Rukshan Bamunuarachchi wrote: > hi all, > > Is there anyway to reduce or remove "90-second grace period" ? > > I could not find any configurable parameter. > > grace_time seems to be derived from user_lease_time & lease_time. > > what are the negative effects of changing *_lease_time ? > > cheers > -- > Tharindu Rukshan Bamunuarachchi > -- > To unsubscribe from this list: send the line "unsubscribe linux-nfs" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 17:08 ` Andy Adamson @ 2009-12-11 17:25 ` Tharindu Rukshan Bamunuarachchi 2009-12-11 18:01 ` Trond Myklebust 0 siblings, 1 reply; 9+ messages in thread From: Tharindu Rukshan Bamunuarachchi @ 2009-12-11 17:25 UTC (permalink / raw) To: Andy Adamson; +Cc: linux-nfs thankx a lot for the info. btw, if i set nfs4leasetime to ~10 seconds ... is there any negative ef= fect ? On Fri, Dec 11, 2009 at 10:38 PM, Andy Adamson <andros@netapp.com> wrot= e: > you can set the lease time, which is the grace period, by writing to > > /proc/fs/nfsd/nfsv4leasetime > > note that this file is only available after the nfsd module is loaded= , and > is only read by nfsd upon startup. > > -->Andy > > On Dec 11, 2009, at 6:00 AM, Tharindu Rukshan Bamunuarachchi wrote: > >> hi all, >> >> Is there anyway to reduce or remove "90-second grace period" ? >> >> I could not find any configurable parameter. >> >> grace_time seems to be derived from user_lease_time & lease_time. >> >> what are the negative effects of changing *_lease_time ? >> >> cheers >> -- >> Tharindu Rukshan Bamunuarachchi >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-nfs"= in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > > --=20 Tharindu Rukshan Bamunuarachchi ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 17:25 ` Tharindu Rukshan Bamunuarachchi @ 2009-12-11 18:01 ` Trond Myklebust 2009-12-11 18:09 ` Tharindu Rukshan Bamunuarachchi 0 siblings, 1 reply; 9+ messages in thread From: Trond Myklebust @ 2009-12-11 18:01 UTC (permalink / raw) To: Tharindu Rukshan Bamunuarachchi; +Cc: Andy Adamson, linux-nfs On Fri, 2009-12-11 at 22:55 +0530, Tharindu Rukshan Bamunuarachchi wrote: > thankx a lot for the info. > > btw, if i set nfs4leasetime to ~10 seconds ... is there any negative effect ? > You mean aside from the very likely event that your clients will lose all their locks when the server reboots? Trond ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 18:01 ` Trond Myklebust @ 2009-12-11 18:09 ` Tharindu Rukshan Bamunuarachchi 2009-12-11 18:20 ` Trond Myklebust 0 siblings, 1 reply; 9+ messages in thread From: Tharindu Rukshan Bamunuarachchi @ 2009-12-11 18:09 UTC (permalink / raw) To: Trond Myklebust; +Cc: Andy Adamson, linux-nfs then why is it 90 by default ... is it RFC/Protocol requirement ? On Fri, Dec 11, 2009 at 11:31 PM, Trond Myklebust <trond.myklebust@fys.uio.no> wrote: > On Fri, 2009-12-11 at 22:55 +0530, Tharindu Rukshan Bamunuarachchi > wrote: >> thankx a lot for the info. >> >> btw, if i set nfs4leasetime to ~10 seconds ... is there any negative effect ? >> > > You mean aside from the very likely event that your clients will lose > all their locks when the server reboots? > > Trond > > -- Tharindu Rukshan Bamunuarachchi ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 18:09 ` Tharindu Rukshan Bamunuarachchi @ 2009-12-11 18:20 ` Trond Myklebust 2009-12-11 19:50 ` J. Bruce Fields 0 siblings, 1 reply; 9+ messages in thread From: Trond Myklebust @ 2009-12-11 18:20 UTC (permalink / raw) To: Tharindu Rukshan Bamunuarachchi; +Cc: Andy Adamson, linux-nfs On Fri, 2009-12-11 at 23:39 +0530, Tharindu Rukshan Bamunuarachchi wrote: > then why is it 90 by default ... is it RFC/Protocol requirement ? The purpose of the grace period is to give the clients enough time to notice that the server has rebooted, and to reclaim their existing locks without danger of having somebody else steal the lock from them. It is not a protocol requirement, but it is definitely a strongly recommended feaature if you don't want to see corruption in your mailbox/database/logfile/... that relies on those locks. Trond > On Fri, Dec 11, 2009 at 11:31 PM, Trond Myklebust > <trond.myklebust@fys.uio.no> wrote: > > On Fri, 2009-12-11 at 22:55 +0530, Tharindu Rukshan Bamunuarachchi > > wrote: > >> thankx a lot for the info. > >> > >> btw, if i set nfs4leasetime to ~10 seconds ... is there any negative effect ? > >> > > > > You mean aside from the very likely event that your clients will lose > > all their locks when the server reboots? > > > > Trond > > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 18:20 ` Trond Myklebust @ 2009-12-11 19:50 ` J. Bruce Fields 2009-12-11 20:09 ` Trond Myklebust 0 siblings, 1 reply; 9+ messages in thread From: J. Bruce Fields @ 2009-12-11 19:50 UTC (permalink / raw) To: Trond Myklebust; +Cc: Tharindu Rukshan Bamunuarachchi, Andy Adamson, linux-nfs On Fri, Dec 11, 2009 at 01:20:43PM -0500, Trond Myklebust wrote: > On Fri, 2009-12-11 at 23:39 +0530, Tharindu Rukshan Bamunuarachchi > wrote: > > then why is it 90 by default ... is it RFC/Protocol requirement ? > > The purpose of the grace period is to give the clients enough time to > notice that the server has rebooted, and to reclaim their existing locks > without danger of having somebody else steal the lock from them. > > It is not a protocol requirement, but it is definitely a strongly > recommended feaature if you don't want to see corruption in your > mailbox/database/logfile/... that relies on those locks. There are a few things we could do to lessen the pain of the grace period, though--such as ending it when we know it's done. (In the v4 case, that's just when we know there are no clients to recover state; in the v4.1 case, that's when all the RECLAIM_COMPLETE's are done.) I'm hoping to work on that for 2.6.34. --b. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 19:50 ` J. Bruce Fields @ 2009-12-11 20:09 ` Trond Myklebust 2009-12-11 20:12 ` J. Bruce Fields 0 siblings, 1 reply; 9+ messages in thread From: Trond Myklebust @ 2009-12-11 20:09 UTC (permalink / raw) To: J. Bruce Fields; +Cc: Tharindu Rukshan Bamunuarachchi, Andy Adamson, linux-nfs On Fri, 2009-12-11 at 14:50 -0500, J. Bruce Fields wrote: > On Fri, Dec 11, 2009 at 01:20:43PM -0500, Trond Myklebust wrote: > > On Fri, 2009-12-11 at 23:39 +0530, Tharindu Rukshan Bamunuarachchi > > wrote: > > > then why is it 90 by default ... is it RFC/Protocol requirement ? > > > > The purpose of the grace period is to give the clients enough time to > > notice that the server has rebooted, and to reclaim their existing locks > > without danger of having somebody else steal the lock from them. > > > > It is not a protocol requirement, but it is definitely a strongly > > recommended feaature if you don't want to see corruption in your > > mailbox/database/logfile/... that relies on those locks. > > There are a few things we could do to lessen the pain of the grace > period, though--such as ending it when we know it's done. (In the v4 > case, that's just when we know there are no clients to recover state; in > the v4.1 case, that's when all the RECLAIM_COMPLETE's are done.) You can't clear the grace period unless you know that all 3 protocols are done. I.e. the list of NSM monitored clients was empty, the list of NFSv4 clients was empty, and the NFSv4.1 reclaim_completes are all done (or the list was empty). In no case should it be done by adjusting the duration of the lease period. Trond ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: starting 90-second grace period 2009-12-11 20:09 ` Trond Myklebust @ 2009-12-11 20:12 ` J. Bruce Fields 0 siblings, 0 replies; 9+ messages in thread From: J. Bruce Fields @ 2009-12-11 20:12 UTC (permalink / raw) To: Trond Myklebust; +Cc: Tharindu Rukshan Bamunuarachchi, Andy Adamson, linux-nfs On Fri, Dec 11, 2009 at 03:09:31PM -0500, Trond Myklebust wrote: > On Fri, 2009-12-11 at 14:50 -0500, J. Bruce Fields wrote: > > On Fri, Dec 11, 2009 at 01:20:43PM -0500, Trond Myklebust wrote: > > > On Fri, 2009-12-11 at 23:39 +0530, Tharindu Rukshan Bamunuarachchi > > > wrote: > > > > then why is it 90 by default ... is it RFC/Protocol requirement ? > > > > > > The purpose of the grace period is to give the clients enough time to > > > notice that the server has rebooted, and to reclaim their existing locks > > > without danger of having somebody else steal the lock from them. > > > > > > It is not a protocol requirement, but it is definitely a strongly > > > recommended feaature if you don't want to see corruption in your > > > mailbox/database/logfile/... that relies on those locks. > > > > There are a few things we could do to lessen the pain of the grace > > period, though--such as ending it when we know it's done. (In the v4 > > case, that's just when we know there are no clients to recover state; in > > the v4.1 case, that's when all the RECLAIM_COMPLETE's are done.) > > You can't clear the grace period unless you know that all 3 protocols > are done. I.e. the list of NSM monitored clients was empty, the list of > NFSv4 clients was empty, and the NFSv4.1 reclaim_completes are all done > (or the list was empty). Yup. > In no case should it be done by adjusting the duration of the lease > period. Agreed. --b. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-12-11 20:12 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-12-11 11:00 starting 90-second grace period Tharindu Rukshan Bamunuarachchi 2009-12-11 17:08 ` Andy Adamson 2009-12-11 17:25 ` Tharindu Rukshan Bamunuarachchi 2009-12-11 18:01 ` Trond Myklebust 2009-12-11 18:09 ` Tharindu Rukshan Bamunuarachchi 2009-12-11 18:20 ` Trond Myklebust 2009-12-11 19:50 ` J. Bruce Fields 2009-12-11 20:09 ` Trond Myklebust 2009-12-11 20:12 ` J. Bruce Fields
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox