From: Milan Broz <gmazyland@gmail.com>
To: Martin Hicks <mort@bork.org>
Cc: dm-crypt <dm-crypt@saout.de>
Subject: Re: [dm-crypt] Larger encryption requests from dm-crypt
Date: Wed, 25 Mar 2015 21:51:42 +0100 [thread overview]
Message-ID: <55131FDE.204@gmail.com> (raw)
In-Reply-To: <20150325200150.GA2747@darwin.bork.org>
On 03/25/2015 09:01 PM, Martin Hicks wrote:
>
> Hi,
>
> I figured that I'd push this patch to the list for comments. This stems
> from recent work on the linux-crypto/linuxppc-dev lists regarding
> AES-XTS support for the Freescale Talitos engine. The background can be
> found in this message and the rest of the thread:
>
> http://marc.info/?l=linux-crypto-vger&m=142533320730893&w=2
>
> The AES-XTS mode in Talitos allows sending a starting IV (usually sector
> #), and the hardware increments this as new sectors are
> encrypted/decrypted. This allowed me to investigate not only
> dispatching 4kB IOs, but also to extend the scatter/gather lists to
> include as much IO as Talitos can handle in a single request (64kB - 1,
> or rounding down, 60kB).
>
> The original performance numbers that I quoted follow, with the extra
> larger-IO up to 60kB line:
>
> Write (MB/s) Read (MB/s)
> Unencrypted 140 176
> aes-xts-plain64 4kB 113 115
> aes-xts-plain64 512b 71 56
> aes-xts-plain64 60kB 120 132
>
> with IOs up to 60kB, the performance is even closer to the un-encrypted
> values.
>
> It's certainly not a pretty patch, but as a proof of concept it does
> work. I avoided the IV issues by just ifdeffing them out...
Hi,
Well, I already commented it on that thread.
http://marc.info/?l=linuxppc-embedded&m=142530788521032&w=2
TBH I do not share optimism here because we can use different dmcrypt IVs,
not only consecutive one. (It is discussed in this thread as well.)
Note that dmcrypt should always be generic without any specific hw-related tweaks.
It is very interesting for testing your hardware but I am afraid it is not usable
in upstream kernel this way.
Also please note that there are very complex changes in dmcrypt in kernel 4.0,
not sure if you will be able to easily port it there...) but you should definitely
compare performance with the 4.0 version.
(Why it is so slow for 512bytes sectors? Isn't it problem of hw?
The overhead should not be such high...)
Thanks,
Milan
p.s.
The real list for DM patches is dm-devel@redhat.com with optional cc here
if it is dmcrypt related (on dm-devel are more experts familiar even with dmcrypt).
next prev parent reply other threads:[~2015-03-25 20:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 20:01 [dm-crypt] Larger encryption requests from dm-crypt Martin Hicks
2015-03-25 20:51 ` Milan Broz [this message]
2015-03-26 2:54 ` Arno Wagner
2015-03-27 13:40 ` Martin Hicks
2015-03-30 16:52 ` Arno Wagner
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=55131FDE.204@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
--cc=mort@bork.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 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.