Advice Pro

Distinguished
Feb 25, 2009
164
0
18,680
1) What could go wrong if HDD cache didn't buffer between read & write and the disk?

2) Why exactly is 16MB cache better than 8MB?

3) Why is 8MB cache the standard?
 
Solution
Prologue: You need to understand the vast speed differences between system memory and disk. Data is moved between the two devices during disk reads and writes. The cache on a disk decouples the system from the horribly slow speed of the disk. The CPU can slam the data into the cache and go do something else.

The CPU (or some controller) has to write a full sector at a time and may not interrupt that process or the sector is lost. So without a cache/buffer writing would be a very haphazard process.

16M vs 8M - more is generally better. The CPU can send commands to the disk controller and go do something else. Note Windows is not very good at this but its getting better.

8M is not the standard. I remember 1M caches on disks and there...

vvhocare5

Distinguished
Mar 5, 2008
768
0
19,060
Prologue: You need to understand the vast speed differences between system memory and disk. Data is moved between the two devices during disk reads and writes. The cache on a disk decouples the system from the horribly slow speed of the disk. The CPU can slam the data into the cache and go do something else.

The CPU (or some controller) has to write a full sector at a time and may not interrupt that process or the sector is lost. So without a cache/buffer writing would be a very haphazard process.

16M vs 8M - more is generally better. The CPU can send commands to the disk controller and go do something else. Note Windows is not very good at this but its getting better.

8M is not the standard. I remember 1M caches on disks and there are disks with 64M today. Disk manufacturers test extensively on the best size - or bang for the buck. You wouldnt see a benefit with a 32 M cache on a drive with 8M today. They tend to work off a ratio of cache size to storage size.

People spend their lives studying this stuff - its hugely interesting, but I think SSD's will make all of this go away when their price gets low enough
 
Solution

Not at all. Modern SSDs have larger and even more complicated cache systems than HDDs do. Several SSDs have 128MB or more of cache.