[Window Manager]
November 23, 1998

How to use Windows' DMA check box to speed up your drives

My past two columns have described problems that a few Windows 95/Windows 98 and Windows NT users have been having with hard drives that use Direct Memory Access (DMA) or the faster Ultra DMA (UDMA) standard. If you're experiencing these problems, those two columns provide work-arounds. 

I hope my columns, however, haven't scared you away from using DMA if your system is capable of it. This technique can improve your hard disk performance. 

To see whether your system is capable of hard disk DMA/UDMA, run the System Control Panel and click the Device Manager tab. Double-click the Disk Drives icon, then double-click a disk drive and click the Settings tab. If you see a DMA check box, drivers are present that are DMA-capable. If not, you do not have such drivers. 

Windows 98 and Windows 95B automatically install DMA-capable drivers if they detect suitable hardware. It is also possible to install such drivers under Windows 95, Win 95A, and NT (using Service Pack 3). 

If you see a DMA check box and it is not checked, you may be able to improve your hard disk performance by turning on this capability. Before you do this, however, you should do two other things. 

  • Make an emergency boot diskette and verify that it works to start up your system, in case enabling DMA causes some problem. (If this happens, start Windows in Safe Mode, turn the DMA check box off, then reboot.)
  • Get a utility that reports on hard drive performance, including DMA performance, so you can see the difference you get. A good utility is HD Tach, a program available at tcdlabs.simplenet.com/hdtach.htm. The trial version of HD Tach tests your drives' read performance, and the registered version, priced at $49.95, also tests write performance.
I used HD Tach to test two hard drives with and without DMA enabled. One drive improved its read burst speed from 8.4MBps to 11.9MBps. The other improved from 8.3MBps to 11.2MBps. More important, the CPU utilization dropped from 83 percent to 29 percent on one drive and from 61 percent to 20 percent on the other. Lowering the CPU utilization of a drive allows a computer to process more data or serve more users at the same time as disk files are being transferred. 

I asked Microsoft for a definitive answer on whether or not Windows 98 automatically enables DMA. It turns out that Windows' DMA drivers, when installed for the first time, do try to enable DMA but may disable it if your system fails certain tests. Specifically, the drivers (1) query the motherboard chip set, (2) query the drive itself, and then (3) test a short pattern of disk reads and writes to see if they are reliable at DMA speeds. 

Microsoft company representative David Alles put it this way: "On a machine that is upgraded to Windows 98, we retain the DMA settings (or lack thereof) of the previous state. If it was Windows 95 Gold, DMA will be off. But if a user had an OSR2 [Windows 95B] machine and had turned on DMA, it will remain on in Windows 98." 

"When users check the DMA box in Device Manager, sometimes it appears unchecked after the system reboots. In such a case, we have determined that at least one of the three criteria mentioned above has not been met, so the system is not suitable for DMA," Alles continues. 

To test whether a drive supports DMA, run \Tools\Reskit\Help\Rk98book.chm on the Windows 98 CD-ROM. Search on "PIO mode 4" and read the resulting topic. 




Brian Livingston's latest book is Windows 98 Secrets (IDG Books). Send tips to brian_livingston@infoworld.com. He regrets that he cannot answer individual questions.
Missed a column? Go back for more.



Copyright © 1998 InfoWorld Media Group Inc. 




[Window Manager]
November 16, 1998

You can fix problems with Ultra DMA drives in Windows 95/98, NT

Last week, I described problems that some Windows users are having with so-called Ultra Direct Memory Access (UDMA) hard drives -- drives that can theoretically transfer files as fast as 33.3MBps, as opposed to 16.6MBps under the original IDE standard. 

This week, I'll tell you how such symptoms can show up under Windows and what you can do about them. 

A great deal of research has been done on this topic by Mark Stapleton, a mechanical engineer at Georgia Tech Research Institute. I'm grateful to him for sharing his findings. 

Let me start by saying that most UDMA drives, perhaps the great majority, work fine under Windows. But there seems to be a discernable minority of UDMA drives that have been installed in systems that aren't quite capable of supporting the maximum speeds that UDMA can produce. Problems can be caused by electromagnetic interference on the system bus; poor flow control in hardware or firmware; or inferior circuitry on the drive itself. In such cases, a drive can "time out," slowing the system and/or corrupting data files. 

The problem is affecting more and more people, because the installation of Windows 98 automatically installs UDMA drivers on systems with such drives. You can also install UDMA drivers under Windows 95 and Windows NT (Service Pack 3). And PC manufacturers may configure their systems so they ship with high-speed UDMA enabled, not realizing that this causes intermittent failures. 

