Improving HardDisks...

Gabriele Paciucci (paciucci@pcainf1.ing.uniroma1.it)
Tue, 18 Feb 1997 11:27:42 +0100 (MET)


After reading some mail about HDPARM, I'd to know the state of my HD
according to the coniguration of my LINUX BOX

__BIOS SETTINGS__

Primary Master

Type Auto
LBA/Large Mode on
Block Mode on
32bit Mode on
PIO Mode 4

__KERNEL__

ide: i82371 PIIX (Triton) on PCI bus 0 function 57
ide0: BM-DMA at 0xffa0-0xffa7
ide1: BM-DMA at 0xffa8-0xffaf
hda: IBM-DJAA-31700, 1628MB w/96kB Cache,LBA, CHS=827/64/63
hdb: ACER CD-767E/O, ATAPI CDROM drive

__XCONFIG__

* General Setup

PCI bios support y
System V IPC y
Kernel support for ELF binaries y
Processor type Pentium

* Floppy,IDE, and other block devices

Enhanced IDE/MFM/RLL disk/cdrom/tape support y
CMD640 chipset bugfix/support y
CMD640 enhanced support y
RZ1000 chipset bugfix/support y
Intel 82371 PIIX DMA Support y

__STATE__

/dev/hda:

Model=IBM-DJAA-31700, FwRev=P0IRA72D, SerialNo=1P51P128
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=3308/16/63, TrkSize=0, SectSize=0, ECCbytes=16
BuffType=3(DualPortCache), BuffSize=96kB, MaxMultSect=16, MultSect=off
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
CurCHS=3308/16/63, CurSects=3334464, LBA=yes, LBAsects=3334464
tDMA={min:120,rec:120}, DMA modes: sword0 sword1 sword2 mword0 mword1 mword2
IORDY=on/off, tPIO={min:200,w/IORDY:120}, PIO modes: mode3 mode4

/dev/hda:
multcount = 0 (off)
I/O support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 827/64/63, sectors = 3334464, start = 0

************** hdparm -t -f /dev/hda

/dev/hda:
Timing buffered disk reads: 16 MB in 3.75 seconds = 4.27 MB/sec
^--- The Best Value
__IMPROVING(?)__

************** hdparm -m16 -c3 -X12 /dev/hda

/dev/hda:
setting 32-bit I/O support flag to 3
setting multcount to 16
setting xfermode to 12 (PIO flow control mode4)
multcount = 16 (on)
I/O support = 3 (32-bit w/sync)

/dev/hda:
Timing buffer-cache reads: 32 MB in 1.04 seconds =30.77 MB/sec

/dev/hda:
Timing buffered disk reads: 16 MB in 3.37 seconds = 4.75 MB/sec
^-- Medium Value
/dev/hda:

Model=IBM-DJAA-31700, FwRev=P0IRA72D, SerialNo=1P51P128
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=3308/16/63, TrkSize=0, SectSize=0, ECCbytes=16
BuffType=3(DualPortCache), BuffSize=96kB, MaxMultSect=16, MultSect=16
^^^^^^^^^^^
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
CurCHS=3308/16/63, CurSects=3334464, LBA=yes, LBAsects=3334464
tDMA={min:120,rec:120}, DMA modes: sword0 sword1 sword2 mword0 mword1 mword2
IORDY=on/off, tPIO={min:200,w/IORDY:120}, PIO modes: mode3 mode4

/dev/hda:
multcount = 16 (on)
I/O support = 3 (32-bit w/sync)
unmaskirq = 0 (off)
using_dma = 0 (off)
^-the options -d1 -X34 decrease performance to 3.75MB/sec
keepsettings = 0 (off) ^^^^^^
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 827/64/63, sectors = 3334464, start = 0

__QUESTIONS__

1)Why don't Linux use the Bios settings ?
2)Why -d1 -X34 decrease ?
3)How to set -m16 -c3 -X12 to HD finally ?

................................................................
: Gabriele Paciucci email->paciucci@ingchim.ing.uniroma1.it :
: ^^^^^^^^^^^^^^^^^ phone->+39 6 7022474 +39 744 62437 :
: .............................:..............
:>______Thanks to Linus_______<: Member of Linux User Group ROMA :
:..............................: ^^^^^^^^^^^^^^^^^^^^^ :
:email-> pluto@linux.ing.uniroma1.it :
......................:URL---> http://linux.ing.uniroma1.it/LUG/ :
: Lavorare a qualcosa :...........................................:
: perche' e' bene, non solo perche' :
: ce la si puo' fare_ V.Havel :
:...................................: