linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Reading takes 100% precedence over writes for mdadm+raid5?
Date: Thu, 06 Dec 2007 11:11:26 -0500	[thread overview]
Message-ID: <47581F2E.7020400@tmr.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0712021807260.10289@p34.internal.lan>

Justin Piszcz wrote:
> root      2206     1  4 Dec02 ?        00:10:37 dd if /dev/zero of 
> 1.out bs 1M
> root      2207     1  4 Dec02 ?        00:10:38 dd if /dev/zero of 
> 2.out bs 1M
> root      2208     1  4 Dec02 ?        00:10:35 dd if /dev/zero of 
> 3.out bs 1M
> root      2209     1  4 Dec02 ?        00:10:45 dd if /dev/zero of 
> 4.out bs 1M
> root      2210     1  4 Dec02 ?        00:10:35 dd if /dev/zero of 
> 5.out bs 1M
> root      2211     1  4 Dec02 ?        00:10:35 dd if /dev/zero of 
> 6.out bs 1M
> root      2212     1  4 Dec02 ?        00:10:30 dd if /dev/zero of 
> 7.out bs 1M
> root      2213     1  4 Dec02 ?        00:10:42 dd if /dev/zero of 
> 8.out bs 1M
> root      2214     1  4 Dec02 ?        00:10:35 dd if /dev/zero of 
> 9.out bs 1M
> root      2215     1  4 Dec02 ?        00:10:37 dd if /dev/zero of 
> 10.out bs 1M
> root      3080 24.6  0.0  10356  1672 ?        D    01:22   5:51 dd if 
> /dev/md3 of /dev/null bs 1M
>
> Was curious if when running 10 DD's (which are writing to the RAID 5) 
> fine, no issues, suddenly all go into D-state and let the read/give it 
> 100% priority?
>
> Is this normal?

I'm jumping back to the start of this thread, because after reading all 
the discussion I noticed that you are mixing apples and oranges here. 
Your write programs are going to files in the filesystem, and your read 
is going against the raw device. That may explain why you see something 
I haven't noticed doing all filesystem i/o.

I am going to do a large rsync to another filesystem in the next two 
days, I will turn on some measurements when I do. But if you are just 
investigating this behavior, perhaps you could retry with a single read 
from a file rather than the device.

    [...snip...]

-- 
Bill Davidsen <davidsen@tmr.com>
  "Woe unto the statesman who makes war without a reason that will still
  be valid when the war is over..." Otto von Bismark 



  parent reply	other threads:[~2007-12-06 16:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-02 23:09 Reading takes 100% precedence over writes for mdadm+raid5? Justin Piszcz
2007-12-02 23:18 ` Neil Brown
2007-12-02 23:26   ` Justin Piszcz
2007-12-06  1:27     ` Jon Nelson
2007-12-06  9:06       ` Justin Piszcz
2007-12-06  9:26         ` David Rees
2007-12-06  9:27           ` Justin Piszcz
2007-12-06 13:43           ` Jon Nelson
2007-12-06 16:11 ` Bill Davidsen [this message]
2007-12-09  0:13   ` Jon Nelson

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=47581F2E.7020400@tmr.com \
    --to=davidsen@tmr.com \
    --cc=jpiszcz@lucidpixels.com \
    --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).