Overclock.net banner

Write-back Cache benefits!!!

13633 Views 16 Replies 6 Participants Last post by  the_beast
I was trying to figure out why CCleaner was hanging recently.

Figured it out


Attachment 131665
LL
See less See more
2
1 - 17 of 17 Posts
Nice. Remember though enabling write back cache increases chances of data loss since some data is temporarily cached in the CPU L1 cache. So during a power loss or forced shutdown of any kind you can corrupt files. I also don't think it helps that you have a RAID0 with that enabled.

Other than that, that's a pretty nice increase in speed
.
See less See more
Quote:

Originally Posted by Shadow_UGZ View Post
Nice. Remember though enabling write back cache increases chances of data loss since some data is temporarily cached in the CPU L1 cache. So during a power loss or forced shutdown of any kind you can corrupt files. I also don't think it helps that you have a RAID0 with that enabled.

Other than that, that's a pretty nice increase in speed
.
It isnt a problem unless you are BSODing or crashing from an OC. I enable write-back cache after dialing in my OC, and make sure to disable it whenever I am tweaking my system.

A good read on write-back cache:
http://sr5tech.com/write_back_cache_experiments.htm

Quote:
Write back caches are implemented on hard disks to enhance write performance. ATA drives, in particular, rely on write back caches to make up for the slower performance due to slower seek-time and RPM when compared to their SCSI / Fibre Channel counterparts. Some RAID controllers further implement write cache on the controllers to enhance the overall performance of the system.

With write back caching turned on by default, an ATA drive can signal the completion of writes more quickly than if it had to wait until the data was completely transferred to the disk media. However, in the even of a failure (such as power failure, hardware failure, etc.), data corruption may happen if the data on the disk cache has not been flushed out to the disk media. Another problem with ATA write back cache is that data may be flushed out to disks out-of-order, i.e., if block A arrives to cache before block B, block B may be flushed out to disk before block A. While turning the write back cache off for ATA disks will avoid data corruption problem, performance will degrade. In addition, the drives will be used in a less reliable mode, since ATA vendors do not certify the recovery of drives that deactivate write-back caching.

The chance of data corruption increases with RAID system that leaves write back cache on. A RAID system write stripes that span multiple disks. Since there is no guarantee that all data blocks in a stripe will be flushed out to disk media, the stripe may not be consistent. In the ATA world, hardware RAID vendors typically leave disk write back cache on by default. Some provide options to turn write back cache off --- for example, the user manual for 3ware RAID controller warns users that "there may be instances when you always want the computer to wait for the drive to write all the data to disk before going to its next task ... you must disable the write cache." (page 54-55 of 3ware RAID controller user manual).
See less See more
2
Quote:

Originally Posted by AMD+nVidia View Post
Huh?
Check out the performance differene with a RAID setup with Write-back cache disabled, then enabled.

Grunion's screenshots show CC Cleaner being completed at different times with it disabled and enabled...
See less See more
Quote:

Originally Posted by ericeod View Post
Check out the performance differene with a RAID setup with Write-back cache disabled, then enabled.

Grunion's screenshots show CC Cleaner being completed at different times with it disabled and enabled...
It says 0 removed though...
See less See more
Quote:

Originally Posted by AMD+nVidia View Post
It says 0 removed though...
But it still ran a scan. Look at the time for competion.
See less See more
Quote:

Originally Posted by ericeod View Post
But it still ran a scan. Look at the time for competion.
So it scanned faster for nothing?

Sorry, just seems pointless to me, can you post a SS with it removing stuff?
See less See more
Quote:

Originally Posted by AMD+nVidia View Post
So it scanned faster for nothing?

Sorry, just seems pointless to me, can you post a SS with it removing stuff?
thats not the point... it scans the entire drive in much less time
See less See more
Quote:

Originally Posted by Shadow_UGZ View Post
Nice. Remember though enabling write back cache increases chances of data loss since some data is temporarily cached in the CPU L1 cache. So during a power loss or forced shutdown of any kind you can corrupt files. I also don't think it helps that you have a RAID0 with that enabled.
Write-back caching has nothing to do with the cpu cache. That is used exclusively by the cpu.

The ICH10R uses a portion of system memory for its cache. This is what the OP activated, and it can make a huge difference to performance. True hardware RAID controllers also often have an onboard cache which can be enabled or disabled, and which is often protected by a battery to prevent problems.

