Public bug reported: Hi,
Hardware : IBM T40p, HDD Samsung HM120JC 120Gb PATA (not the original drive of the laptop, I bought this new one ; I didn't try with original drive as I don't have it any more) Sofware : Ubuntu Edgy, not modified kernel 2.6.17-6.18 686. Problem is *exactly* the same on up-to-date Dapper (actually I switched to edgy to see if this could solve my issue, with no luck). Problem 1 : DMA (nor io32, nor multicount, nor lookahead) is never activated at boot, this makes my system very very slow and unresponsive. I switched to cfq elevator as pointed in a 2.6.15 bug somewhere, i probably gained a little, but I can't notice it. Workaround 1 : i wrote a hdparm.sh script which does : hdparm -c 1 -d 1 -A 1 -a 1024 -m 16 -u 1 -X 69 /dev/hda and everything is fine when I launch this script manually after my session is open (but opening my session takes ages without DMA, and the mouse cursor can't even move...). Why this script : Problem 2 : configuring /etc/hdparm.conf with the same values and activating /etc/init.d/hdparm, I can't make the system apply this settings during the boot process. /etc/init.d/hdparm, linked to /etc/rc[S2].d/ at various times (i tried S10, S30, S50, S99...) doesn't seem to apply any parameter... I says it does (i put some log_begin_msg to verify) Wherever I put it, i *must* run the script manually after my GNOME session is open, else DMA optimization isn't applied to my disk. After applying my script, everithing is OK (disk works correctly). I experienced some freezes under Dapper but I don't think they are related. SMART tests on the disk say it is OK (did a short and a long test with smartctl, no errors reported). So this could be a bug, but i would like any advice that could make me understand why these settings can't be applied during boot process (even aren't they applied if I put the script in my System->Preferences->Session->Programs at Startup)... I will attach dmesg, lspci -vv and my script shortly. ** Affects: linux-source-2.6.17 (Ubuntu) Importance: Untriaged Status: Unconfirmed -- PATA disk, DMA is never activated at boot, very slow system https://launchpad.net/bugs/56121 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs