Enabling DMA

The DMA (Direct memory access), is computer feature that allows hardware subsystems to access system memory independent of the CPU.

There is a way to determine if a system turn on IDE DMA, you can do this by checking the proc entry cat /proc/ide/hda/settings, if using_dma is set to 1, then the DMA support is enabled.

You can do it also, by hdparm -i /dev/hda, the DMA modes line will report the possible IDE access modes the drive supports. For example:
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5

So if you want to enable DMA you can do it by hdparm as :
hdparm -d1 /dev/hda, and this can be added to a start script like rc.local.

Or add an entry as the following to /etc/hdparam.conf in order to be automatically applied at boot.
/dev/hda {
dma = on


Author: Ali MEZGANI

My name is MEZGANI Ali. I was born back in 1978 in Rabat Morocco. My interests are Debian Linux , programming , science and music.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s