The information in this article applies to:
SUMMARY
A database system is first and foremost responsible for the accurate storage and retrieval of data, even in the event of unexpected system failures.
Q86903 INF: SQL Server and Caching Disk Controllers Q46091 INF: Using Hard Disk Controller Caching with SQL Server Q230785 INF: SQL Server 7.0 Logging and Data Storage Algorithms Extend Data Reliability MORE INFORMATIONSQL Server 7.0, earlier versions of SQL Server, and many mainstream database products on the market today use the Write-Ahead Logging (WAL) protocol. Write-Ahead Logging (WAL) ProtocolAll versions of SQL Server open the log and data files using the Win32 CreateFile function. The dwFlagsAndAttributes member includes the FILE_FLAG_WRITE_THROUGH option when opened by SQL Server. FILE_FLAG_WRITE_THROUGHMany disk drives (SCSI and IDE) contain onboard caches of 512 KB, 1 MB, or larger. However, the drive caches usually rely on a capacitor and not a battery-backed solution. These caching mechanisms cannot guarantee writes across a power cycle or similar failure point. They only guarantee the completion of the sector write operations. As the drives continue to grow in size, the caches become larger, and they can expose larger amounts of data during a failure. Many vendors provide functional battery-backed caching solutions. These caches can maintain the data in the cache for several days and even allow the caching card to be placed in a second computer. When power is properly restored, the unwritten data is completely flushed before any further data access is allowed. Many of them allow percentage of read versus write cache to be established for optimal performance. Some contain large memory storage areas. In fact, for a very specific segment of the market, some hardware vendors provide high-end battery-backed disk caching systems with 6 GB or more of cache. These can significantly improve database performance. I/O transfers without the use of a cache can be significantly longer due to the mechanical time needed to move the drive heads, spin rates, and other limiting factors. To fully secure your data, you should ensure that all data caching is properly handled. In many situations, this means you must disable the write caching of the disk drive. NOTE: Ensure that any alternate caching mechanism can properly handle multiple types of failure. Microsoft has performed testing on several SCSI and IDE drives using the SQL70IOStress utility. This utility simulates heavy asynchronous read/write activity to a simulated data device and log device. Test performance statistics show the average write operations per second between 50 and 70 for a drive with disabled write caching and an RPM range between 5,200 and 7,200. For additional information and complete details on SQL70IOStress, please see the following article in the Microsoft Knowledge Base: Q231619 INF: SQL70IOStress Utility to Stress Disk SubsystemMany PC manufactures (for example, Compaq, Dell, Gateway, or HP) order the drives with the write cache disabled. However, testing shows that this may not always be the case so you should always test it completely. NOTE: If there is any question as to the caching status of your disk drive, please contact the manufacturer and obtain the proper utility or jumper settings to disable write caching operations. Additional query words: cacheing cach cache
Keywords : |
Last Reviewed: July 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |