From: Bill Davidsen <davidsen@tmr.com>
To: Nix <nix@esperi.org.uk>
Cc: Steve Cousins <steve.cousins@maine.edu>,
Sevrin Robstad <quackyo@start.no>,
linux-raid@vger.kernel.org
Subject: Re: bad performance on RAID 5
Date: Sun, 21 Jan 2007 14:09:07 -0500 [thread overview]
Message-ID: <45B3BA53.1030206@tmr.com> (raw)
In-Reply-To: <87wt3gtiih.fsf@hades.wkstn.nix>
Nix wrote:
> On 18 Jan 2007, Bill Davidsen spake thusly:
>
>> ) Steve Cousins wrote:
>>
>>> time dd if=/dev/zero of=/mount-point/test.dat bs=1024k count=1024
>>>
>> That doesn't give valid (repeatable) results due to caching issues. Go
>> back to the thread I started on RAID-5 write, and see my results. More
>> important, the way I got rid of the cache effects (beside an unloaded
>> systems) was:
>> sync; time bash -c "dd if=/dev/zero bs=1024k count=2048 of=/mnt/point/file; sync"
>> I empty the cache, then time the dd including the sync at the
>> end. Results are far more repeatable.
>>
>
> Recent versions of dd have `oflag=direct' as well, to open the output
> with O_DIRECT. (I'm not sure what the state of O_DIRECT on regular files
> is though.)
>
>
Doing the write using page cache and then just a single sync at the end
gives a closer estimate of what can be written to the array in general.
By going to O_DIRECT every i/o take place unbuffered, which is more
typical of database use or similar. My original problem was capturing
real data at 75MB/s and not being able to write it to an array that
fast, taking advantage of page cache. By going to huge stripe cache,
about 20x larger than default, performance was boosted to a more useful
level.
I think both measurements are useful, but they aren't measuring the same
thing.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
next prev parent reply other threads:[~2007-01-21 19:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-17 21:33 bad performance on RAID 5 Sevrin Robstad
2007-01-17 22:38 ` Justin Piszcz
2007-01-18 9:06 ` Raz Ben-Jehuda(caro)
2007-01-18 18:20 ` Sevrin Robstad
2007-01-18 19:56 ` Raz Ben-Jehuda(caro)
2007-01-18 23:01 ` Bill Davidsen
2007-01-18 18:19 ` Sevrin Robstad
2007-01-18 19:02 ` Mark Hahn
2007-01-18 20:47 ` Sevrin Robstad
2007-01-18 18:29 ` Steve Cousins
2007-01-18 20:43 ` Sevrin Robstad
2007-01-18 23:10 ` Bill Davidsen
2007-01-21 17:08 ` Nix
2007-01-21 19:09 ` Bill Davidsen [this message]
2007-01-19 1:33 ` dean gaudet
2007-01-20 10:18 ` Roger Lucas
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=45B3BA53.1030206@tmr.com \
--to=davidsen@tmr.com \
--cc=linux-raid@vger.kernel.org \
--cc=nix@esperi.org.uk \
--cc=quackyo@start.no \
--cc=steve.cousins@maine.edu \
/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).