[ltp] hdparm settings?
Justin Mason
linux-thinkpad@linux-thinkpad.org
Fri, 18 Feb 2005 12:28:36 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Charles E Taylor IV writes:
> On Fri, 18 Feb 2005 12:54:56 -0700
> Nathan Kurz <nate@verse.com> wrote:
>
> > Interesting. On my X30 with a 40G drive (presumed 5400 RPM), I still
> > get a consistent 18 MB/s, and can't get the 34 MB/s you are seeing.
> > Playing with it a little bit, I see that adjusting multcount (-m) from
> > 0 to 16 does not seem to affect the transfer speed, and that
> > surprisingly adjusting 32-bit IO Support (-c) from off to on also has
> > no effect. I had been playing with readahead set very large (set with
> > 'blockdev'), but lowering it also seemed to have no effect.
>
> You'd think it would be 5400 RPM. My machine is an X22. I'm not sure how
> different the X30 is from the X22, but you'd think they would put FASTER
> drives in them - or at least equivalent drives.
>
> > On desktop machines I've occasionally seen the speed double when
> > adding 32-bit support, and since your speed is just about double mine
> > that seems suspicious. Anyone know if this setup should support
> > 32-bit IO and have any idea why it might not be?
>
> I tried turning off 32-bit IO support on my drive, and the speed
> effectively remains the same. 33-35 MB/s.
>
> Maybe part of the speed difference is a difference in kernels? I'm
> running Fedora Core 3 with a 2.6.9 series kernel (haven't upgraded to the
> latest Fedora Core 3 kernel because of some unresolved suspend/sound/USB
> issues with the latest FC3 kernel).
>
> For reference, the info from the drive in my X22 looks like this:
>
> # hdparm -i /dev/hda
>
> /dev/hda:
>
> Model=HTS548040M9AT00, FwRev=MG2OA50A, SerialNo=MRL230L2G0J72B
> Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
> RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
> BuffType=DualPortCache, BuffSizex77kB, MaxMultSect=16, MultSect=16
> CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsectsx140160
> IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
> PIO modes: pio0 pio1 pio2 pio3 pio4
> DMA modes: mdma0 mdma1 mdma2
> UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
> AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
> Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:
It may be the model of drive. Mine is also an IC25N, like Nathan's, and I
get a max of about 25 MB/s from hdparm -t.
: jm 130...; sudo hdparm -i /dev/hda
Password:
/dev/hda:
Model=IC25N080ATMR04-0, FwRev=MO4OAD4A, SerialNo=MRG405K4GXZ8PH
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=7884kB, 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}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:
* signifies the current active mode
: jm 131...; sudo hdparm -v /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 65535/16/63, sectors = 80026361856, start = 0
: jm 132...; sudo hdparm -t /dev/hda
/dev/hda:
Timing buffered disk reads: 78 MB in 3.04 seconds = 25.62 MB/sec
: jm 133...; sudo hdparm -t /dev/hda
/dev/hda:
Timing buffered disk reads: 76 MB in 3.00 seconds = 25.31 MB/sec
: jm 134...; sudo hdparm -t /dev/hda
/dev/hda:
Timing buffered disk reads: 76 MB in 3.03 seconds = 25.09 MB/sec
- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS
iD8DBQFCFk/zMJF5cimLx9ARAmxWAJ9VxMCTIg735h+eLSa62tXk77qqYQCglnup
UlSbl43ETG8PlYEFwiBtk7c=
=wMWP
-----END PGP SIGNATURE-----