public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Yet another disk transfer speed problem
@ 2002-02-28 16:34 Bharath Krishnan
  2002-02-28 19:55 ` Joseph Malicki
  0 siblings, 1 reply; 7+ messages in thread
From: Bharath Krishnan @ 2002-02-28 16:34 UTC (permalink / raw)
  To: linux-kernel

Hello!

Please CC: me on replies,

Problem: ata disk on secondary controller of PDC20265
gives sub-par performance.

both disks have c3 and d1 set along with X69.

hdparm -tT /dev/hdg:
/dev/hdg:
 Timing buffer-cache reads:   128 MB in  0.77 seconds =166.23 MB/sec
 Timing buffered disk reads:  64 MB in  3.81 seconds = 16.80 MB/sec

compared to
hdparm -tT /dev/hde:
/dev/hde:
 Timing buffer-cache reads:   128 MB in  0.73 seconds =175.34 MB/sec
 Timing buffered disk reads:  64 MB in  1.82 seconds = 35.16 MB/sec


Setup:
kernel: 2.4.17
pdc20265 controller on asus a7v motherboard.
kernel config options:
CONFIG_BLK_DEV_PDC202XX=y
CONFIG_PDC202XX_BURST=y
# CONFIG_PDC202XX_FORCE is not set
# CONFIG_BLK_DEV_ATARAID_PDC is not set

similar behavior with redhat 7.2 updated kernel 2.4.9-21

hde: IBM-DTLA-307015, ATA DISK drive
hdg: MAXTOR 6L040J2, ATA DISK drive

Interesting stuff from dmesg:
ide2: BM-DMA at 0x8000-0x8007, BIOS settings: hde:DMA, hdf:pio
ide3: BM-DMA at 0x8008-0x800f, BIOS settings: hdg:DMA, hdh:pio

cat /proc/ide/ide2/config
pci bus 00 device 88 vid 105a did 0d30 channel 0
5a 10 30 0d 07 00 10 02 02 00 80 01 00 20 00 00
01 94 00 00 01 90 00 00 01 88 00 00 01 84 00 00
01 80 00 00 00 00 00 d4 00 00 00 00 5a 10 33 4d
00 00 00 00 58 00 00 00 00 00 00 00 0a 01 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be 33 00 00 00 00 00 00 01 00 01 00 00 00 00 00
f1 24 41 00 c4 f3 4f 00 f1 24 41 00 c4 f3 4f 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

cat /proc/ide/ide3/config 
pci bus 00 device 88 vid 105a did 0d30 channel 1
5a 10 30 0d 07 00 10 02 02 00 80 01 00 20 00 00
01 94 00 00 01 90 00 00 01 88 00 00 01 84 00 00
01 80 00 00 00 00 00 d4 00 00 00 00 5a 10 33 4d
00 00 00 00 58 00 00 00 00 00 00 00 0a 01 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be 33 00 00 00 00 00 00 01 00 01 00 00 00 00 00
f1 24 41 00 c4 f3 4f 00 f1 24 41 00 c4 f3 4f 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

hdparm -i
/dev/hde
Model=IBM-DTLA-307015, FwRev=TX2OA50C, SerialNo=YF0YFFX4393
 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=16
 CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=30003120
 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 
 AdvancedPM=yes: disabled (255)
 Drive Supports : ATA/ATAPI-5 T13 1321D revision 1 : ATA-2 ATA-3 ATA-4
ATA-5 

/dev/hdg
Model=MAXTOR 6L040J2, FwRev=A93.0300, SerialNo=662125114610
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
 BuffType=DualPortCache, BuffSize=1820kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=78177792
 IORDY=on/off, tPIO={min:120,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 udma6
 AdvancedPM=no
 Drive Supports : ATA/ATAPI-5 T13 1321D revision 1 : ATA-1 ATA-2 ATA-3
ATA-4 ATA-5 

cat /proc/ide/pdc202xx
                               PDC20265 Chipset.
------------------------------- General Status
---------------------------------Burst Mode                           :
enabled
Host Mode                            : Normal
Bus Clocking                         : 33 PCI Internal
IO pad select                        : 10 mA
Status Polling Period                : 8
Interrupt Check Status Polling Delay : 11
--------------- Primary Channel ---------------- Secondary Channel ----
                enabled                          enabled 
66 Clocking     enabled                          enabled 
           Mode PCI                         Mode PCI   
                FIFO Empty                       FIFO Empty  
--------------- drive0 --------- drive1 -------- drive0 ----------
drive1 -DMA enabled:    yes              no             
yes               no 
DMA Mode:       UDMA 4           NOTSET          UDMA 4           
NOTSET
PIO Mode:       PIO 4            NOTSET           PIO 4           
NOTSET


What is going on? I do have ata100 cables. 

Thanks,

-bharath

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Yet another disk transfer speed problem
@ 2002-03-01 19:54 Bharath Krishnan
  0 siblings, 0 replies; 7+ messages in thread
From: Bharath Krishnan @ 2002-03-01 19:54 UTC (permalink / raw)
  To: h.lubitz; +Cc: linux-kernel

Hi,

Here is fdisk -l results:

[root@yakuza root]# /sbin/fdisk -l /dev/hdg

Disk /dev/hdg: 255 heads, 63 sectors, 4866 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdg1   *         1       255   2048256    6  FAT16


[root@yakuza root]# /sbin/fdisk -l /dev/hde

Disk /dev/hde: 255 heads, 63 sectors, 1867 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hde1             1         6     48163+  83  Linux
/dev/hde2             7      1056   8434125   83  Linux
/dev/hde3   *      1154      1867   5735205    7  HPFS/NTFS
/dev/hde4          1057      1153    779152+   f  Win95 Ext'd (LBA)
/dev/hde5          1057      1153    779121   82  Linux swap

Partition table entries are not in disk order


As you can see, I have a fat16 partition on hdg. I can delete it and make
an ext3 partition there and see if that changes anything.


Thanks,

-bharath

>>>

Could you provide fdisk -l for both? For some odd reason unknown to me
some filesystems give slower results with hdparm than others, even with
the buffer-cache reads (which are intended to measure memory speed, not
drive speed, and thus should be the same for all drives on a given
mainboard). Also, hdparm directly on the drive device is often a bit
slower than hdparm for the first (outermost) partition. These problems
have been far worse in older kernels, though. With 2.2 I once
benchmarked a vfat-partition at half the speed the same partition gave
as ext2.

Holger



-bharath






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-01 19:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-28 16:34 Yet another disk transfer speed problem Bharath Krishnan
2002-02-28 19:55 ` Joseph Malicki
2002-02-28 20:06   ` Bharath Krishnan
2002-03-01  9:02     ` Helge Hafting
2002-03-01 19:50       ` Bharath Krishnan
2002-03-01 15:58     ` Holger Lubitz
  -- strict thread matches above, loose matches on Subject: below --
2002-03-01 19:54 Bharath Krishnan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox