Turn on Direct Memory Access (DMA) for ATAPI devices to lower CPU usage

Many new hard drives come with ability to use DMA (Direct Memory Access), making the input/output of the drive run at a higher speed. This will lower the CPU usage of the system when writing to the drive from 90 percent to less than 30 percent.


To verify that DMA is enabled on your machine, use your favorite Registry editor to edit the Registry key.

HKEY_LOCAL_MACHINEHARDWAREDEVICEMAPScsiScsiPortX
where X is 0 for the primary channel and 1 for the secondary channel.

If the setting of the DMAEnabled value is 1, then DMA is turned on.

ATAPI can also turn on DMA on a channel-by-channel basis, provided the channels are capable of using DMA. To turn DMA on for a channel, apply the following registry change.

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices
atapiParametersDeviceX
"DriverParameter" = "DMADetectionLevel = 0x1."

To disable DMA, set the string to
"DMADetectionLevel = 0x0."

NOTE: Please remember that editing your registry can be risky, so always have a verified backup before you begin.

This was first published in May 2001

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    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.