From: Chuck Ebbert <76306.1226@compuserve.com>
To: linux-raid <linux-raid@vger.kernel.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Two RAID1 mirrors are faster than three
Date: Sun, 11 May 2003 22:10:07 -0400 [thread overview]
Message-ID: <200305112212_MC3-1-386B-32BF@compuserve.com> (raw)
All these tests were run on 2.4.21-rc2-ac1...
We start out with a three disk raid1 array in failure mode:
md21 : active raid1 hdi9[1] hdg9[2]
3145856 blocks [3/2] [_UU]
There are three 500 MiB contiguous files in the volume root:
-rw-r--r-- 1 root root 524288000 May 11 13:53 file1
-rw-r--r-- 1 root root 524288000 May 11 13:54 file2
-rw-r--r-- 1 root root 524288000 May 11 13:55 file3
First test is a single sequential stream:
# umount /mnt/md21; mount /mnt/md21
# time dd if=/mnt/md21/file1 of=/dev/null bs=64k &
real 0m18.230s <==== 27.5 MiB/s
user 0m0.020s
sys 0m3.760s
Now two streams:
# umount /mnt/md21; mount /mnt/md21
# time dd if=/mnt/md21/file1 of=/dev/null bs=64k &
# time dd if=/mnt/md21/file2 of=/dev/null bs=64k &
real 0m18.065s <==== 27.6 MiB/s
user 0m0.040s
sys 0m4.280s
real 0m23.197s <==== 21.6 MiB/s
user 0m0.020s
sys 0m4.250s
Add the third disk back into the array:
# raidhotadd /dev/md21 /dev/hde9
[rebuilt 3000MiB in 313s == (3000+3000)/313 == 19MiB/s throughput]
Now rerun the two streams test:
# umount /mnt/md21; mount /mnt/md21
# time dd if=/mnt/md21/file1 of=/dev/null bs=64k &
# time dd if=/mnt/md21/file2 of=/dev/null bs=64k &
real 0m50.336s <==== 9.94 MiB/s (!)
user 0m0.030s
sys 0m4.350s
real 0m50.431s <==== 9.91 MiB/s (!)
user 0m0.030s
sys 0m4.200s
So 50% more hardware (disks, channels) gives a 60% performance drop
when using raid1 with sequential reads... and raid1.c:read_balance()
is the culprit.
Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4
HPT370: IDE controller at PCI slot 00:0d.0
HPT370: chipset revision 3
PDC20262: IDE controller at PCI slot 00:10.0
PDC20262: chipset revision 1
hde: MAXTOR 4K060H3, ATA DISK drive
hdg: MAXTOR 4K060H3, ATA DISK drive
hdi: MAXTOR 4K060H3, ATA DISK drive
hde: hde1 hde2 hde3 hde4 < hde5 hde6 hde7 hde8 hde9 hde10 >
hdg: hdg1 hdg2 hdg3 hdg4 < hdg5 hdg6 hdg7 hdg8 hdg9 hdg10 >
hdi: hdi1 hdi2 hdi3 hdi4 < hdi5 hdi6 hdi7 hdi8 hdi9 hdi10 >
next reply other threads:[~2003-05-12 2:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-12 2:10 Chuck Ebbert [this message]
2003-05-12 4:35 ` Clemens Schwaighofer
2003-05-12 5:10 ` Anders Karlsson
2003-05-12 5:41 ` Paul P Komkoff Jr
2003-05-12 7:23 ` Anders Karlsson
2003-05-12 8:40 ` Clemens Schwaighofer
2003-05-12 9:30 ` [OT] " Anders Karlsson
2003-05-12 11:20 ` Paul P Komkoff Jr
2003-05-12 14:29 ` Valdis.Kletnieks
2003-05-13 2:24 ` Clemens Schwaighofer
2003-05-13 7:41 ` Anders Karlsson
2003-05-12 14:56 ` Lars Marowsky-Bree
2003-05-15 7:21 ` Riley Williams
2003-05-15 10:51 ` Anders Karlsson
2003-05-19 8:19 ` Jakob Oestergaard
2003-05-12 16:32 Chuck Ebbert
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=200305112212_MC3-1-386B-32BF@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®