Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Cache Writing - Enable or not to enable?

31 Oct 2009   #1
Edster

Windows 7 Professional 32 Bit
 
 
Cache Writing - Enable or not to enable?

Hello,

Could anyone tell me the advantages and disadvantages of disabling cache writing on the priming HDD? Thanks in advance


My System SpecsSystem Spec
.

31 Oct 2009   #2
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

I think the default setting is usually to enable it?

I have a dim understand of it from memory. As I recall, enabling it provides slightly faster performance but has a slight risk of data corruption in cases of a bad shutdown--like from a power outage. It can also have consequences when using RAID.

The geekiest thing to do is to enable it, but use a UPS (uninterruptible power supply) to eliminate the risk from power failure.

Me? I've always left it enabled and haven't knowingly suffered any negative consequences.
My System SpecsSystem Spec
31 Oct 2009   #3
Edster

Windows 7 Professional 32 Bit
 
 

Thanks for your help, I guess the best thing to do then is to keep it enabled. I had read somewhere though, that it helped performance?
My System SpecsSystem Spec
.


31 Oct 2009   #4
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

Yeah, it is supposed to help performance. How much, I don't know.

If you disable it, caching is not used, and you don't take the risk of losing or corrupting data on a bad shutdown. I think that means that if disabled. all write operations go directly to the disk (not to the cache). Since they go to the disk directly, you don't have the risk of corruption. If enabled, and you had a bad shutdown, the data sitting in the cache has not yet been written to disk and could be lost. That's my feeble attempt at understanding.

You could easily download HD Tune and do some tests with it off and on to see how much difference it makes. Matter of fact, I might try that myself.
My System SpecsSystem Spec
31 Oct 2009   #5
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

Here ya go. These results are for my boot drive, a WD Caviar SE16 WD6400AAKS 640GB HD.

The first graph is cache writing enabled. The second graph is cache writing disabled.

Note that the transfer rates are negatively affected when caching is off--more of the blue line is in lower territory. The maximum is the same, but the minimums and averages are different. The burst rate and access times are unaffected.

This is the result of one test only, but should be representative, at least of my drive. A hard drive engineer may well laugh at these tests and maybe correctly so--I don't know how much reliance to put on these results as they apply to the real world.


Attached Images
  
My System SpecsSystem Spec
31 Oct 2009   #6
Edster

Windows 7 Professional 32 Bit
 
 

That is extremely helpful and I thank you for your efforts
I might have a play around with it now!
My System SpecsSystem Spec
31 Oct 2009   #7
Edster

Windows 7 Professional 32 Bit
 
 

I can see your point now. On mine, the enabled writing cache seems to be the fastest on average, I'll keep that enabled from now on.


Attached Images
  
My System SpecsSystem Spec
31 Oct 2009   #8
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

Looks like caching helps you very little on your drive. Maybe because the drive is relatively slow by itself and has only a small cache?? You might be a candidate for leaving it off--you might never know the difference and wouldn't have any corruption risk?
My System SpecsSystem Spec
31 Oct 2009   #9
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 

Hi there

In (I hope) plain English

Caching come into its own when you've been using an application for a while (or when the system has learned how you usually use your computer).

What it does is saves often used data into a specially fast memory area (not in RAM but in the disk controllers OWN memory area) so that if you need to access this data the disk contoller can supply it straight from the cache instead of having to create a set of I/O instructions to find the correct sector on Disk, position the drive and do the data transfer - both READ amd WRITE.

On a new computer the system will need to do some form of learning before the cache is effectively used.

Some better algorithms even do a "Data Pre-fetch" which reads data before you actually need it - based on your previous usage of the computer --it does this whilst the computer is idle so it won't degrade the performance at all.

Successful caching algorithms (very tricky to write) can ENORMOUSLY speed up a computer - especially when data bases are being accessed with similar queries.

You'll also find that a disk with a larger cache costs quite a bit more than a similar capacity drive with a smaller or no cache.

(This is why you should also "Quiesce" a USB external drive before unplugging it -- the system will need to write any remaining / pending I/O requests from the cache back to the drive).

Cheers
jimbo
My System SpecsSystem Spec
31 Oct 2009   #10
Edster

Windows 7 Professional 32 Bit
 
 

So in the long term, it is better to enable caching?
My System SpecsSystem Spec
Reply

 Cache Writing - Enable or not to enable?




Thread Tools





Similar help and support threads
Thread Forum
Thumbnail Cache - Enable or Disable
How to Enable or Disable the Thumbnail Cache in Windows By default Windows stores the images for thumbnail previews in cache memory so that it can redisplay the images quickly each time you reopen a folder in Windows Explorer. However, with thumbnail caching enabled by default, this may pose...
Tutorials
should i enable Large System Cache
shoulld i enable Large System Cache or disable it which is better
General Discussion
Enable Turbo Cache
I have Geforce 8400 gs DDR2 and it supports turbo cache. and i dont know how to do this. Any Answer. please reply with possible answer
Graphic Cards
How can i Enable UAC
Dear Friends I have a user ,try to delete it .So I enable administrator and login with it and remove last windows user and create new user with password ,also I remove administrator password and disable it .After restart my windows login with new user ,but I have a big problem :in running some...
System Security
How do I enable my DNS Cache and my DHCP? I am having internet issues.
I have been looking everywhere to no avail. None of the things, hotfixes, registry editing, flushing or reseting of my DNS Cache has fixed this issue I have been having for the past week. I have been able to connect to the internet but it is so much slower than usual. I have already contacted my...
Network & Sharing
How to enable a-gps
I have an Acer Iconia W500 and it has a-gps but I don't know how to enable it.Thanks in advance!
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 09:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App