Re: Performance issue LUKS1 vs LUKS2

Ondrej Kozina <[email protected]> Fri, 28 Apr 2023 09:28:14 +0200
Newsgroups dev.linux.lists.cryptsetup
Message-ID <[email protected]>
On 27. 04. 23 18:08, Lodewyk van der Westhuizen wrote:
> Hello Milan,
> 
> Thank you for the response. I'll try to answer your questions as best I can.
> 
>> NOTE: LUKS1 is not cryptsetup version 1.x, it ia a metadata format.
>> All recent cryptsetup 2.x versions can use LUKS1 as well - just use "--type luks1"
>> in format (so you will compare the same formats on different kernels).
> OK let me rephrase, when using luks1 or luks2 the performance slowdown
> is still there. The only difference is the version of cryptsetup,
> dm-crypt and the kernel.
> 
>> You mean slowdown with access to encrypted data, not unlocking time, right?
> Correct, measuring the I/O (creating/deleting files)
> 
>> Which crypto modules are used? What architecture it is - do you use AES-NI
> acceleration on both systems?
> It's Red Hat for both machines (RHEL7 vs RHEL8).

Please open bug on https://bugzilla.redhat.com/ (product RHEL8). It may 
be system configuration issue unrelated to dm-crypt/cryptsetup. If it 
turns out to be issue in upstream code as well, I will open upstrem 
issue for it myself later.

Thank you
Ondrej