Is it a good idea to disable "write caching on the device" in windows 7?

22,584

Keep in mind that writing to disk is slow, so "write caching" buffers data in memory and only persists it to disk after a timeout or after a buffer is full. This is probably giving you a performance boost, don't disable it unless you know what you are doing.

This improves performance since HDD writes happen in chunks anyway. This may be an oversimplification, but imagine your HDD has a block size of 512 bytes, and you are running a dumb program that tries to write 512 bytes ``byte-by-byte''. This approach will take much longer than one that writes 512 bytes at once. Thus your SO buffers the data for you and performs the single write. The caveat is that if there is a power loss before the write actually happens, then you lose your data. That is what that checkbox is warning you about.

You should open your task manager and check in the resource monitor the disk activity. My guess is that your experiencing one of 2 things (or both):

  1. disk is at 100% usage when your system hangs
  2. your system has run out of memory and is swapping, thus increasing your disk activity

Swapping happens when you don't have enough memory and your OS uses a special disk file as temporal memory. If your OS has to start moving blocks of memory to disk to free up space for other blocks constantly (this is called swapping), your system seems to hang because writing and reading from disk is much slower that memory.

If your drive is almost full, you should try to run a disk defragmentation manually. Disk defragmentation may fail if you don't have enough space, keeping a windows disk over 90% is usually a bad idea. You should follow the steps in this awesome answer to free up disk space.

EDIT: OP pointed to me in the comments that I misread the post. The disk is half full, not almost full. The recommendation to run disk defragmentation still applies, but probably won't do much unless Windows is not running it with enough frequency (since Windows 7 runs it from time to time in the background ). Still, performing a disk defrag and getting more space never hurts ;)

Share:
22,584

Related videos on Youtube

aparente001
Author by

aparente001

Pronouns: they, them, their, themselves. Bachelor of Music (Performance), Indiana University Master of Computer Science, University of Wisconsin, Madison ABD in Applied Math I came by my Spanish as a young adult, working in Mexico. I enjoy helping people and giving back what I can on the internet, having been helped many times by kind strangers.

Updated on September 18, 2022

Comments

  • aparente001
    aparente001 almost 2 years

    Is it a good idea to disable "write caching on the device" in windows 7?

    Right now write caching is enabled (which was apparently the default).

    current settings

    I am working on a 90 pound weakling, a small Acer laptop (not a netbook).

    Used space: 220 GB

    Free space: 226 GB

    Of course, I want everything! I want speed and I want security. I recently experienced a speed improvement by switching from firefox to opera but occasionally the laptop gets confused when running browser + thunderbird + MS Word + foxit (pdf viewer) + notepad++, and then I start having to close things (but sometimes the laptop is so confused it doesn't even know how to close things any more and I have to restart).

    Happy to provide additional information, just tell me what else I should add, thanks.

    Note, I found a related question but it concerns the second check box in this dialog box. My question today is about he first check box.

    • Appleoddity
      Appleoddity over 6 years
      It depends on your use case. The description below each option is pretty self explanatory. Which one do you want? Performance or security? Disabling the write cache will slow your computer down massively.
    • aparente001
      aparente001 over 6 years
      @Appleoddity - see updated question
    • Admin
      Admin over 6 years
      Of course, I want everything! Unfortunately you can't have both. Me having a chance with Sharon Stone is infinitely more plausible.
    • aparente001
      aparente001 over 6 years
      @MichaelBay - I was trying to be cute. I have to have some minimal security since sometimes I have to do a hard reboot, and I really don't want to lose the MS Word work I've been doing. Also, if I can get some modest improvement with the speed and the hanging that would be nice. However, now that I've stopped using firefox and chrome and switched to opera, things are already going much, much, much, much, much better.
  • aparente001
    aparente001 over 6 years
    I really appreciate your response. Hardware and operating system matters are a very weak area for me. // I do not understand why you said my drive is almost full. Isn't it only half full?
  • miravalls
    miravalls over 6 years
    @aparente001 woops your right, I misread your post. I've reworded the last part of my answer, but I still think the top part is the reason why you may be experiencing those random system hangs, especially since you point out that they happen when you have a lot of applications open at the same time. How much RAM do you have?
  • aparente001
    aparente001 over 6 years
    I believe it's 16 gb.