public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* software raid does not do parallel reads under 2.4?
@ 2001-08-23 21:42 Lehmann 
  2001-08-24 10:25 ` Neil Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Lehmann  @ 2001-08-23 21:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: oesi

It seems that the md driver in striped mode does not parallelize any reads
under 2.4. The scenario is that I have 3 disks on different controllers
(different pci slots), so there should not be any ide bus contention.

When I read any single disk (e.g. using hdparm or dd), I get 32MB/s. When
I read two of them at the same time, I get about 28MB/s for each disk.

Under linux-2.2 using md and striping I get about 40-50MB/s, whereas, under
2.4, the same raid gives about 30MB/s.

I then reformatted the raid to have 2MB chunksize. If I look at the disk
LED's while reading from them (e.g. dd if=/dev/md3 bs=1024x1024x8), I see
that each disk is read in turn, while the other two disks are idle.

so it looks as if md under 2.4 only reads disks in turn, which makes
striping useless as a performance tool.

hdparm for all drives looks like this:

cerebro:/tmp# hdparm /dev/hde
/dev/hde:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 23988/16/63, sectors = 156301487, start = 0

two of the disks use a promise ultra tx2 controller, one the older ultra
100, and all run at udma 100.


-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg@goof.com      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

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

end of thread, other threads:[~2001-08-24 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-23 21:42 software raid does not do parallel reads under 2.4? Lehmann 
2001-08-24 10:25 ` Neil Brown
2001-08-24 17:01   ` Wilfried Weissmann
2001-08-24 17:14     ` Daryll Strauss
2001-08-24 20:23       ` Lehmann 
2001-08-24 20:22   ` Lehmann 

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