[lkml]   [2001]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: nfs is stupid ("getfh failed")
>>>>> " " == Marcus Sundberg <> writes:

> (Neil Brown) writes:
>> On September 10, wrote:
>> > cachefs sucks. It doesn't seem to cache stat(2) information.
>> > Doing ls -F in a ~100-entries directory takes several seconds
>> > over a link with 50ms round-trip time.
>> Well, I said "concept" not "implementation", but I suspect that
>> Solaris cachefs does cache stat information. Maybe you just
>> need to increase the timeouts for the attribute cache.

> Considering that I did several ls'es on the order of
> milliseconds apart I doubt that would help...

The NFS close-to-open cache consistency requirement forces them to
compare the attribute cache to the server every time someone does a
call to open(). This is true whether or not one uses cachefs.

After the file has actually been opened, you can call fstat() as many
times as you like. The cached attributes to be used, and they will
then be checked on the server only after the cache times out.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.037 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site