From: David Chow <davidchow@shaolinmicro.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Problems of lookup_revalidate
Date: Tue, 27 Aug 2002 09:35:12 +0800 [thread overview]
Message-ID: <3D6AD750.2070602@shaolinmicro.com> (raw)
In-Reply-To: 200208261810.37180.trond.myklebust@fys.uio.no
Trond Myklebust wrote:
>On Monday 26 August 2002 17:53, David Chow wrote:
>
>
>>Trond,
>>
>>I think the strategy used in 2.4.19 for NFS dentry and inode updates are
>>too weak. May be you have being pushing too hard on optimizing
>>performance (fewer lookups and revalidate). But I have problems that the
>>client d_cache() inconsistency. It seems when the server changes file
>>mode or ownership, the client is not updated properly unless I explicity
>>add a file in the parent directory at the server which triggers the
>>mtime of the parent, the client hardly update the dcache and inode
>>parameters properly. Please clarify if my guess is wrong. Thanks.
>>
>>
>
>I don't see what you mean here. Attributes are indeed cached: see the
>'actimeo' and 'noac' mount options. If you mess around with those attributes
>on the server, and then call 'stat()' then you will indeed get wrong results.
>So what?
>There is *no* guarantee that you can use to ensure that attributes are always
>correct on the client. That's part of the protocol.
>
>Most (if not all) NFS clients therefore use attribute caching, and assume that
>they only have to check the attributes when the cache times out *or* when
>open() is called on the file.
>
>Cheers,
> Trond
>
>
Even I cat the file, the file seems still using the old cache on the
client, but the server version has changed. Any possibilities? The mtime
and size of the file at the server HAS changed so why not nfs client
refresh_inode() on openning the file?
David
next prev parent reply other threads:[~2002-08-27 1:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-26 15:53 Problems of lookup_revalidate David Chow
2002-08-26 16:10 ` Trond Myklebust
2002-08-27 1:35 ` David Chow [this message]
2002-08-27 18:00 ` Trond Myklebust
2002-08-29 9:26 ` David Chow
2002-08-29 9:31 ` Trond Myklebust
2002-08-29 9:34 ` Trond Myklebust
-- strict thread matches above, loose matches on Subject: below --
2002-08-29 15:26 Bryan Henderson
2002-08-29 23:19 ` Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D6AD750.2070602@shaolinmicro.com \
--to=davidchow@shaolinmicro.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.