public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Writing on raw device with software RAID 0 is slow
@ 2001-03-01 16:47 Douglas Gilbert
  0 siblings, 0 replies; 7+ messages in thread
From: Douglas Gilbert @ 2001-03-01 16:47 UTC (permalink / raw)
  To: linux-kernel

 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ben LaHaise wrote:
> On Thu, 1 Mar 2001, Stephen C. Tweedie wrote:
> 
> > Yep.  There shouldn't be any problem increasing the 64KB size, it's
> > only the lack of accounting for the pinned memory which stopped me
> > increasing it by default.
> 
> Actually, how about making it a sysctl?  That's probably the most
> reasonable approach for now since the optimal size depends on hardware.

Something else may slow down raw IO. A buffer
that looks contiguous in the user space typically looks
quite splintered from the kernel's perspective. This
means that a buffer of 64 KB in the user space ends
up being a scatter gather list of 16 elements (assuming
PAGE_SIZE of 4KB) en route to the IDE or SCSI subsystem.

Now one SCSI adapter that I have examined must push each
scatter gather element through its firmware to the DMA 
engine which can only hold one element at a time. 
That takes time.

Doug Gilbert

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Writing on raw device with software RAID 0 is slow
@ 2001-02-28 14:58 Martin Rauh
  2001-03-01 12:14 ` Stephen C. Tweedie
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Rauh @ 2001-02-28 14:58 UTC (permalink / raw)
  To: linux-kernel

Hello,

Writing to an software RAID 0 containing 4 SCSI discs is very fast.
I get transfer rates of about 100 MBytes/s. The filesystem on the RAID
is ext2.

Writing to the same RAID directly (that means on the raw device without
a filesystem) works
but gives low transfer rates of about 31 MBytes/s.

Any explanation for that?

thanks and greetings,

Martin Rauh




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

end of thread, other threads:[~2001-03-01 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-01 16:47 Writing on raw device with software RAID 0 is slow Douglas Gilbert
  -- strict thread matches above, loose matches on Subject: below --
2001-02-28 14:58 Martin Rauh
2001-03-01 12:14 ` Stephen C. Tweedie
2001-03-01 15:44   ` Ben LaHaise
2001-03-01 16:02     ` Stephen C. Tweedie
2001-03-01 16:08       ` Ben LaHaise
2001-03-01 16:29         ` Stephen C. Tweedie

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