From: Dmitry Nezhevenko <dion@inhex.net>
To: linux-kernel@vger.kernel.org
Subject: dm-crypt and huge performance penalty
Date: Tue, 21 Sep 2010 01:37:00 +0300 [thread overview]
Message-ID: <20100920223700.GA20507@laptop.local> (raw)
Hi,
I've just purchased three HDD drives and tried to setup mdadm RAID5 +
dm-crypt.
What I've found is that dm-crypt reduces storage I/O performance very much
while CPU is not bottleneck.
Firstly I've tried to setup raid5 and then dm-crypt on top of it. After
discovering issue I've tried just raid5 and confirmed that mdadm itself
works as expected.
And the last idea is to setup three dm-crypt partitions and then raid5 on
top of independently encrypted drives.
So here are my results:
| mdadm | mdadm+dm-crypt | 3 x dm-crypt + mdadm |
Seq. read | 168 Mb/s | 57 Mb/s | 119 Mb/s |
Seq. write | 80 Mb/s | 36 Mb/s | 64.4 Mb/s |
Also here are some results using both dd and bonnie as benchmark:
http://pastebin.com/hwwkRRTd
I'm using 3 x WD1002FAEX-00Z3A0 HDD. SATA controller is just embedded to
m/b:
00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4
port SATA IDE Controller (rev 06)
00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2
port SATA IDE Controller (rev 06)
dd tests were done using simple dd:
if=/dev/resulting-device of=/dev/zero bs=1m count=512
For Bonnie I've used 50GB reiserfs3 partition on top of resulting device.
Are these numbers expected? They looks really strange for me.
--
WBR, Dmitry
next reply other threads:[~2010-09-20 23:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-20 22:37 Dmitry Nezhevenko [this message]
2010-09-22 23:52 ` Ryan Castellucci
2010-09-23 6:32 ` Dmitry Nezhevenko
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=20100920223700.GA20507@laptop.local \
--to=dion@inhex.net \
--cc=linux-kernel@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®