public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Neil Brown <neilb@suse.de>
Cc: Jonathan Baccash <jbaccash@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: raid io requests not parallel?
Date: Mon, 17 Jul 2006 02:20:07 +0200	[thread overview]
Message-ID: <20060717002007.GA5032@suse.de> (raw)
In-Reply-To: <17594.53980.497790.409035@cse.unsw.edu.au>

On Mon, Jul 17 2006, Neil Brown wrote:
> On Saturday July 15, jbaccash@gmail.com wrote:
> > I'm using kernel linux-2.6.15-gentoo-r1, and I noticed performance of
> > the software RAID-1 is not as good as I would have expected on my two
> > SATA drives, and I was wondering if anyone has an idea what may be
> > happening. The test I run is 1024 16k direct-IO reads/writes from
> > random locations within a 1GB file (on a RAID-1 partition), with my
> > disk caches set to
> > write-through mode. In the MT (multi-threaded) case, I issue them from
> > 8 threads (so it's 128 requests per thread):
> > 
> > Random read: 10.295 sec
> > Random write: 19.142 sec
> 
> Odd.  I would expect these two numbers to be a lot closer together.
> 
> Try changing the IO scheduler on the drives and see if it makes a
> difference.
> e.g.
>   cat /sys/block/XXX/queue/scheduler
>   echo cfq > /sys/block/XXX/queue/scheduler
>   echo deadline > /sys/block/XXX/queue/scheduler
> 
> See what works best.

His cache is set to write through, 16kb direct writes in that case will
be a lot slower than the equivalent reads. 10 vs 20 seconds does not
sounds out of the question.

-- 
Jens Axboe


  reply	other threads:[~2006-07-17  0:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-16  0:04 raid io requests not parallel? Jonathan Baccash
2006-07-16  1:07 ` Arjan van de Ven
2006-07-16  5:46 ` Avi Kivity
2006-07-16 16:38   ` Jonathan Baccash
2006-07-16 23:59 ` Neil Brown
2006-07-17  0:20   ` Jens Axboe [this message]
     [not found] <fa.di4ao4hbHlmvf0KHMl+KieWzn2E@ifi.uio.no>
2006-07-16  1:41 ` Robert Hancock
  -- strict thread matches above, loose matches on Subject: below --
2006-07-16  3:17 Chuck Ebbert
2006-07-16 20:08 Chuck Ebbert
2006-07-16 22:57 ` Jonathan Baccash

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=20060717002007.GA5032@suse.de \
    --to=axboe@suse.de \
    --cc=jbaccash@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@suse.de \
    /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