Re: Journaling pointless with today's hard disks?

Charles Marslett
2001-11-24T17:27:00Z

Phil Howard wrote:
> OOC, do you think there is any real advantage to the 1m to 4m cache
> that drives have these days, considering the effective caching in
> the OS that all OSes these days have ... over adding that much
> memory to your system RAM? The only use for caching I can see in
> a drive is if it has physical sector sizes greater than the logical
> sector write granularity size which would require a read-mod-write
> kind of operation internally. But that's not really "cache" anyway.

Not asked of me, but as always, I do have an opinion:

I think the real reason for the very large disk caches is that the
cost of a track buffer for simple read-ahead is about the same as the
1 MB "cache" on cheap modern drives. And with very simple logic they
can "cache" several physical tracks, say the ones that contain the inode
and the last few sectors of the most recently accessed file. Sometimes
this saves you a rotational delay time reading or writing a sector span,
so it can do better than the OS then (I admit, that doesn't happen often).
And the cost/benefit tradeoff is worth it, because the cost is so little.

[Someone who really knows may correct me, however.]

--Charles
/"\ |
\ / ASCII Ribbon Campaign |
X Against HTML Mail |--Charles Marslett
/ \ | www.wordmark.org