Windows 7 Forums


Windows 7: Write-Caching - Enable or Disable


Write-Caching - Enable or Disable

How to Enable or Disable Write-Caching for a Storage Device in Windows 7
Published 18 May 2009
Published by

Featured Tutorial

Online Scanners - Scan Suspicious Files on your PC
Online Scanners - Scan Suspicious Files on your PC

How to Scan Suspicious Files using Online Scanners

Dual Boot - Windows 7 and Linux
Dual Boot - Windows 7 and Linux

How to Correctly Setup a Dual Boot with Windows 7 and LinuxMint13

SF Diagnostic Tool - Using for Troubleshooting
SF Diagnostic Tool - Using for Troubleshooting

Using SF Diagnostic Tool for Troubleshooting

Microsoft Account Display Name - Change
Microsoft Account Display Name - Change

How to Change your Microsoft Account Display Name

Microsoft Account "Two-step Verification" - Turn On or Off
Microsoft Account "Two-step Verification" - Turn On or Off

How to Turn "Two-step Verification" On or Off for your Microsoft Account

Bootmgr - Move to C:\ with EasyBCD
Bootmgr - Move to C:\ with EasyBCD

How to Move Bootmgr to C:\ with EasyBCD
How to Enable or Disable Write-Caching for a Storage Device in Windows 7

information   Information
Write caching in a connected storage device refers to the use of high-speed volatile memory to collect write commands sent to data storage devices and cache them until the slower storage media (either physical hard disks or low cost flash memory) can accommodate them. Most devices that use write caching require that power be supplied continuously.


This will show you how to enable write caching to have better performace for a storage device, or disable write caching for quick removal of a storage device without having to use Safely Remove Hardware.
Tip   Tip
If high data transfer performance is your main concern, you should enable both of these settings in OPTION TWO below:
  • In the Removal Policy section, select the Better Performance option.
  • In the Write-caching policy section, select Enable write caching on the device (if the system hardware and storage device support these features).
warning   Warning
You must be logged into a administrator account to be able to do this tutorial.





OPTION ONE
Disable Write Caching for Quick Removal


Note   Note
This option is usually the best choice for storage devices that you are likely to remove from the system frequently, such as USB flash drives, SD, MMC, Compact Flash, or similar memory cards, and other similar externally attached storage devices.

When you select the Quick Removal option, Windows 7 manages commands sent to the device using a method called write-through caching. In write-through caching, the device operates on write commands as if there were no cache. The cache may still provide a small performance benefit, but the emphasis is on treating the data as safely as possible by getting the commands to the storage device. The main benefit is that you can remove the storage device from the system quickly without risking data loss. For example, if a flash drive were to be accidentally pulled out of its port, the data being written to it is much less likely to be lost.
1. Open the Control Panel (icons view), and click on the Device Manager icon.

2. In Device Manger, double click on Disk drives to expand it, then double click on the listed storage device that you want to disable write caching for. (See screenshot below)
Write-Caching - Enable or Disable-drive1.jpg
3. Click on the Polices tab. Under the upper Removal policy section, select (dot) Quick removal, or check the Turn off Windows write-cache buffer flushing on the device box, and click on OK. (See screenshot below)
Write-Caching - Enable or Disable-drive4a.jpgWrite-Caching - Enable or Disable-drive2.jpgWrite-Caching - Enable or Disable-drive3.jpg
4. Click on Yes to restart the computer to apply. (See screenshot below)
WARNING: This will restart the computer immediately. You should save and close anything else that you are working on first.
Write-Caching - Enable or Disable-drive4.jpg



OPTION TWO
Enable Write Caching for Better Performance


Note   Note
This option is usually the best choice for storage devices that must provide the highest possible performance and that you intend to not remove from the system frequently, such as internal hard disk drives. If you choose this option and the device is disconnected from the system before all of the data is written to it (such as if you remove a USB flash drive), you could lose data. When using this option for a storage device (ex: USB flash drive), you must use Safely Remove Hardware to disconnect the device safely to prevent possible data loss.

When you select the Better Performance option, Windows 7 uses a method known as write-back caching. In this method, the storage device itself is allowed to determine whether using the high-speed cache will save time completing the write commands. If it will, the device signals to the computer that the data has been stored successfully even though the data may not actually be present in the storage device yet (such as the hard disk or flash memory). This method markedly increases the throughput of storage operations, which are often a major bottleneck for system performance overall. However, if the power supplied to the device (ex: external hard drive) fails for any reason, any data still in the cache (that the computer system believes is safely stored) could be lost.

