Severe LUKS Encryption Performance Regression on AMD Zen 4 (Ryzen 7 7840HS) with PVE Kernel

Status
Not open for further replies.

ppedro

Member
Apr 21, 2023
3
1
8
Hello,
I'd like to report and share data on a significant performance issue I've identified with LUKS full-disk encryption on a gmktec k6 running the latest Proxmox VE.

Summary
When performing an fio benchmark on a standard LUKS-encrypted volume, the performance on Proxmox VE is approximately 8 times slower than on a fresh installation of Ubuntu 24.04 on the exact same hardware.
Through extensive testing, I have confirmed that this is not due to a misconfiguration. The CPU governor, LUKS on-disk format, cipher, and data offset are all configured identically and optimally on both systems.


Hardware

  • CPU: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
  • Storage: NVMe SSD

Comparative Analysis Summary

This table summarizes the key findings from both installations on the same machine.
[th]
Feature / Test​
[/th][th]
Proxmox VE Installation​
[/th][th]
Ubuntu 24.04 Installation​
[/th][th]
Result / Status​
[/th]​
[td]
fio Sequential Write
[/td][td]
~248 MB/s
[/td][td]
~1980 MB/s
[/td][td]
~8x Performance Difference
[/td]​
[td]
NVMe Drive
[/td][td]
Samsung PM9B1 (PCIe 4.0)
[/td][td]
Samsung 980 (PCIe 3.0)
[/td][td]
Slower performance on faster hardware
[/td]​
[td]
CPU Governor (under load)
[/td][td]
performance
[/td][td]
schedutil (Dynamic High-Perf)​
[/td][td]
Identical (Optimal)
[/td]​
[td]
Kernel Version
[/td][td]
6.8.12-11-pve
[/td][td]
6.11.0-26-generic
[/td][td]
Key Software Difference
[/td]​
[td]
cryptsetup Version
[/td][td]
2.6.1
[/td][td]
2.7.0
[/td][td]
(Minor Difference)
[/td]​
[td]
LUKS Cipher
[/td][td]
aes-xts-plain64
[/td][td]
aes-xts-plain64
[/td][td]
Identical (Optimal)
[/td]​
[td]
LUKS Data Offset
[/td][td]
16,777,216 bytes
[/td][td]
16,777,216 bytes
[/td][td]
Identical (Optimal)
[/td]​
Export to Sheets​

 
Status
Not open for further replies.