If you have a UDMA drive in a system that isn't quite up to speed (so to speak), you may experience one or more of the following difficulties when upgrading to Windows 98. 

  • Win98 fails during the Plug and Play process and won't complete the installation.
  • Alternatively, after a successful installation, Win98 will start only in Safe Mode.
  • When transferring files, a drive appears to slow way down, then speed up again. This may also pause or hang software or your keyboard and mouse.
  • You start missing perfectly good files, or you lose the capability to access your hard drive at all.
  • Win98 shutdown takes much, much longer than normal.
Of course, the above symptoms can be caused by many other problems. One of the frustrating things about UDMA difficulties is that they may be intermittent and hard to diagnose. 

To see if you have DMA or UDMA drives installed, click Start, Settings, Control Panel. Click the Device Manager tab, then click the plus sign to the left of "Hard Disk Controllers" to expand this branch. If you see an entry such as "Intel 82371AB/EB PCI Bus-Master IDE Controller," you have a UDMA-capable system. The entry "Standard Dual PCI IDE Controller" means you do not have bus-mastering drivers loaded. 

To see if you have your system configured for DMA and UDMA, click the plus sign to the left of "Disk Drives," then double-click a drive icon, then click the Settings tab. If a "DMA" check box is present and it is checked, your system is configured to use DMA and UDMA transfers. If you have been having the problems listed above, you can try unchecking this box and restarting Windows to see if this helps. 

For technical details, see a lengthy e-mail exchange between users of UDMA drives. 

I'll have some good news about DMA and UDMA in next week's column. 




Brian Livingston's latest book is Windows 98 Secrets (IDG Books). Send tips to brian_livingston@infoworld.com. He regrets that he cannot answer individual questions.
Missed a column? Go back for more.



Copyright © 1998 InfoWorld Media Group Inc. 


[Window Manager]

November 9, 1998

Ultra DMA drives may have difficulties with Windows 95/98, NT

Progress marches on, and progress brings us new technologies. One technology that keeps changing is hard drives. As PCs have gotten faster, hard drive controller manufacturers have tried to keep up by supporting ever-newer standards. 
  • In the old days, when the IBM PC/AT sported a 16-bit bus, the 16-bit ATA standard was developed for hard drive controllers. This standard is better known today as IDE, or integrated drive electronics.
  • A new standard, ATA-2, also known as Fast ATA or Enhanced IDE, introduced better Direct Memory Access (DMA) modes. These modes speed up disk reads and writes.
  • The latest standard is variously called Ultra ATA, ATA-33, DMA-33, Ultra DMA, or simply UDMA. UDMA theoretically can support a maximum "burst mode" transfer of 33.3MBps. This is an improvement vs. the 16.6MBps maximum rate for DMA transfers using the original IDE standard, although you won't actually hit these ideal speeds in real-life use. For more information on these standards, see www.pcguide.com/ref/hdd/if/ide/std-c.html.
If your system's BIOS, chip set, and hard disk support UDMA, the installation of Windows 98 automatically loads driver support and enables bus-mastering DMA transfers. You can also install such drivers for Windows 95 and Windows NT, and manufacturers of such systems often do this for you. 

I'm hearing of problems with some systems' reliably handling the higher-speed transfers, however. Mark Stapleton, a mechanical engineer at Georgia Tech Research Institute, has done extensive research and found that the higher speeds can cause a variety of difficulties in some cases. 

  • Seagate Technology has prepared a fix for three early production versions of its Medalist Pro 7200 rpm hard drives. If a drive controller has been configured for UDMA support with these drives in Windows 95 and NT and then Windows 98 is installed, the Windows 98 installation crashes. This also occurs with some other manufacturers' drives, and Seagate is to be commended for publicly posting on its Web site the exact model numbers affected and offering a fix. See www.seagate.com/support/disc/faq/medpro_dma.shtml, or call Seagate technical support at (405) 936-1200.
  • Microsoft reports that a Windows 95 driver can cause PCs to crash while accessing a hard drive using UDMA if a hardware error is encountered. The driver may also read or write incorrect data when a hard drive is recovering from a "suspend" state. Both of these problems and others can be corrected with an updated driver, which is available at support.microsoft.com/support/kb/articles/q171/3/53.asp.
  • By far the most frustrating problems, according to Stapleton, are intermittent crashes or data errors caused by UDMA transfers at speeds that are not quite reliable. He and others point to the old IDE cable that many PC manufacturers still use to connect drives to the motherboard. The cable is not shielded against electrical interference, which can be a problem at high transfer rates. Circuit Assembly sells a special ATAS cable for a price of $12.99 plus charges for shipping that is well grounded and may solve this kind of trouble. See www.ultracable.com.
I'll add more next week on resolving other UDMA difficulties. My thanks to my co-author of Windows 98 Secrets, Davis Straub, for suggesting I investigate this topic. 



Brian Livingston's latest book is Windows 98 Secrets (IDG Books). Send tips to brian_livingston@infoworld.com. He regrets that he cannot answer individual questions.
Missed a column? Go back for more.



Copyright © 1998 InfoWorld Media Group Inc.