gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] how to measuere the effectiveness of io-cache?


From: Anand Avati
Subject: Re: [Gluster-devel] how to measuere the effectiveness of io-cache?
Date: Fri, 4 Jan 2008 21:44:20 +0530

> thanks, that sounds like "wow, when will it be there?" :-)
>
> my I add another question: do the caches communitcate with each other?
> that
> is, how does the cache on client A know that a file was just
> changed/deleted/overwritten by client B, that is, became "dirty"?


by checking mtime. Whenever io-cache gets a chance (any call which is
returning mtime of the file) it validates the cache for a configurable time.
you can set the cache time to be 0 so that every read is verified for cache
validity by an mtime check. if you load read-ahead over io-cache, this
verification overhead is reduced since a single stat call is done for
pipelined verifications.

avati


-- 
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]