Unless you are running a RAID5 or 6 array, which might hold data in the cache for some time before being written there is little extra risk of data loss when using write-back over what you normally get - HDDs have onboard cache that is enabled by default, and if disabled performance goes down the toilet. There is really no valid reason to run onboard RAID0 and not use write-back - if data integrity is your aim, then you should stick with a more reliable storage method than RAID0 anyway, or at least get a hardware card with cache & BBU and switch off the disk cache.
See less See more
  • Rep+
Reactions: 1
Quote:

Originally Posted by the_beast View Post
Write-back caching has nothing to do with the cpu cache. That is used exclusively by the cpu.

The ICH10R uses a portion of system memory for its cache. This is what the OP activated, and it can make a huge difference to performance. True hardware RAID controllers also often have an onboard cache which can be enabled or disabled, and which is often protected by a battery to prevent problems.

Unless you are running a RAID5 or 6 array, which might hold data in the cache for some time before being written there is little extra risk of data loss when using write-back over what you normally get - HDDs have onboard cache that is enabled by default, and if disabled performance goes down the toilet. There is really no valid reason to run onboard RAID0 and not use write-back - if data integrity is your aim, then you should stick with a more reliable storage method than RAID0 anyway, or at least get a hardware card with cache & BBU and switch off the disk cache.
All of what he said ^^^
See less See more
2
Quote:

Originally Posted by the_beast View Post
Write-back caching has nothing to do with the cpu cache. That is used exclusively by the cpu.

The ICH10R uses a portion of system memory for its cache. This is what the OP activated, and it can make a huge difference to performance. True hardware RAID controllers also often have an onboard cache which can be enabled or disabled, and which is often protected by a battery to prevent problems.

Unless you are running a RAID5 or 6 array, which might hold data in the cache for some time before being written there is little extra risk of data loss when using write-back over what you normally get - HDDs have onboard cache that is enabled by default, and if disabled performance goes down the toilet. There is really no valid reason to run onboard RAID0 and not use write-back - if data integrity is your aim, then you should stick with a more reliable storage method than RAID0 anyway, or at least get a hardware card with cache & BBU and switch off the disk cache.
Interesting. Thanks for clearing some stuff up
See less See more
2
Quote:

Originally Posted by the_beast View Post
Write-back caching has nothing to do with the cpu cache. That is used exclusively by the cpu.

The ICH10R uses a portion of system memory for its cache. This is what the OP activated, and it can make a huge difference to performance. True hardware RAID controllers also often have an onboard cache which can be enabled or disabled, and which is often protected by a battery to prevent problems.

Unless you are running a RAID5 or 6 array, which might hold data in the cache for some time before being written there is little extra risk of data loss when using write-back over what you normally get - HDDs have onboard cache that is enabled by default, and if disabled performance goes down the toilet. There is really no valid reason to run onboard RAID0 and not use write-back - if data integrity is your aim, then you should stick with a more reliable storage method than RAID0 anyway, or at least get a hardware card with cache & BBU and switch off the disk cache.
Intel and NVIDIA onboard RAID controllers disable write-back cache by default.

You can corrupt your OS while BSODing and crashing when write-back cache is enabled.
See less See more
So how do I enable this? I brought that thing up and can't enable it

EDIT: Found it. Boy that's dumb
Quote:

Originally Posted by AMD+nVidia View Post
So how do I enable this? I brought that thing up and can't enable it
Right click on the drive or array, then click on "enable write-back cache". For example, on grunion's ss you would right click on "Rapts" listed just below "Volumes".
See less See more
Quote:

Originally Posted by ericeod View Post
Right click on the drive or array, then click on "enable write-back cache. For example, on grunion's ss you would right click on "Rapts" listed just below "Volumes".
edit
See less See more
3
Quote:

Originally Posted by ericeod View Post
Intel and NVIDIA onboard RAID controllers disable write-back cache by default.

You can corrupt your OS while BSODing and crashing when write-back cache is enabled.
RAID is not the only place you can have caching issues. Unless you disable the Windows write-caching and the cache that all modern disks have onboard you also run this risk. Exactly why Intel and NVidia do not enable the cache by default has always puzzled me - especially since Windows installs with it's caching on by default and you have to make an extra special effort to disable the drive cache. I am not sure if it is even possible to disable the onboard cache in SSDs - I have never tried.

If you leave any of the caches active then a BSOD or sudden power loss can cause corruption. Turning off all the caches drops performance so much you will feel like you just dropped into the 1980s - pretty much what I would assume you are trying to avoid if you are running RAID0. So there is no good reason to run without the cache active on your array.
See less See more
1 - 17 of 17 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top