By default, Windows 7 uses cache flushing. This means that the system will periodically instruct the storage device to write all data waiting in the cache to the storage device. When you select Turn off Windows write-cache buffer flushing on the device, you turn can turn off these periodic commands to transfer the data. Not all devices support all of these features.
1. Open the Control Panel (icons view), and click on the Device Manager icon.

2. In Device Manger, double click on Disk drives to expand it, then double click on the listed storage device that you want to enable write caching for. (See screenshot below)
Click image for larger version

Name:	Drive1.jpg
Views:	2752
Size:	141.1 KB
ID:	11192
3. Click on the Polices tab. Under the upper Removal policy section, select (dot) Better performance. (See screenshots below)
NOTE: By default, Enable write caching on the device is also checked. If not, then check it as well.
Write-Caching - Enable or Disable-drive3a.jpgWrite-Caching - Enable or Disable-drive1a.jpg
4. To Turn Off Windows Write-cache Buffer Flushing on the Device
WARNING: To Prevent data loss. Do not check this option unless the storage device has a separate power supply that allows the device to flush it's buffer in case of a power failure.
A) Select (check) the Turn off Windows write-cache buffer flushing on the device box. (See screenshots above)
5. Click on OK. (See screenshot below step 3)

6. Click on Yes to restart the computer to apply. (See screenshot below)
WARNING: This will restart the computer immediately. You should save and close anything else that you are working on first.
Click image for larger version

Name:	Drive4.jpg
Views:	1203
Size:	47.8 KB
ID:	11196
That's it,
Shawn








Need more help? Try searching our extensive help and support site.
Loading
17 Jun 2009   #1
swears

Windows 7
 
 

What happens if the "policies' tab does not show up?

I am running a sans-digital TR5M external box. All hard drives show up in device manager, but none have the policies tab.

My System SpecsSystem Spec

17 Jun 2009   #2
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Swears,

It looks like it may not support being changed with that type of connection.
My System SpecsSystem Spec
13 Jul 2009   #3
nate42nd

Windows 7 Professional x64
The Wild West
 
 

I have heard some people taking about disabling this for SSDs since they don't have a cache. Does anybody know if this would be a good idea - or would it even make a difference?
My System SpecsSystem Spec
.


13 Jul 2009   #4
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hi Nate,

You can give it a try with the write cache enabled and disabled to see how it runs for you, but it was faster with my SSD with it still enabled.
My System SpecsSystem Spec
13 Jul 2009   #5
nate42nd

Windows 7 Professional x64
The Wild West
 
 

Okay, thanks Brink. I think I'll just leave it. The more I read about these things the more I want to keep needless writing off of them. I just want to make it last a long time at these speeds. It's very, very nice to have an SSD with 8GB of 1066 RAM. (looks like you have the same) Thanks again for answering.
My System SpecsSystem Spec
13 Jul 2009   #6
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

You're welcome Nate. I think I'll get working on a optimizing SSD tutorial next.
My System SpecsSystem Spec
13 Jul 2009   #7
nate42nd

Windows 7 Professional x64
The Wild West
 
 

Oh, that would be my dream. I sure wish there was something out there. They say Windows 7 treats SSDs different but I have seem no evidence of this. I hope the final release does.
My System SpecsSystem Spec
13 Jul 2009   #8
swarfega

Windows 7 Professional 64-bit
 
 

Mine looks like this:

Write-Caching - Enable or Disable-writecache.jpg

Looks like half the page is missing.
My System SpecsSystem Spec
13 Jul 2009   #9
nate42nd

Windows 7 Professional x64
The Wild West
 
 

Mine too Swarfega. I guess I will leave it. I am just concerned about needless write activity on my SSD that I really don't need. I read on some forums that this is needless (on SSDs) since they have no cache. Some have a buffer though. I am confused. I hope I the 2.5 million hour estimated life span is right on mine.
My System SpecsSystem Spec
Comment

 Write-Caching - Enable or Disable problems?



Tutorial Tools



Similar help and support threads for: Write-Caching - Enable or Disable
Windows 7 Tutorial Category
Solved Write-caching Performance & Maintenance
Write caching or ??? General Discussion
Write Caching Drivers
[7057] Dell Optiplex 755 - Unable to enable write caching Performance & Maintenance
Write caching Performance & Maintenance


All times are GMT -5. The time now is 03:31 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32