From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trond Myklebust Subject: Re: Urgent help needed on an NFS question, please help!!! Date: Thu, 10 Aug 2006 20:44:54 -0400 Message-ID: <1155257094.5826.101.camel@localhost> References: <4ae3c140608092204n1c07152k52010a10e209bb77@mail.gmail.com> <17626.49136.384370.284757@cse.unsw.edu.au> <4ae3c140608092254k62dce9at2e8cdcc9ae7a6d9f@mail.gmail.com> <17626.52269.828274.831029@cse.unsw.edu.au> <4ae3c140608100815p57c0378kfd316a482738ee83@mail.gmail.com> <20060810161107.GC4379@parisc-linux.org> <4ae3c140608100923j1ffb5bb5qa776bff79365874c@mail.gmail.com> <1155230922.10547.61.camel@localhost> <4ae3c140608101102j3ec28dccob94d407b9879aa86@mail.gmail.com> <1155239982.5826.24.camel@localhost> <4ae3c140608101525u7b6eeaebjca351ba850173544@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Matthew Wilcox , Neil Brown , linux-kernel , linux-fsdevel@vger.kernel.org Return-path: Received: from pat.uio.no ([129.240.10.4]:47255 "EHLO pat.uio.no") by vger.kernel.org with ESMTP id S932385AbWHKApD (ORCPT ); Thu, 10 Aug 2006 20:45:03 -0400 To: Xin Zhao In-Reply-To: <4ae3c140608101525u7b6eeaebjca351ba850173544@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 2006-08-10 at 18:25 -0400, Xin Zhao wrote: > The inter-VM inode helps reduce communication cost used to retrieve > file attributes in a VM environment. In a network environment, it is > possible for a client to direct see the inode caches of the server. > But in the virtual server environment, where both client and server > running on the same physical host, this would be possible. > > If clients have read-only access to server's inode cache, they can > directly retrieve file attributes without incurring expensive > getattr() rpc call. Of couse the delegation is able to allow a client > to trust local cached file attributes without worry about server > change. But this only works when file is not shared by multiple > clients. Right? Does NFS4 has some other mechanisms that can further > improve performance on metadata access? Not metadata access, no. That would require some seriously messy locking rules. It improves performance by allowing a client to access the block device directly for data reads and writes if it has the capability of doing so. Trond