{"id":4643,"date":"2013-04-16T07:00:00","date_gmt":"2013-04-16T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2013\/04\/16\/dangerous-setting-is-dangerous-this-is-why-you-shouldnt-turn-off-write-cache-buffer-flushing\/"},"modified":"2024-06-13T15:35:16","modified_gmt":"2024-06-13T22:35:16","slug":"20130416-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20130416-00\/?p=4643","title":{"rendered":"Dangerous setting is dangerous: This is why you shouldn&#8217;t turn off write cache buffer flushing"},"content":{"rendered":"<p>Okay, one more time about the <i>Write-caching policy<\/i> setting.<\/p>\n<p>This dialog box takes various forms depending on what version of Windows you are using.<\/p>\n<p>Windows XP:<\/p>\n<div style=\"background-color: #f7f7f5; color: black; width: 400px; padding: 1em; border: solid 1px black;\">\n<table style=\"font-family: MS Sans Serif, sans-serif; font-size: 8pt;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"background-color: #f7f7f5; color: black;\">\n<td style=\"padding-right: 6px; font-size: 150%;\">\u2610<\/td>\n<td>Enable write caching on the disk<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>This setting enables write caching in Windows to improve disk performance, but a power outage or equipment failure might result in data loss or corruption.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Windows Server 2003:<\/p>\n<div style=\"background-color: #d2ceca; color: black; width: 400px; padding: 1em; border: solid 1px black;\">\n<table style=\"font-family: MS Sans Serif, sans-serif; font-size: 8pt;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"background-color: #d2ceca; color: black;\">\n<td style=\"padding-right: 6px; font-size: 150%;\">\u2610<\/td>\n<td>Enable write caching on the disk<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>Recommended only for disks with a backup power supply. This setting further improves disk performance, but it also increases the risk of data loss if the disk loses power.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Windows Vista:<\/p>\n<div style=\"background-color: #ffffff; color: black; width: 400px; padding: 1em; border: solid 1px black;\">\n<table style=\"font-family: MS Sans Serif, sans-serif; font-size: 8pt;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"background-color: #ffffff; color: black;\">\n<td style=\"padding-right: 6px; font-size: 150%;\">\u2610<\/td>\n<td>Enable advanced performance<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>Recommended only for disks with a backup power supply. This setting further improves disk performance, but it also increases the risk of data loss if the disk loses power.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Windows 7 and 8:<\/p>\n<div style=\"background-color: #ffffff; color: black; width: 400px; padding: 1em; border: solid 1px black;\">\n<table style=\"font-family: MS Sans Serif, sans-serif; font-size: 8pt;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"background-color: #ffffff; color: black;\">\n<td style=\"padding-right: 6px; font-size: 150%;\">\u2610<\/td>\n<td>Turn off Windows write-cache buffer flushing on the device<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>To prevent data loss, do not select this check box unless the device has a separate power supply that allows the device to flush its buffer in case of power failure.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Notice that the warning text gets more and more scary each time it is updated. It starts out just by saying, &#8220;If you lose power, you might have data loss or corruption.&#8221; Then it adds a recommendation, &#8220;Recommended only for disks with a backup power supply.&#8221; And then it comes with a flat-out directive: &#8220;Do not select this check box unless the device <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2010\/09\/09\/10059575.aspx\"> has a separate power supply<\/a>.&#8221;<\/p>\n<p>The scary warning is there for a reason: If you check the box when your hardware does not satisfy the criteria, <i>you risk data corruption<\/i>.<\/p>\n<p>But it seems that even with the sternest warning available, people will still go in and check the box even though their device does not satisfy the criteria, and the dialog box says right there <i>do not select this check box<\/i>.<\/p>\n<p>And then they complain, &#8220;I checked this box, and my hard drive was corrupted! You need to <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2013\/02\/28\/10397976.aspx#10398441\"> investigate the issue and release a fix for it<\/a>.&#8221;<\/p>\n<p><a href=\"http:\/\/knowyourmeme.com\/memes\/x-y-is-x-redundant-adjectives-are-redundant\"> <i>Dangerous setting is dangerous<\/i><\/a>.<\/p>\n<p>At this point, I think the only valid &#8220;fix&#8221; for this feature would be to remove it entirely. <a href=\"http:\/\/knowyourmeme.com\/memes\/this-is-why-we-cant-have-nice-things\"> This is why we can&#8217;t have dangerous things<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ignoring the warnings and then complaining that the bad thing that happens happened.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-4643","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Ignoring the warnings and then complaining that the bad thing that happens happened.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/4643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=4643"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/4643\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=4643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=4643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=4643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}