When native encryption is enabled, sync writes are slow. #9458
Labels
Component: Encryption
"native encryption" feature
Status: Stale
No recent activity for issue
Type: Performance
Performance improvement or performance problem
System information
Describe the problem you're observing
When native encryption is enabled, sync writes are slow.
Describe how to reproduce the problem
Prepare test environment in the following way (assuming that tmpfs is mounted to /tmp):
For no-encyption tests create the pool in the following way:
For encryption tests create the pool in the following way:
Perform async tests in the following way:
Perform sync tests in the following way:
Results of the tests on my machine are summarized in the table below:
My machine is a Xeon 4208 (8x 2.1GHz, AES-NI, AVX2, AVX512f, AVX512dq, AVX512cd, AVX512bw, AVX512vl).
It happens that async encryption performance above is roughly the same as async encryption/no-encryption performance of zpool build on actual HDDs (see #9375) thus I don't observe encryption slowdown on async write operations. The encryption/sync slowdown reported above is somewhat concerning.
I understand that native encryption is a new feature and not all performance optimizations are in place yet (are we using aes-ni?). I will let you triage this issue as a bug/feature request depending on your preferences.
Include any warning/errors/backtraces from the system logs
None
The text was updated successfully, but these errors were encountered: