]> Git Repo - qemu.git/commit
iotests: reduce PBKDF iterations when testing LUKS
authorDaniel P. Berrange <[email protected]>
Mon, 26 Jun 2017 12:35:08 +0000 (13:35 +0100)
committerMax Reitz <[email protected]>
Tue, 11 Jul 2017 15:45:00 +0000 (17:45 +0200)
commit307d999198599fe672e69379c99b6db17b961b4e
tree462a36f09f39172a8ff272e6bfd65338ae7d44a3
parent13a1d4a71bdbc0968886ed656dee0e35dfaaf906
iotests: reduce PBKDF iterations when testing LUKS

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: Max Reitz <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Daniel P. Berrange <[email protected]>
Message-id: 20170626123510[email protected]
Signed-off-by: Max Reitz <[email protected]>
tests/qemu-iotests/149
tests/qemu-iotests/149.out
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.rc
This page took 0.031735 seconds and 4 git commands to generate.