DMA works but not by default (despite "use DMA by default" kernel)
I find this very strange:
Recently I realized that I could make my Computer faster by enabling DMA. So I figured out which modules I needed and recompiled the kernel. Now I can use hdparm with -d1 /dev/hda. That works. But it never does so at boot, I always have to do this manually. This is the part of config that seems to be the important one here: Code:
# Stefan |
add your hdparm command to the end of your last bootscript, and figure it out later.
as far as the kernel config, it's the one called use pci dma by default when available. |
Hmm.. why not.
Which is my last bootscript? :D :confused: You mean the /etc/init.d/whatever scripts (the debian way)? |
it's something with local in the name probably.
mine is /etc/rc.d/rc.local debian is different, and i can't remember it. find /etc -name "*local*" -print may find it for you. also, this will find references to hdparm in /etc /etc# grep -r hdparm * |
we both keep adding stuff to our posts about when the other posts.
|
There is a debian tool "update-rc.d" that lets you add symlinks in the rc.* directories to the actual bootscripts.
Code:
update-rc.d hdparm defaults Maybe I should just find the right way of configuring this file (/etc/hdparm): Code:
## This is the default configuration for hdparm for Debian. It is a stefan |
since it says that whole file is parsed, i would move it to "hdparm.old" and make a new hdparm with just
hdparm -q -m16 -q -W0 -q -d1 /dev/hda in it. |
Solved
I have found the problem: hdparm does it's thing before the ide and other necessary modules are loaded.
There is a debian specific hdparm readme (/usr/share/doc/hdparm/README.Debian) that helps. It says to either compile these drivers into the kernel or create a second link to the hdparm script that gets executed later during the boot process. I recompiled the kernel and it works. Great! Stefan |
All times are GMT -5. The time now is 08:54 PM. |