You are not logged in.

#1 2021-12-23 10:51:56

nlamirault
Member
Registered: 2021-10-22
Posts: 2

CryptSetup : Slow performance using Kernel 5.15.x

Hi,
after an upgrade, i've got my luks/lvm setup very slow :

Output of cryptsetup benchmark (XPS 13 / linux-5.15.10) :


#     Algorithm |       Key |      Encryption |      Decryption
        aes-cbc        128b        77.6 MiB/s       280.3 MiB/s
    serpent-cbc        128b         4.3 MiB/s        32.6 MiB/s
    twofish-cbc        128b         6.7 MiB/s        21.4 MiB/s
        aes-cbc        256b        58.2 MiB/s       221.9 MiB/s
    serpent-cbc        256b         5.7 MiB/s        33.9 MiB/s
    twofish-cbc        256b        12.5 MiB/s        19.6 MiB/s
        aes-xts        256b       153.9 MiB/s       214.7 MiB/s
    serpent-xts        256b        25.9 MiB/s        30.6 MiB/s
    twofish-xts        256b        18.2 MiB/s        18.4 MiB/s
        aes-xts        512b       201.3 MiB/s       196.5 MiB/s
    serpent-xts        512b        31.8 MiB/s        30.4 MiB/s
    twofish-xts        512b        19.8 MiB/s        20.0 MiB/s

All previous Kernel 5.15.x have same results. After downgrade to Linux 5.14.14 , resultats changes :

#     Algorithm |       Key |      Encryption |      Decryption
        aes-cbc        128b      1211.3 MiB/s      4510.6 MiB/s
    serpent-cbc        128b        71.6 MiB/s       526.5 MiB/s
    twofish-cbc        128b       180.4 MiB/s       305.2 MiB/s
        aes-cbc        256b       890.5 MiB/s      3382.7 MiB/s
    serpent-cbc        256b        72.9 MiB/s       501.3 MiB/s
    twofish-cbc        256b       177.5 MiB/s       313.6 MiB/s
        aes-xts        256b      3545.3 MiB/s      3575.8 MiB/s
    serpent-xts        256b       496.9 MiB/s       467.9 MiB/s
    twofish-xts        256b       311.8 MiB/s       310.6 MiB/s
        aes-xts        512b      3188.3 MiB/s      3205.6 MiB/s
    serpent-xts        512b       505.2 MiB/s       475.6 MiB/s
    twofish-xts        512b       314.1 MiB/s       315.2 MiB/s

does anyone have the same problem ?

Offline

#2 2021-12-23 11:40:25

frostschutz
Member
Registered: 2013-11-15
Posts: 1,647

Re: CryptSetup : Slow performance using Kernel 5.15.x

works fine for me - does cat /proc/cpuinfo and lsmod differ between kernels? in particular, the aes flag / aes modules? your benchmark result seems like the aes acceleration is not working for some reason.

Offline

#3 2021-12-24 07:18:07

nlamirault
Member
Registered: 2021-10-22
Posts: 2

Re: CryptSetup : Slow performance using Kernel 5.15.x

I've got the problem again ... after hibernate ...
Any idea how to solve that ?

Offline

Board footer

Powered by FluxBB