Re: IOCache vs. block cache
Simon Taylor <simontaylor1-XZoyATsUNX5Wk0Htik3J/[email protected]> Fri, 18 Jun 2010 01:03:33 +0100
| Newsgroups | gmane.os.openbeos.kernel.devel |
|---|---|
| Message-ID | <[email protected]> |
Ingo Weinhold wrote: > On 2010-06-17 at 20:23:55 [+0200], Rene Gollent <[email protected]> wrote: >> A question - what cases would the block cache actually used in? It >> seems as if the file / IO caches cover the cases of actual file data, >> which would seem to only leave things like FS metadata blocks going >> directly through the block cache. And even that seems somewhat >> redundant if the IOCache is also at the device level. Am I missing >> something? > > It is FS dependent whether file and/or block cache are used. Unlike the > IOCache, which is a fully transparent write-through cache, both provide a > public API for the FS. The block cache is transactional. Blocks of committed > transactions are written with delay. OK, so I assume the IOCache works at the device level, regardless of the FS? I'm still confused about the difference between the file and block cache, or more specifically why the file cache offers an advantage over the block cache which is presumably a lower-level abstraction. Simon ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo