public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Two hdds on one channel - why so slow?
@ 2002-01-01 22:34 Krzysztof Oledzki
  2002-01-01 23:07 ` Brian
  0 siblings, 1 reply; 79+ messages in thread
From: Krzysztof Oledzki @ 2002-01-01 22:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: andre, andre

Hello,

There is something wrong with ide data throughput with at last both via
kt133 and promise pcd20265 controllers.

I have Asus A7V-133 Mobo with VIA KT133A chipset and onboard Promise
pcd20265 ide controller. My CPU is Athlon 1400 MHz and I have 512 MB of
PC133 SDRAM. I noticed that connecting two ata100 hdds into the same
channel makes everything much slower. So I made some test:

# uname -r
2.4.18pre1

1) PDC20265

PDC20265: IDE controller on PCI bus 00 dev 88
PCI: Found IRQ 11 for device 00:11.0
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
    ide0: BM-DMA at 0x8000-0x8007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x8008-0x800f, BIOS settings: hdc:pio, hdd:pio
hdc: ST380021A, ATA DISK drive
hdd: ST380021A, ATA DISK drive
hdc: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)
hdd: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)


# /usr/bin/time hdparm -t /dev/hdc

/dev/hdc:
 Timing buffered disk reads:  64 MB in  1.63 seconds = 39.26 MB/sec
0.05user 0.26system 0:04.66elapsed 6%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps

# /usr/bin/time hdparm -t /dev/hdd

/dev/hdd:
 Timing buffered disk reads:  64 MB in  1.63 seconds = 39.26 MB/sec
0.03user 0.39system 0:04.67elapsed 8%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps
root@nimfa:~# /usr/bin/time hdparm -t /dev/hdd

OK, it seems that with one hdd there is no problem. Data transfers
are quite high (about 40 MB/sec) and CPU usage is low: 6% to 8% is
AFAIK quite good value. But let's try this:

# /usr/bin/time hdparm -t /dev/hdc & /usr/bin/time hdparm -t /dev/hdd
[1] 152

/dev/hdc:

/dev/hdd:
 Timing buffered disk reads:   Timing buffered disk reads:  64 MB in  5.48 seconds = 11.68 MB/sec
0.01user 0.41system 0:08.52elapsed 4%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps
64 MB in  5.55 seconds = 11.53 MB/sec
0.05user 0.30system 0:08.60elapsed 4%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps
[1]+  Done                    /usr/bin/time hdparm -t /dev/hdc

Oooops?!!?! Two ata100 hdds and each one can only archive read speed
at 11.5 MB/sec - this is only 24% of ATA100 interface throughput!

2) vt82c686b

VP_IDE: IDE controller on PCI bus 00 dev 21
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:04.1
hdg: ST380021A, ATA DISK drive
hdh: ST380021A, ATA DISK drive
hdg: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)
hdh: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)

# /usr/bin/time hdparm -t /dev/hdg

/dev/hdg:
 Timing buffered disk reads:  64 MB in  1.63 seconds = 39.26 MB/sec
0.05user 0.21system 0:04.67elapsed 5%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps

# /usr/bin/time hdparm -t /dev/hdh

/dev/hdh:
 Timing buffered disk reads:  64 MB in  1.63 seconds = 39.26 MB/sec
0.00user 0.35system 0:04.67elapsed 7%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps

Nice :) 39.26 MB/sec - the same value like for PDC :) OK, what about two
disks at the same time:

# /usr/bin/time hdparm -t /dev/hdg & /usr/bin/time hdparm -t /dev/hdh
[1] 185

/dev/hdg:

/dev/hdh:
 Timing buffered disk reads:   Timing buffered disk reads:  64 MB in  5.35 seconds = 11.96 MB/sec
0.01user 0.43system 0:08.40elapsed 5%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps
64 MB in  5.45 seconds = 11.74 MB/sec
0.04user 0.27system 0:08.50elapsed 3%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (371major+12minor)pagefaults 0swaps
[1]+  Done                    /usr/bin/time hdparm -t /dev/hdg

And again! ATA100 with 24 MB/sec! Why this is so slow?! Any ideas?

Best regards,

			Krzysztof Oledzki



^ permalink raw reply	[flat|nested] 79+ messages in thread
* RE: Two hdds on one channel - why so slow?
@ 2002-01-03 15:49 Dana Lacoste
  2002-01-03 16:44 ` Mark Hahn
  0 siblings, 1 reply; 79+ messages in thread
From: Dana Lacoste @ 2002-01-03 15:49 UTC (permalink / raw)
  To: 'Ricky Beam', Mark Hahn; +Cc: Linux Kernel Mail List

This has always been a really FUN argument

IDE vs. SCSI

BTW, why not add FC-AL or Serial-ATA into the mix, too?

i just wanted to add one thing.  you guys are all right so
far, IDE has distinct advantages and so does linux, but you're
missing something :

SCSI is meant for high performance, high reliability systems.
it's not that the SCSI protocol is meant for this, but the
drives are.  the drive quality for SCSI drives is MUCH higher
examples :
IBM's flagship 120GXP IDE drive is rated as 1 in 10^13 error rate,
with 40K start/stop cycles and a three year warranty.
IBM's 36Z15 SCSI drive is rated at 1 in 10^16 with 50K cycles
and a FIVE year warranty.

seagate and maxtor have similar differences.

If you're running a production system UNDER LOAD for 24x7 then
you should be using SCSI.  there's not really any room for
argument here is there? :)

Dana Lacoste
Ottawa, Canada
(Using SCSI on desktop [silly] and in product [woo-hoo!] :)

> -----Original Message-----
> From: Ricky Beam [mailto:jfbeam@bluetronic.net]
> Sent: January 3, 2002 00:58
> To: Mark Hahn
> Cc: Linux Kernel Mail List
> Subject: Re: Two hdds on one channel - why so slow?
> 
> 
> On Wed, 2 Jan 2002, Mark Hahn wrote:
> >my goodness; it's been so long since l-k saw this traditional sport!
> >nothing much has changed in the intrim: SCSI still costs 
> 2-3x as much,
> >and still offers the same, ever-more-niche set of advantages
> >(decent hotswap, somewhat higher reliability, moderately 
> higher performance,
> >easier expansion to more disks and/or other devices.)
> 
> If it's so much of a niche (and by extension desired by so 
> few), why has
> IDE become more and more like SCSI over the past decade?  IDE is just
> beginning (over the last 2-3 years) to acquire the features 
> SCSI has had
> for over a decade.  Give it another decade and IDE will 
> simply be a SCSI
> physical layer.
> 
> So summarize a decade old arguement:
> (IDE Camp)  SCSI sucks because it's too damned expensive.
> 
> (SCSI Camp) IDE sucks because it isn't SCSI. [followed by a 
> long list of
>             features present in SCSI but not IDE.]
> 
> You cannot beat IDE's price/performance with a stick.  However, anyone
> who cares about system performance (and lifespan) will opt 
> for the expense
> of SCSI.
> 
> >besides having missed the last 2-3 generations of ATA (which include
> >things like diskconnect), you have clearly not noticed that 
> entry-level
> 
> And who has diskconnect implemented?  How many devices support it?
> How many years before most of the hideous data destroying bugs and
> incompatibilities are rooted out?
> 
> >hardware with PoS UDMA100 controllers can sustain more bandwidth than
> >you can hope to consume (120 MB/s is pretty easy, even on 32x33 PCI!)
> 
> ...with only two devices per channel and a rather heavy 
> penalty for more
> than one.  SCSI is only significantly penalized when approaching bus
> saturation.
> 
> And looking at the data rates for the Maxtor 160GB drive (infact the
> entire D540X line)... 43.4M/s to/from media (i.e. cache) with 
> sustained
> rates of 35.9/17.8 OD/ID.  Maxtor are the only ones with U133 drives.
> (And the Maxtor SCSI drives kick that thing's ass... internal rate of
>  350-622Mb/s for a sustained throughput of 33-55MB/s.  Expensive but
>  much much faster.)
> 
> >> PS: I once turned down a 360MHz Ultra10 in favor of a 
> 167MHz Ultra1 because
> >>     of the absolutely shitty IDE performance.  The U1 was 
> actually faster
> >>     at compiling software. (Solaris 2.6, btw)
> >
> >yeah, if Sun can't make IDE scream, then no one can eh?
> 
> Linux wasn't any freakin' better at it.  (Sun's IDE still 
> seriously sucks.)
> 
> --Ricky
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 79+ messages in thread
[parent not found: <Pine.LNX.4.33.0201021452120.8693-100000@coffee.psychology.mcmaster.ca>]
* Re: Two hdds on one channel - why so slow?
@ 2002-01-04 14:02 Jesse Pollard
  2002-01-04 16:33 ` Bernd Eckenfels
  0 siblings, 1 reply; 79+ messages in thread
From: Jesse Pollard @ 2002-01-04 14:02 UTC (permalink / raw)
  To: petro, Mark Hahn; +Cc: linux-kernel

Petro <petro@auctionwatch.com>:
> On Wed, Jan 02, 2002 at 08:52:31PM -0500, Mark Hahn wrote:
> > On Wed, 2 Jan 2002, Ricky Beam wrote:
> > > PS: I once turned down a 360MHz Ultra10 in favor of a 167MHz Ultra1 because
> > >     of the absolutely shitty IDE performance.  The U1 was actually faster
> > >     at compiling software. (Solaris 2.6, btw)
> > yeah, if Sun can't make IDE scream, then no one can eh?
> 
>     If SCSI had the economy of scale that IDE enjoys, it would be a lot
>     cheaper than it is now. Not as cheap as IDE currently is, but still
>     a lot cheaper. 
> 
>     ATA/IDE is trying pick and choose the best parts of SCSI w/out
>     picking up the costs--which is an admirable goal. The question is
>     how close can they get w/out incurring the costs? 

About the time it attempts to support 16-60 drives on one controller
(15 targets, 4 luns per target), with full asynchronous operation.

The costs start accumulating with the async operation.

I've always treated IDE as only part - the controller sharing the equivalent
of a single SCSI target, with two luns. The PCI interface appears about
equivalent to that of the SCSI controller, but the IDE controller completely
drops the multiple target feature (as well as the shared data/command bus).

IDE boards with 4 drives seem to be two IDE controllers using the same PCI
interface. 

In my experience, SCSI is not cost effective for systems with a single disk.
As soon as you go to 4 or more disks, the throughput of SCSI takes over unless
you are expanding a pre-existing workstation configuration.
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 79+ messages in thread
[parent not found: <Pine.LNX.4.33.0201040844130.14385-100000@coffee.psychology.mcmaster.ca>]
* RE: Two hdds on one channel - why so slow?
@ 2002-01-04 19:29 Dana Lacoste
  2002-01-05 11:58 ` Henning P. Schmiedehausen
  0 siblings, 1 reply; 79+ messages in thread
