Good to Know Database

HDD tuning

HDD is too slow...

vi /etc/sysconfig/harddisks

Modify this file is the simplest way to tune the hdd (RedHat).

/sbin/hdparm /dev/hda

Reports general HDD informations e.g. "using_dma".

/sbin/hdparm -i /dev/hda

Reports detailed HDD informations.

/sbin/hdparm -i /dev/hda ¦ grep ult

/sbin/hdparm -m?? /dev/hda

?? is the number of MaxMultiSect, which was reported with the previous command.

hdparm -i /dev/had ¦ grep dma

DMA must be supported by the kernel (ATA/IDE.. section in "make menuconfig") Check which dma-mode supports your hdd in HDD Info and look where the astrisk by dma is.

/sbin/hdparm -d1 /dev/hda

To enable DMA.

/sbin/hdparm -d1 -X34 /dev/hda

To enable multiword DMA mode 2.

/sbin/hdparm -d1 -X66 /dev/hda

To enable Ultra DMA mode 2.
33 multiword DMA mode1
68 UDMA4
69 UDMA5

/sbin/hdparm -c1 /dev/hda

To enable 32-Bit transfer over PCI.

/sbin/hdparm -k1 /dev/had

Keep settings across an IDE reset.
Enter this lines into /sbin/init.d/boot.local (SuSE) or /etc/rc.d/rc.local RedHat).

/sbin/hdparm -Tt /dev/hda

Measure the HDD throughput.

Dieser Eintrag wurde am 15.07.2004 erstellt und zuletzt am 09.11.2006 bearbeitet.

Direkter Link zu dieser Seite:

[ Zur Startseite ]   [ Zur Kategorie ]

© 2004-2021 by Georg Kainzbauer