From owner-freebsd-hackers Wed May 15 9:54: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 7154E37B405 for ; Wed, 15 May 2002 09:54:02 -0700 (PDT) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.3/8.12.3) with ESMTP id g4FGrib4098305; Wed, 15 May 2002 12:53:44 -0400 (EDT) (envelope-from arr@FreeBSD.org) Received: from localhost (arr@localhost) by fledge.watson.org (8.12.3/8.12.3/Submit) with SMTP id g4FGrdos098302; Wed, 15 May 2002 12:53:40 -0400 (EDT) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Wed, 15 May 2002 12:53:38 -0400 (EDT) From: "Andrew R. Reiter" X-Sender: arr@fledge.watson.org To: Alfred Perlstein Cc: Terry Lambert , Richard Sharpe , freebsd-hackers@FreeBSD.org Subject: Re: File locking, closes and performance in a distributed filesystemenv In-Reply-To: <20020515155101.GF1585@elvis.mu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 15 May 2002, Alfred Perlstein wrote: :* Terry Lambert [020515 01:36] wrote: :> Alfred Perlstein wrote: :> > As Terry stated you can't do that, however you could cache that the :> > VNODE has a lock, that would reduce the requirement for calling the :> > ADVLOCK VOP. :> You'd really have to know when the lock list went to NULL, to get :> any benefit out of it, since locking would still end up being per-file :> sticky. You could post-check after every successful unlock... but to :> cache the remote state would mean another RPC to ask for locks, which :> would just be front-loading the expense, instead of back-loading it. : :[snip] : :He could also maintain a local cache of this per vnode, basically :maintain a mirror of the lock list locally in order to see if a remote :op must be done. Isn't this sorta like coda? -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message