[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 3/5] iotests: reduce PBKDF iterations when te
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH v5 3/5] iotests: reduce PBKDF iterations when testing LUKS |
Date: |
Wed, 31 May 2017 17:41:19 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 2017-05-09 19:33, Daniel P. Berrange wrote:
> By default the PBKDF algorithm used with LUKS is tuned
> based on the number of iterations to produce 1 second
> of running time. This makes running the I/O test with
> the LUKS format orders of magnitude slower than with
> qcow2/raw formats.
>
> When creating LUKS images, set the iteration time to
> a 10ms to reduce the time overhead for LUKS, since
> security does not matter in I/O tests.
>
> Previously a full 'check -luks' would take
>
> $ time ./check -luks
> Passed all 22 tests
>
> real 23m9.988s
> user 21m46.223s
> sys 0m22.841s
>
> Now it takes
>
> $ time ./check -luks
> Passed all 22 tests
>
> real 4m39.235s
> user 3m29.590s
> sys 0m24.234s
>
> Still slow compared to qcow2/raw, but much improved
> none the less.
>
> Reviewed-by: Eric Blake <address@hidden>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> tests/qemu-iotests/149 | 3 +
> tests/qemu-iotests/149.out | 118
> +++++++++++++++++++--------------------
> tests/qemu-iotests/common.filter | 3 +-
> tests/qemu-iotests/common.rc | 3 +
> 4 files changed, 67 insertions(+), 60 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature