Linux-Speed Up Your Ide Hard Drive

Linux systems usually use conservative default IDE driver settings that could be significantly slowing down your system. By default they are set to most safe settings guaranteed to work. However you may reconfigure them to increase the read speed of your hard drive. In most cases this will not speed up serving of your website significantly, but it is nice to know that you can get the most out of your hardware.

To benchmark the read speed of your IDE drive execute the following

>[email protected] [~]# hdparm -Tt /dev/hda


Timing buffer-cache reads: 696 MB in 2.00 seconds = 348.00 MB/sec

Timing buffered disk reads: 60 MB in 3.00 seconds = 19.80 MB/sec

Timing buffered disk reads can be very slow. This may be as a result of high CPU load or extensive hard disk swapping. server hard drives Check apache optimization section first if the read time is too slow.
Now lets’ see what are the Input/Output settings of your hard disk. Execute the command /sbin/hdparm -v /dev/hda

# /sbin/hdparm -v /dev/hda


multcount = 16 (on)

IO_support = 0 (default 16-bit)

unmaskirq = 0 (off)

using_dma = 0 (off)

keepsettings = 0 (off)

readonly = 0 (off)

readahead = 8 (on)

geometry = 9729/255/63, sectors = 156301488, start = 0

This are the current driver settings settings. Lets see what your hard drive is capable of. Execute the command /sbin/hdparm -i /dev/hda

[email protected] [~]# /sbin/hdparm -i /dev/hda


Model=ST380011A, FwRev=3.06, SerialNo=5JV18H2Q

Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }

RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4

BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=16

CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488

IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}

Leave a comment

Your email address will not be published. Required fields are marked *