![]() |
|
|
|
|
![]() 2007 CHLUGger of the Year! Mailing List Archive Help Open Source Question of the Day Mission Directions to Meetings Contact Us Video Guest Speaker Info Acceptable Use Link To Us! Linux Hacking and the Law New! VOIP with Asterisk Assessing OSS Knoppix Ubiquitous Computing Filesystem Hierarchy Virtual Hosting Wesnoth Xbox/Linux udev Emacs Talk Notes Home Sweet ~ Top 100 CLIs Device Drivers Real Time Linux Network Considerations Part II Network Considerations Part I Amanda Presentation GNU/Linux Calculators Configuring Rio ReiserFS Linux Sound Samba notes Network time protocol C programming in Linux Boot, startup and shutdown hdparm HOWTO Ubuntu NJ LoCo New! Cherry Hill Library RUSLUG LUG in Princeton Loads of Linux Links LinuxToday.com Art of UNIX Programming More Links Contact Congress Why We Use Linux Companies Using Linux Linux in Business ![]()
![]()
![]() ![]() |
hdparm: Tweaking Hard Drive Performance(Paul Agin Jan 26, 2001 Tested using Red Hat 7.0. Examples are hardware
------------------------------------------- [root@aboo /sbin]# hdparm hdparm - get/set hard disk parameters - version v3.9 Usage: hdparm [options] [device] .. Options:
------------------------------------------ Identify the drive to be tweaked. In this case, /dev/hda will be
[root@aboo /bin]# df
------------------------------------------ Get detailed information about the drive. Notice MaxMultSect=16, but
[root@aboo /sbin]# hdparm -i /dev/hda /dev/hda: Model=WDC AC24300L, FwRev=20.03W20, SerialNo=WD-WT4860264812
-------------------------------------------- Test drive performance before tweaking. [root@aboo /sbin]# hdparm -t /dev/hda /dev/hda:
-------------------------------------------- Check the current drive settings. [root@aboo /sbin]# hdparm /dev/hda
------------------------------------------------- Tweak the drive. Test all settings individually first, then they can
be
Options:
[root@aboo /sbin]# hdparm -c3 -d1 -m16 -k1 /dev/hda /dev/hda:
-------------------------------------------------- Drive performance after tweaking. [root@aboo /sbin]# hdparm -t /dev/hda /dev/hda:
-------------------------------------------------- Run the numbers... 7.36 MB/sec - 2.86 MB/sec = 4.5 MB/sec 4.5 MB/sec
-------------------------------------------------- Here are a couple more tests: Timing buffered disk reads: 64 MB in 24.37 seconds =
2.63 MB/sec
Timing buffered disk reads: 64 MB in 22.64 seconds =
2.83 MB/sec
---------------------------------------------------- If you want the changes to be made at boot, uncomment the selected
---------------------------------------------------- Another use for hdparm is drive power management. The following
[root@aboo /sbin]# hdparm -y /dev/hda /dev/hda:
[root@aboo /sbin]# hdparm -Y /dev/hda
------------------------------------------------ |