[mrtg] Re: Linux IDE Drive Tuning

Russell Cook RCook at investec.co.za
Fri Jul 9 10:40:09 MEST 1999


Hi,

After working through the settings you listed below (excellent for a novice like myself) I get the following performance increase on IDE

before optimisation:

disk 32MB in 7.25sec = 4.41 MB/sec

after optimisation

disk 32 MB in 4.87sec = 6.57 MB/sec

Great, thanks for the help.

Russell

>>> Frantsen Christian <cf at internoc.se> 09/07/99 07:32:41 >>>
This might help you people out that runs several hundred nodes on IDE
drives.

# /sbin/hdparm -c 1 /dev/hda (or hdb, hdc etc)
to use 32-bit I/O over the PCI bus. (The hdparm(8) manpage says that you may
need to use -c 3 for some chipsets.)

# /sbin/hdparm -d 1 /dev/hda (or hdb, hdc etc)
to enable DMA. This may depend on support for your motherboard chipset being
compiled into your kernel.

You can test the results of your changes by running hdparm in performance
test mode:
# /sbin/hdparm -t /dev/hda (or hdb, hdc etc)

When you've found the optimal settings, you should consider doing a
# /sbin/hdparm -k 1 /dev/hda (or hdb, hdc etc)
to keep these settings across an IDE reset. I've seen the kernel reset the
IDE controller occasionally and if you don't set -k 1, the other
settings will be reset to defaults and you'll lose all your performance
gains.

The -m option can be used to change the number of sectors transferred on
each interrupt. You may get additional gains by tweaking this.

Hope this can help someone =)

Regards
-----------------------------------------
Christian Frantsen
Internoc Scandinavia AB
Tel: +46-36-194843
Fax: +46-36-194651

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch 
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg 


--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list