{"id":66,"date":"2007-09-21T18:47:56","date_gmt":"2007-09-21T11:47:56","guid":{"rendered":"http:\/\/tom.ji42.com\/?p=66"},"modified":"2007-09-21T18:47:56","modified_gmt":"2007-09-21T11:47:56","slug":"%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-pio-mode-%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-ultradma","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=66","title":{"rendered":"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 PIO Mode \u0e40\u0e1b\u0e47\u0e19 UltraDMA"},"content":{"rendered":"<h3 class=\"post-title\">\n<p>       <a href=\"http:\/\/digg.com\/hardware\/Little-Known_Tweak_to_Boost_Hard_Drive_Performance%21\">Little-Known Tweak to Boost Hard Drive Performance!<\/a><\/p>\n<\/h3>\n<p>Note:  Be sure to see my <a href=\"http:\/\/neodon.blogspot.com\/2006\/07\/digg-effect-in-depth-analysis.html\">follow-up<\/a> article about the traffic I got for this post from digg.com.<\/p>\n<p>The<br \/>\nspeed at which your hard drive transfers data is very important, right?<br \/>\nEspecially if you need to copy a 20-gigabyte file, like I did. My<br \/>\nlaptop was initially copying the file at 2 MB\/s because it was<br \/>\ntransferring in PIO-only mode, which would have taken almost three<br \/>\nhours. Not only is PIO terribly slow, it consumes lots of CPU power.<br \/>\nWhile copying that 20-gigabyte file, my CPU usage stayed at 100%.<br \/>\nTherefore, I tried to figure out the best way to increase the transfer<br \/>\nrate. I changed the transfer mode to UltraDMA-6, speeding it up by 600%<br \/>\nto 12 MB\/s, and the 20-gigabyte file copied in a little over 30<br \/>\nminutes. Plus, my CPU usage was only about 20-30%.<\/p>\n<p>So, how did<br \/>\nthe drive get lowered from UltraDMA to PIO-only mode in the first<br \/>\nplace? Well, because Windows has a particularly dumb way of handling<br \/>\ntransfer modes for storage devices. After six cumulative (all-time<br \/>\ntotal) errors while reading or writing a storage device, Windows will<br \/>\nautomatically lower its transfer mode. Worse, it never goes back up<br \/>\nunless you reinstall the device. This is bad if you put in a scratched<br \/>\nCD, causing those six-in-a-lifetime errors happen all at once. Even<br \/>\nyour hard drive will experience an occasional hiccup, so eventually its<br \/>\ntransfer rate is not safe either.<\/p>\n<p>However, there is a setting to<br \/>\nforce Windows to only lower the transfer rate after six consecutive (in<br \/>\na row) errors, and then raise it back up when the errors stop.<br \/>\nTherefore, you can keep your drives in UltraDMA-6 mode.<\/p>\n<p>If you<br \/>\nwould like to try changing the transfer mode for your drives, follow<br \/>\nthe instructions below. Going from PIO-only mode to UltraDMA-6 will<br \/>\nshow you the most significant performance boost. However, your results<br \/>\nmay vary. Of course, your drive and motherboard must support<br \/>\nUltraDMA-6, or you won&#8217;t see much of a difference. Be careful while you<br \/>\nare doing this; I am not responsible for any mistakes you make. Please<br \/>\nback up your registry first in case something goes wrong!<br \/><strong><\/strong><br \/><strong>How to Check Current Transfer Mode<\/strong><\/p>\n<ol>\n<li>Open Device Manager<\/li>\n<li>Expand IDE ATA\/ATAPI Controllers<\/li>\n<li>Double click on Primary IDE Controller or Secondary IDE Controller<\/li>\n<li>Go<br \/>\nto the Advanced Settings tab to see the current transfer modes. If you<br \/>\nsee anything besides UltraDMA-6, and especially if you see PIO Mode,<br \/>\nthen follow the steps below.<\/li>\n<\/ol>\n<p><strong>How to Force UltraDMA-6<\/strong><\/p>\n<ol>\n<li>Open up the Registry Editor.<\/li>\n<li>Navigate to the following key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass{4D36E96A-E325-11CE-BFC1-08002BE10318}.<\/li>\n<li>There<br \/>\nare several sub-keys under this one, such as 0000, 0001, etc. You are<br \/>\ninterested in two of them that say Primary IDE Channel and Secondary<br \/>\nIDE Channel.<\/li>\n<li>Make the following changes to both of those keys:<\/li>\n<ol>\n<li>Delete<br \/>\nany attributes named MasterIdDataCheckSum or SlaveIdDataCheckSum. This<br \/>\nresets the tracking for errors that Windows uses to determine when the<br \/>\ntransfer mode should be lowered.<\/li>\n<li>Add an attribute with the name<br \/>\nResetErrorCountersOnSuccess and a DWORD value of 1. This tells Windows<br \/>\nthat it should lower the transfer mode when there are six consecutive<br \/>\nerrors instead of six cumulative errors.<\/li>\n<li>If they exist, set the<br \/>\nfollowing keys to a hexadecimal value of ffffffff (eight F&#8217;s). This<br \/>\nwill change the transfer modes to UltraDMA-6:<\/li>\n<ul>\n<li>MasterDeviceTimingMode<\/li>\n<li>MasterDeviceTimingModeAllowed <\/li>\n<li>SlaveDeviceTimingMode <\/li>\n<li>SlaveDeviceTimingModeAllowed <\/li>\n<li>UserMasterDeviceTimingModeAllowed <\/li>\n<li>UserSlaveDeviceTimingModeAllowed<\/li>\n<\/ul>\n<li>Reboot your computer and check the devices to see if they are set to UltraDMA Mode 6. <\/li>\n<\/ol>\n<\/ol>\n<p>Let me know about your experiences with this tweak.<\/p>\n<p>Don&#8217;t forget to <a href=\"http:\/\/digg.com\/hardware\/Little-Known_Tweak_to_Boost_Hard_Drive_Performance%21\">digg<\/a> this article!<\/p>\n<p>Also see my <a href=\"http:\/\/neodon.blogspot.com\/2006\/07\/digg-effect-in-depth-analysis.html\">follow-up<\/a> article about the traffic I got for this post from digg.com.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Little-Known Tweak to Boost Hard Drive Performance! Note: Be sure to see my follow-up article about the traffic I got for this post from digg.com. The speed at which your hard drive transfers data is very important, right? Especially if you need to copy a 20-gigabyte file, like I did. My laptop was initially copying [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-14","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":0,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}