From: Dana Lacoste @ 2002-01-04 19:29 UTC (permalink / raw)
  To: 'Bernd Eckenfels', linux-kernel

> Because Firewire is Consumer electronics and nearly dead. Dont now of
> Enterpise Solutions with Firewire. Besides there is no 
> switching support for it.

Also the bandwidth differences :

Firewire (Generation 1, what you can get now) is 400Mbit/s
FC Gen 1 is 100MByte/s
Gen 2 is 200MByte/s
(OK, I know those last two numbers are right, but I don't
know what the NAMES of the standards are :)

Firewire isn't even supposed to be in the same league! :)

Dana Lacoste
Ottawa, Canada

^ permalink raw reply	[flat|nested] 79+ messages in thread
* Re: Two hdds on one channel - why so slow?
@ 2002-01-07 17:06 Jesse Pollard
  2002-01-07 17:17 ` Tommy Reynolds
  0 siblings, 1 reply; 79+ messages in thread
From: Jesse Pollard @ 2002-01-07 17:06 UTC (permalink / raw)
  To: tmolina, Linux Kernel Mail List

Thomas Molina <tmolina@home.com>:
> 
> On Mon, 7 Jan 2002, Ricky Beam wrote:
> 
> > >I remember Hollerith Cards.
> > 
> > Paper tape!  If it's good enough for the .gov, it's good enough for you.
> 
> Have you ever seen an ASR-33 paper tape pileup?  I have; I assure you it's 
> not a pretty sight.

Didn't see one of those, but I did see (caused) a pileup from a 30in/sec
reader.... just try to catch the input before it tears the tape when it
falls out of the holder ... :-)

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

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

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

Thread overview: 79+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-01 22:34 Two hdds on one channel - why so slow? Krzysztof Oledzki
2002-01-01 23:07 ` Brian
2002-01-01 23:32   ` Andre Hedrick
2002-01-02  0:52     ` H. Peter Anvin
2002-01-02  1:19       ` Benjamin LaHaise
2002-01-02  1:24         ` H. Peter Anvin
2002-01-02  2:03           ` Benjamin LaHaise
2002-01-02  4:13             ` Andre Hedrick
2002-01-02 17:21   ` Krzysztof Oledzki
2002-01-02 18:41     ` Vojtech Pavlik
2002-01-02 19:31     ` Andre Hedrick
2002-01-02 20:23       ` Brian
2002-01-02 23:30         ` Ricky Beam
2002-01-03  1:52           ` Mark Hahn
2002-01-03  5:57             ` Ricky Beam
2002-01-04  2:54             ` Petro
2002-01-04  3:04               ` Arnaldo Carvalho de Melo
2002-01-04  4:29               ` ASUS KT266A/VT8233 board and UDMA setting Dmitri Pogosyan
2002-01-04  9:25                 ` Vojtech Pavlik
2002-01-04 10:35                   ` Alan Cox
2002-01-04 10:28                     ` Vojtech Pavlik
2002-01-04 11:20                       ` Alan Cox
2002-01-04 13:37                         ` Ville Herva
2002-01-04 16:48                           ` David Rees
2002-01-04 17:00                           ` Alan Cox
2002-01-05 19:20                     ` Dmitri Pogosyan
2002-01-05  7:20                   ` Dmitri Pogosyan
2002-01-04 18:19             ` Two hdds on one channel - why so slow? Stephan von Krawczynski
2002-01-04 18:38               ` Alan Cox
2002-01-04 18:30                 ` Stephan von Krawczynski
2002-01-05  0:52                 ` J.A. Magallon
2002-01-05  9:41                   ` Nick Holloway
2002-01-05 12:04                   ` Henning P. Schmiedehausen
2002-01-05  1:28                 ` Andre Hedrick
2002-01-08 23:59                   ` Ricky Beam
2002-01-09  0:10                     ` Mark Hahn
2002-01-09 15:27                     ` Andre Hedrick
2002-01-09 16:25                       ` MTBF Was: " Richard B. Johnson
2002-01-08 23:46                 ` Ricky Beam
2002-01-07  8:11             ` Stevie O
2002-01-07 15:57               ` Thomas Molina
2002-01-07 16:14                 ` Ricky Beam
2002-01-07 16:40                   ` Thomas Molina
2002-01-07 22:23                     ` Ancient Memories [was: Two hdds on one channel - why so slow?] Edesio Costa e Silva
2002-01-07 23:18                       ` M. Edward (Ed) Borasky
2002-01-07 18:48                   ` Two hdds on one channel - why so slow? Andre Hedrick
2002-01-07 20:19               ` Petro
2002-01-07 22:31                 ` Dmitri Pogosyan
2002-01-08 13:50                 ` Alan Cox
2002-01-08 14:45                   ` Mike Dresser
2002-01-08 14:57                     ` James A Sutherland
2002-01-08 17:15                   ` Wakko Warner
2002-01-02 21:23       ` Jeffrey W. Baker
  -- strict thread matches above, loose matches on Subject: below --
2002-01-03 15:49 Dana Lacoste
2002-01-03 16:44 ` Mark Hahn
     [not found] <Pine.LNX.4.33.0201021452120.8693-100000@coffee.psychology.mcmaster.ca>
