From: Sebastian Riemer <sebastian.riemer@profitbricks.com>
To: Roberto Spadim <roberto@spadim.com.br>
Cc: Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: Re: Reason for md raid1 max_sectors_kb limited to 127?
Date: Tue, 08 May 2012 18:07:13 +0200 [thread overview]
Message-ID: <4FA944B1.3010509@profitbricks.com> (raw)
On 07/05/12 17:33, Sebastian Riemer wrote:
> O.K., I've also tested 3.2.16 and there the problem still exists.
> Bernd pinpointed me to commit b1bd055d397e09f99dcef9b138ed104ff1812fcb
> (block: Introduce blk_set_stacking_limits function).
>
> After cherry-picking it on 3.2.16 it worked. Tomorrow I'll test the
> performance impact and verify it by block tracing.
>
> Cheers,
> Sebastian
>
I've measured the performance impact today.
This is my test system:
Supermicro H8DGi mainboard
2 x 8-core Opteron 6128, 2 GHz
32 GB RAM
LSI MegaRAID 9260-4i
16 x SEAGATE ST31000424SS nearline SAS
NFS root
Each HDD is exported by the HW RAID controller write through, direct, no
read-ahead.
These virtual drives have max_sectors_kb 320 only, but should be O.K.
for a first test.
I've got 8 x md raid1 and md raid0 on top, because we consider the md
raid10 driver to be worse in performance especially with >= 24 HDDs with
kernel 3.2. I've got also LVM on top with a 50 GiB LV. The LV has ext4
on it.
First I've tested the file copy on unpatched 3.2.16 kernel:
*312 MB/s* in average
Now, patched with the fix:
*379 MB/s* in average
That's a clear improvement, because of the big chunks! With a SAS HBA
and max_sectors_kb 512 this could be even better.
My copy test creates the file to be copied with fio and direct IO in
order to get random data into the file and to bypass all caching. Here
is the simple code:
#!/bin/bash
SIZES="1G"
FILE="test"
FILE2="test2"
MOUNTPOINT="/mnt/bench1"
for size in $SIZES; do
rm -f $MOUNTPOINT/$FILE $MOUNTPOINT/$FILE2
fio -name iops -rw=write -size="$size" -iodepth 1 -filename
$MOUNTPOINT/$FILE -ioengine libaio -direct=1 -bs=1M
echo -e "\n*** Starting Copy Test ***"
# blktrace /dev/md119 -b 4096 &
# pid=$!
time $(cp $MOUNTPOINT/$FILE $MOUNTPOINT/$FILE2; sync)
# kill -2 $pid
done
Cheers,
Sebastian
next reply other threads:[~2012-05-08 16:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-08 16:07 Sebastian Riemer [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-07 9:41 Reason for md raid1 max_sectors_kb limited to 127? Sebastian Riemer
2012-05-07 11:18 ` NeilBrown
2012-05-07 11:34 ` Sebastian Riemer
2012-05-07 14:04 ` Bernd Schubert
2012-05-07 14:14 ` Sebastian Riemer
[not found] ` <CABYL=ToyVwRGOkVs63iBgfWeTsjDQ=ofsYC4hgAVpABrWbHUjA@mail.gmail.com>
2012-05-07 14:47 ` Bernd Schubert
2012-05-07 15:33 ` Sebastian Riemer
2012-05-07 16:13 ` Bernd Schubert
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=4FA944B1.3010509@profitbricks.com \
--to=sebastian.riemer@profitbricks.com \
--cc=linux-raid@vger.kernel.org \
--cc=roberto@spadim.com.br \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.