linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: asho@chuany.net
To: linux-raid@vger.kernel.org
Subject: Re: Software RAID0 behaviour/performance on ATA drives
Date: Fri, 25 Mar 2005 17:04:54 +0800	[thread overview]
Message-ID: <20050325090454.GA8352@acer1200> (raw)
In-Reply-To: <16963.37953.872779.652517@cse.unsw.edu.au>

> 
> The raid0 driver is 'clever' at all.
> It is given requests by the filesystem or mm subsystem, maps them to
> the correct device/sector, and sends them straight on to the
> appropriate driver.  It never waits for requests, just maps and
> forwards.
> 
> So if the  filesystem sends 128 4k read-ahead requests to the raid0
> driver it will forward each one to the relevant device and, depending
> on chunk size etc, you might get, say, 32 4K requests sent to each of
> 4 drives.  The drives would (depending on the internals of the driver)
> processes all these requests in parallel.
> 
> In your example, if the filesystem or mm subsystem submitted writes
> for 4 consecutive chunks on a two-drive raid0 array without waiting
> for earlier ones to complete before submitting later ones, then they
> would all get to the device driver in a timely fashion, and the device
> driver(s) should be able to drive the two drives in parallel.
> 
> So if the writer handles the required parallelism, and the devices
> handle the required parallelism, then the raid0 layer won't interfere
> at all. 
> NeilBrown
Hi Neil

I am curious about that, too. In my memory, the IDE Channel can only
allow one IDE device read/write at once. If one driver(e.g. master) 
was writing, the second driver (e.g. slave) must wait until the master
driver finished...

If you were right, can I plug the two disk into the same IDE channel in
raid 1 without losing any performance?

Asho Yeh
-- 
    ~    Asho Yeh <asho@debian.org.tw>
   'v'   GnuPG-Key ID: 1CC92D7F
  // \\  Fingerprint: 192B 76FD 5643 6EE7 3DEC  9EAF 3088 48D2 1CC9 2D7F
 /(   )\ 
  ^`~'^

  reply	other threads:[~2005-03-25  9:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 16:29 Software RAID0 behaviour/performance on ATA drives Andy Sy
2005-03-25  4:32 ` Neil Brown
2005-03-25  9:04   ` asho [this message]
2005-03-25 10:03     ` Neil Brown
2005-03-25 12:37       ` asho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050325090454.GA8352@acer1200 \
    --to=asho@chuany.net \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).