2002-01-04  9:28 ` Krzysztof Oledzki
2002-01-04 14:02 Jesse Pollard
2002-01-04 16:33 ` Bernd Eckenfels
     [not found]   ` <Pine.LNX.4.43.0201041154010.14678-100000@filesrv1.baby-dragons.com>
2002-01-04 17:14     ` Bernd Eckenfels
2002-01-04 17:22       ` Timothy Covell
2002-01-04 18:40         ` Bernd Eckenfels
2002-01-04 19:32           ` Jeffrey W. Baker
2002-01-05 12:02             ` Henning P. Schmiedehausen
2002-01-04 20:29           ` Timothy Covell
2002-01-08 23:49           ` Ricky Beam
2002-01-09  0:50             ` Timothy Covell
2002-01-09  1:22               ` Ricky Beam
2002-01-04 17:40   ` Jesse Pollard
2002-01-08 12:41     ` Rob Landley
2002-01-08 21:18       ` William Park
2002-01-09 10:56         ` Rob Landley
2002-01-09 19:50           ` William Park
     [not found] <Pine.LNX.4.33.0201040844130.14385-100000@coffee.psychology.mcmaster.ca>
2002-01-04 17:18 ` Krzysztof Oledzki
2002-01-04 19:29 Dana Lacoste
2002-01-05 11:58 ` Henning P. Schmiedehausen
2002-01-05 12:20   ` Petro
2002-01-09  0:04   ` Ricky Beam
2002-01-07 17:06 Jesse Pollard
2002-01-07 17:17 ` Tommy Reynolds

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