2001-02-17 01:19:20

by Neil Booth

[permalink] [raw]
Subject: IBM-DTLA-307045 very slow under 2.2.x

I have a SOYO "SY-5EMA+ Super 7" motherboard, with a K6-2 processor.
The 45 Gig IBM drive hangs the BIOS if I let it autodetect it, so I
turn off autodetection for IDE2 primary where it sits. This is probably
not relevant.

My problem is that "hdparm -tT dev/hdc" gives atrocious
performance:-

/dev/hdc:
Timing buffered disk reads: 64 MB in 22.81 seconds = 2.81 MB/sec

with approximately 25% CPU usage. By contrast, for /dev/hda it
gives:-

/dev/hda:
Timing buffered disk reads: 64 MB in 11.49 seconds = 5.57 MB/sec

with 100% CPU, which is still poor, but somewhat better. The relevant
part of my dmesg is

VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
hda: QUANTUM FIREBALL CR13.0A, ATA DISK drive
hdb: CD-ROM 40X/AKU, ATAPI CDROM drive
hdc: IBM-DTLA-307045, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: QUANTUM FIREBALL CR13.0A, 12416MB w/418kB Cache, CHS=1582/255/63
hdc: IBM-DTLA-307045, 43979MB w/1916kB Cache, CHS=5606/255/63
hdb: ATAPI 40X CD-ROM drive, 128kB Cache

hdparm -i /dev/hdc gives:-

Model=IBM-DTLA-307045, FwRev=TX6OA50C, SerialNo=YM0YML23878
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=90069840
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 udma0 udma1 udma2 udma3 udma4 udma5

Trying to set the DMA mode with -X34 and -d1 seems to have no effect.

Is this normal, or am I doing something wrong?

Thanks,

Neil.


2001-02-17 09:59:06

by Matthias Andree

[permalink] [raw]
Subject: Re: IBM-DTLA-307045 very slow under 2.2.x

On Sat, 17 Feb 2001, Neil Booth wrote:

> I have a SOYO "SY-5EMA+ Super 7" motherboard, with a K6-2 processor.
> The 45 Gig IBM drive hangs the BIOS if I let it autodetect it, so I
> turn off autodetection for IDE2 primary where it sits. This is probably
> not relevant.

Not really. IBM has software which can make the drive available if you
need the BIOS to detect (if you want to boot from it) which "works for
my sister", on an old PCChips M577 (IBM 6x86 MX/233).

> My problem is that "hdparm -tT dev/hdc" gives atrocious
> performance:-
>
> /dev/hdc:
> Timing buffered disk reads: 64 MB in 22.81 seconds = 2.81 MB/sec

It's very low. I've never tried hooking my IBM to my Tyan Trinity K6-2
board because, reportedly, that one crashes with drives larger than 36
GB as well (Award 4.51 crap), and the board only has FreeBSD on its
attached disks.

sudo /sbin/hdparm -X69 -t /dev/hde

/dev/hde:
setting xfermode to 69 (UltraDMA mode5)
Timing buffered disk reads: 64 MB in 1.79 seconds = 35.75 MB/sec

/dev/hde:
setting xfermode to 66 (UltraDMA mode2)
Timing buffered disk reads: 64 MB in 2.70 seconds = 23.70 MB/sec

This is on a Promise PDC 20265R. On VIA, you might not get more than
like 18 MB/s.

> hda: QUANTUM FIREBALL CR13.0A, 12416MB w/418kB Cache, CHS=1582/255/63
> hdc: IBM-DTLA-307045, 43979MB w/1916kB Cache, CHS=5606/255/63

It does not tell anything about DMA here,

> Model=IBM-DTLA-307045, FwRev=TX6OA50C, SerialNo=YM0YML23878
> Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
> RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
> BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=off
> CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=90069840
> 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 udma0 udma1 udma2 udma3 udma4 udma5
>
> Trying to set the DMA mode with -X34 and -d1 seems to have no effect.

but here, it's using multi-word DMA. Why don't you set UDMA? Try -X66
-d1.

If your kernel does not have the IDE patches, get them from
ftp.XX.kernel.org/pub/linux/kernel/people/hedrick/ and rebuild your
kernel and see if that helps.

--
Matthias Andree