[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH v2 3/5] iotests: reduce PBKDF itera
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH v2 3/5] iotests: reduce PBKDF iterations when testing LUKS |
Date: |
Tue, 3 Jan 2017 13:07:43 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 01/03/2017 11:04 AM, 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.
>
> Previsouly 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.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH v2 0/5] Improve I/O tests coverage of LUKS, Daniel P. Berrange, 2017/01/03
- [Qemu-block] [PATCH v2 1/5] iotests: skip 159 & 170 with luks format, Daniel P. Berrange, 2017/01/03
- [Qemu-block] [PATCH v2 2/5] iotests: fix remainining tests to work with LUKS, Daniel P. Berrange, 2017/01/03
- [Qemu-block] [PATCH v2 3/5] iotests: reduce PBKDF iterations when testing LUKS, Daniel P. Berrange, 2017/01/03
- [Qemu-block] [PATCH v2 4/5] iotests: add more LUKS hash combination tests, Daniel P. Berrange, 2017/01/03
- [Qemu-block] [PATCH v2 5/5] iotests: chown LUKS device before qemu-io launches, Daniel P. Berrange, 2017/01/03