[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/6] crypto: improve performance of XTS cipher m
From: |
Daniel P . Berrangé |
Subject: |
Re: [Qemu-devel] [PATCH 0/6] crypto: improve performance of XTS cipher mode |
Date: |
Tue, 9 Oct 2018 15:13:07 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Oct 09, 2018 at 05:59:46PM +0400, Marc-André Lureau wrote:
> Hi
>
> On Tue, Oct 9, 2018 at 4:57 PM Daniel P. Berrangé <address@hidden> wrote:
> >
> > The XTS cipher mode is significantly slower than CBC mode. This series
> > approximately doubles the XTS performance which will improve the I/O
> > rate for LUKS disks.
> >
> > Daniel P. Berrangé (6):
> > crypto: expand algorithm coverage for cipher benchmark
> > crypto: remove code duplication in tweak encrypt/decrypt
> > crypto: introduce a xts_uint128 data type
> > crypto: convert xts_tweak_encdec to use xts_uint128 type
> > crypto: convert xts_mult_x to use xts_uint128 type
> > crypto: annotate xts_tweak_encdec as inlineable
> >
> > crypto/xts.c | 147 ++++++++++++++-----------------
> > tests/benchmark-crypto-cipher.c | 149 +++++++++++++++++++++++++++-----
> > 2 files changed, 191 insertions(+), 105 deletions(-)
>
> By using a constant amount of data to process, it's easier to measure
> perfomance with perf stat:
The problem is that the different encryption modes have wildly
different performance. eg while XTS gets 400 MB/s, ECB gets
3000 MB/s. I want the test to run long enough to minimize the
noise, and picking a data size large enough for best ECB
perf while not being excessively large for XTS is hard. THus
I prefer to have a fixed execution time for each test.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [Qemu-devel] [PATCH 5/6] crypto: convert xts_mult_x to use xts_uint128 type, (continued)
[Qemu-devel] [PATCH 6/6] crypto: annotate xts_tweak_encdec as inlineable, Daniel P . Berrangé, 2018/10/09
[Qemu-devel] [PATCH 4/6] crypto: convert xts_tweak_encdec to use xts_uint128 type, Daniel P . Berrangé, 2018/10/09
Re: [Qemu-devel] [PATCH 0/6] crypto: improve performance of XTS cipher mode, Marc-André Lureau, 2018/10/09
- Re: [Qemu-devel] [PATCH 0/6] crypto: improve performance of XTS cipher mode,
Daniel P . Berrangé <=