From: Bill Davidsen <davidsen@tmr.com>
To: Rob Bray <raid@bymeinc.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Raid5 reads and cpu
Date: Mon, 04 Sep 2006 13:09:45 -0400 [thread overview]
Message-ID: <44FC5DD9.5040200@tmr.com> (raw)
In-Reply-To: <46510.192.168.0.1.1156790033.squirrel@bymeinc.com>
Rob Bray wrote:
>This might be a dumb question, but what causes md to use a large amount of
>cpu resources when reading a large amount of data from a raid1 array?
>Examples are on a 2.4GHz AMD64, 2GB, 2.6.15.1 (I realize there are md
>enhancements to later versions; I had some other unrelated issues and
>rolled back to one I've run on for several months).
>
>A given 7-disk raid0 array can read 450MB/s (using cat > null) and use
>virtually no CPU resources. (Although cat and kswapd use quite a bit [60%]
>munching on the data)
>
>A raid5 array on the same drive set pulls in at 250MB/s, but md uses
>roughly 50% of the CPU (the other 50% is spent dealing with the data,
>saturating the processor).
>
>A consistency check on the raid5 array uses roughly 3% of the cpu. It is
>otherwise ~97% idle.
>md11 : active raid5 sdi2[5] sdh2[4] sdf2[3] sde2[2] sdd2[1] sdc2[6] sdb2[0]
> 248974848 blocks level 5, 256k chunk, algorithm 2 [7/7] [UUUUUUU]
> [==============>......] resync = 72.2% (29976960/41495808)
>finish=3.7min speed=51460K/sec
>(~350MB/s aggregate throughput, 50MB/s on each device)
>
>Just a friendly question as to why CPU utilization is significantly
>different between a check and a real-world read on raid5? I feel like if
>there was vm overhead getting the data into userland, the slowdown would
>be present in raid0 as well. I assume parity calculations aren't done on a
>read of the array, which leaves me at my question.
>
>
What are you stripe and cache sizes?
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
next prev parent reply other threads:[~2006-09-04 17:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-28 18:33 Raid5 reads and cpu Rob Bray
2006-09-04 17:09 ` Bill Davidsen [this message]
2006-09-07 20:53 ` Rob Bray
-- strict thread matches above, loose matches on Subject: below --
2006-08-28 18:33 Rob Bray
2006-09-04 6:08 ` Neil Brown
2006-09-07 20:47 ` Rob Bray
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=44FC5DD9.5040200@tmr.com \
--to=davidsen@tmr.com \
--cc=linux-raid@vger.kernel.org \
--cc=raid@bymeinc.com \
/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).