• Notice regarding image hosts and attachments. See here.

What Exactly Is A Hard Drive Cache?

quoted from Wikipedia:

"While the hard drive's hardware disk buffer is sometimes misleadingly referred to as "disk cache", its main functions are write sequencing and read prefetching. Repeated cache hits are relatively rare, due to the small size of the buffer in comparison to the drive's capacity. However, high-end disk controllers often have their own on-board cache of hard disk data blocks."

have a look at this post for more info: http://forums.storagereview.com/index.php/topic/3200-how-important-is-the-hard-drive-cache/
 
It boosts performance, say the OS wants to write 1000 4k files to a drive, with a cache they can be sent to the drive at say 120mb/s taking 0.03s and then the drive will write the files from the cache to the disk when there is break in demand, without the cache the os would have to wait for each file to be written, with 10ms seek time per file this would take 10s (a lot more than 0.03s).

There is a bit more too it than this, obviously file size varies a lot and there a lot of tricks that can be done with algorithms, there are diminishing returns with increasing cache size.
 
Oh right, so it will affect performance a lot then! And bigger is better, yes?

Generally the cache is bigger as the drive capacity increases. That lends me to believe that bigger isn't necessarily better, but you need a cache in proportion to capacity. For a 1TB HDD you should be looking at 32MB cache.

Lately there's the idea of hybrid SSD-HDDs, which can have 4GB of SSD attached to 1TB of HDD. The idea is that the SSD stores files that are accessed most frequently.
 
Back
Top Bottom