Jump to content

HDD Cache

Go to solution Solved by vanished,

32MB v 64MB v 128MB. What is the difference and what does it actually do?

My understanding is that for small IO tasks it can increase performance because the cache is quick memory like RAM or an SSD, and so if you try writing to it, it will just go there without having to invoke the slower platters & head.  Anything over that size needs to be immediately written however so more cache = higher performance, but only to a point.  IT's not going to improve sequential reads or writes very likely.

32MB v 64MB v 128MB. What is the difference and what does it actually do?

My understanding is that for small IO tasks it can increase performance because the cache is quick memory like RAM or an SSD, and so if you try writing to it, it will just go there without having to invoke the slower platters & head.  Anything over that size needs to be immediately written however so more cache = higher performance, but only to a point.  IT's not going to improve sequential reads or writes very likely.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/462891-hdd-cache/#findComment-6212086
Share on other sites

Link to post
Share on other sites

My understanding is that for small IO tasks it can increase performance because the cache is quick memory like RAM or an SSD, and so if you try writing to it, it will just go there without having to invoke the slower platters & head.  Anything over that size needs to be immediately written however so more cache = higher performance, but only to a point.  IT's not going to improve sequential reads or writes very likely.

ty

Do you play football/soccer?


Cause you look like a left-back

Link to comment
https://linustechtips.com/topic/462891-hdd-cache/#findComment-6212099
Share on other sites

Link to post
Share on other sites

My understanding is that for small IO tasks it can increase performance because the cache is quick memory like RAM or an SSD, and so if you try writing to it, it will just go there without having to invoke the slower platters & head.  Anything over that size needs to be immediately written however so more cache = higher performance, but only to a point.  IT's not going to improve sequential reads or writes very likely.

 

"What is Disk Cache?

A portion of RAM used to speed up access to data on a disk. The RAM can be part of the disk drive itself (sometimes called a hard disk cache or buffer) or it can be general-purpose RAM in the computer that is reserved for use by the disk drive (sometimes called a soft disk cache). Hard disk cachesare more effective, but they are also much more expensive, and therefore smaller. Nearly all modern disk drives include a small amount of internal cache.

A soft disk cache works by storing the most recently accessed data in the RAM cache. When a program needs to access new data, the operating system first checks to see if the data is in the cache before reading it from the disk. Because computers can access data from RAM much faster than from a disk, disk caching can significantly increase performance. Many cache systems also attempt to predict what data will be requested next so they can place that data in the cache ahead of time.

Although caching improves performance, there is some risk involved. If the computer crashes (due to a power failure, for example), the system may not have time to copy the cache back to the disk. In this case, whatever changes you made to the data will be lost. Usually, however, the cache system updates the disk frequently so that even if you lose some data, it will not be much. Caches that work in this manner are called write-back caches. Another type of disk cache, called a write-thru cache, removes the risk of losing data because it only caches data for read operations; writeoperations are always sent directly to the disk."

 

Think that is a better explanation.

I speak my mind, sorry if thats a problem.

Link to comment
https://linustechtips.com/topic/462891-hdd-cache/#findComment-6212212
Share on other sites

Link to post
Share on other sites

32MB v 64MB v 128MB. What is the difference and what does it actually do?

 

Hey there Rienks,
 
The guys gave you a pretty good explanation of what the cache is used for. For everyday usage the difference between the three cache sizes is almost not detectable. You have to either work mainly with small files in order to see a significant improvement or to use the drive in servers, NASs and other workstations that constantly transfer small amounts of data and thus prevent the drives from spinning up for every single transfer or the need to spend time to find the data on the platter. 
What are you using the drive for? For regular home usage I'd recommend sticking with the common 64Mb. :) 
 
Captain_WD.

If this helped you, like and choose it as best answer - you might help someone else with the same issue. ^_^
WDC Representative, http://www.wdc.com/ 

Link to comment
https://linustechtips.com/topic/462891-hdd-cache/#findComment-6212629
Share on other sites

Link to post
Share on other sites

 

Hey there Rienks,
 
The guys gave you a pretty good explanation of what the cache is used for. For everyday usage the difference between the three cache sizes is almost not detectable. You have to either work mainly with small files in order to see a significant improvement or to use the drive in servers, NASs and other workstations that constantly transfer small amounts of data and thus prevent the drives from spinning up for every single transfer or the need to spend time to find the data on the platter. 
What are you using the drive for? For regular home usage I'd recommend sticking with the common 64Mb. :)
 
Captain_WD.

 

Oh okay thank you Mr/Mrs/Miss/Ms WD representative much appreciated

 

Edit: I'm not sexist I swear

Do you play football/soccer?


Cause you look like a left-back

Link to comment
https://linustechtips.com/topic/462891-hdd-cache/#findComment-6212710
Share on other sites

Link to post
Share on other sites

Oh okay thank you Mr/Mrs/Miss/Ms WD representative much appreciated

 

Edit: I'm not sexist I swear

 

No problem :) If you need any other help, feel free to ask :)

 

Captain_WD.

If this helped you, like and choose it as best answer - you might help someone else with the same issue. ^_^
WDC Representative, http://www.wdc.com/ 

Link to comment
https://linustechtips.com/topic/462891-hdd-cache/#findComment-6212955
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×