Hi, I was experiencing slow disk access, and found that even though I had hdparm installed, I still needed to manually adjust the settings for the IDE harddisks so that they work in DMA and EIDE modes. So I took a look at how RedHat was doing it and whipped up a rc script to initalise the IDE parameters using hdparm. They're attached here. I wonder if it would be a good idea to include these in to the hdparm ebuild. Comments appreciated :) Cheers, Alastair
Created attachment 2886 [details] /etc/init.d/hdparm checks for /etc/hdparm.conf, and runs the same command on available IDE drives from hda to hdh.
Created attachment 2887 [details] /etc/hdparm.conf could possibly make the defaults less ambitious, and possibly even cater for different settings for individual drives.
suggestion: change it from /etc/hdparm.conf to /etc/conf.d/hdparm this is because it is custom for /etc/init.d/ scripts that have config files to place them in /etc/conf.d/ with very similar names to the script
Created attachment 2904 [details] /etc/init.d/hdparm What about this one .. lot simpler to configure (just set HDSETTINGS in /etc/conf.d/hdparm).
Created attachment 2905 [details] /etc/conf.d/hdparm
i like it, looks good/works well for me nice job
I think Martin's is pretty nice and simple. But I thought that making the conf file a little more verbose and with explaination of each option is a little more helpful when configuring hdparm settings. Nevertheless, I conceed that my script was just a quick hack to get something working :) On a side note, after fiddling about with hdparm, I found that directly modifying kernel parameters via procfs being much easier, eg: echo "using_dma:1" > /proc/ide/hdc/settings or echo "io_32bit:1" > /proc/ide/hdc/settings Worth a thought :)