Home > Windows Server Tips > Windows Systems and Network Administration > Why disk performance sometimes slows in Windows
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS AND NETWORK ADMINISTRATION

Why disk performance sometimes slows in Windows


Serdar Yegulalp, Contributor
06.22.2006
Rating: -4.10- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Some Windows users have noticed that, after suspending and resuming their computer several times without rebooting, disk performance becomes unusually poor. This happens when the computer's disk controller is listed as an IDE controller in the Device Manager. After a number of suspend/resume cycles, the IDE controller's transfer mode may be reset to a slower mode. This typically starts with the IDE controller falling back to a slower direct memory access (DMA) mode, then eventually to the slowest mode of all, programmed I/O (PIO).

(Note: This usually leads to a good deal of grousing from users about why Windows always runs faster when they first boot it.)

Why does this happen? As it turns out, this behavior has been deliberately programmed into the ATAPI.SYS disk driver in Windows. This driver handles all generic IDE disk functions, including hard drives and CD/DVD drives, and also keeps running counts of any problems that arise with a given drive. If a drive times out (i.e., doesn't respond to commands) or returns a data error more than six times before a reboot, ATAPI.SYS reduces the speed of the device to prevent further errors. This causes the slowdown, and disk performance won't return to normal until the system is rebooted.

XP Service Pack 2 included a fix for this problem, and a hotfix for Windows Server 2003 also addresses it (which is only available for Microsoft Product Support Services; refer to Knowledge Base article 817472). However, the fix isn't enabled by default. To enable it:

  • Open the Registry and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\.
  • Look under this key for a set of subkeys named 0001, 0002 and so on. There will be as many such entries as there are for each separate IDE controller in the system.
  • Within each of these numbered subkeys, add a new DWORD value named ResetErrorCountersOnSuccess and set it to 1.
  • Reboot the computer.

This should cause the computer to reset the error counter for a given device without needing a reboot, and keep it from dropping back to a lower speed unless it's really required.

Note: This behavior usually doesn't manifest after hibernating and resuming (as opposed to suspending and resuming), since hibernating involves powering off the system entirely and thereby resets the driver's error counters. Also, just to reiterate, this problem occurs only when the disk controller is listed as an IDE controller in the Device Manager. If your disks are controlled through something like a SATA RAID device, you won't be subject to this problem.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter, which is devoted to hints, tips, tricks, news and goodies for Windows NT, Windows 2000 and Windows XP users and administrators. He has more than 10 years of Windows experience under his belt, and contributes regularly to SearchWinSystems.com and SearchSQLServer.com.

More information from SearchWinSystems.com


Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Windows System and Network Performance Monitoring
Quick hits: Troubleshooting service account failure, batch job execution
Troubleshooting common Windows service failures
Monitor network bandwidth with CyberGauge
Optimizing NTFS file system performance
For Active Directory performance gains, delegate the _MSDCS DNS zone
Sysinternals TCPView monitors network connections on Windows systems
Create data collector sets through Vista's Performance Monitor
Data collector sets simplify monitoring of Vista performance
Performance monitoring in Windows: An overview
RRAS utility in Windows Server 2003 traces network problems

Windows Systems and Network Administration
Troubleshooting Windows application crashes or hangs
Converting VMware ESX machines to Hyper-V format
Using DFSR for SYSVOL replication in Windows Server 2008
Top 25 Windows PowerShell commands for administrators
Key DFS improvements in Windows Server 2008 R2
Free Windows security tools every admin must have
Group Policy makes strides in Windows Server 2008 R2
Quick tips for troubleshooting NTFS permissions
Common causes of Windows server security vulnerabilities
Cutting the cost of Windows identity and access management

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts