From: Milan Broz <mbroz@redhat.com>
To: Matthias Schniedermeyer <ms@citd.de>
Cc: Mathias Buren <mathias.buren@ie.ibm.com>, linux-kernel@vger.kernel.org
Subject: Re: RAID + LUKS + LVM performance
Date: Fri, 12 Mar 2010 14:12:12 +0100 [thread overview]
Message-ID: <4B9A3DAC.3020008@redhat.com> (raw)
In-Reply-To: <20100312120643.GA26020@citd.de>
On 03/12/2010 01:06 PM, Matthias Schniedermeyer wrote:
> Using one of the Westmere Core i5-6XX, which support AES-NI, should get
> you better performance (if supported by krcyptd), altough you loose 2
> cores as onyl have 2. But i don't know what kind of performance
> improvement (if any) AES-NI provides.
> Or you wait a few weeks and buy on Core I7-980X with 6 core and AES-NI.
dm-crypt uses whatever is implemented in cryptoAPI, AES-NI of course works
when you have proper modules loaded.
The main reason why dm-crypt is single-threaded is that all these new
crypto accelerators uses asynchronous crypto API, so if hw allows
parallel operation it can use it already.
(dm-crypt submits all sectors in bio as separate asynchronous crypto requests).
But note: single threaded per volume - if you have LVM with multiple
encrypted LVs - every LV have its own thread.
If we build another multi-core(thread) processing in dm-crypt, it can
help on multi-core CPU but complicate things otherwise.
(I tried simple implementation and abandoned it, I would prefer
if cryptoAPI can do some parallel processing itself here.
That question was discussed several times on dm-crypt mailing list.)
Anyway, only two real-world examples, where one thread
in dm-crypt can cause real problems with speed
- dm-crypt over fast RAID(5)
- dm-crypt over fast SSD.
And many users of these configurations have now AES-NI acceleration.
Milan
--
mbroz@redhat.com
next prev parent reply other threads:[~2010-03-12 13:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 13:08 RAID + LUKS + LVM performance Mathias Buren
2010-03-11 17:36 ` Matthias Schniedermeyer
2010-03-11 17:51 ` david
2010-03-11 19:07 ` Matthias Schniedermeyer
2010-03-12 8:47 ` Mathias Buren
2010-03-12 12:06 ` Matthias Schniedermeyer
2010-03-12 13:12 ` Milan Broz [this message]
2010-03-12 15:46 ` Matthias Schniedermeyer
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=4B9A3DAC.3020008@redhat.com \
--to=mbroz@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathias.buren@ie.ibm.com \
--cc=ms@citd.de \
/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.