-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
very slow read speed with encryption #9786
Comments
There is optimization work underway for the AES-GCM case in #9749 which should help considerably. |
@behlendorf Thanks for the link, I really hope something will happen to improve this. @mabod I feel your pain. I moved a small and underpowered NAS from freenas to Debian and at the same time kept using ZFS and the encryption speed went from acceptable to horrendous. (I was using GELI encryption on freenas). |
Today I tested zfs native encryption again. I used zfs master v0.8.0-753_g6ed4391da I am very happy with the results. Native encryption performance has significantly improved. I tested without compression on my Samsung SSD 970 EVO Plus 1TB. The fio results are as follows: without encryption. 4 runs gives average
with encryption enabled (using default aes-256-gcm) 4 runs gives average
There is basically no difference in the write speed. And read performance with encryption is at 84 %. That is not bad! Thank you developers for your continuous efforts! |
What is your CPU and mem speed when you did this test? |
I am testing on a Ryzen 7 3700x with 64 GB DDR4 RAM with 3200 MHz. Here are my most recent test results with
The following numbers are reproducible with little variation up and down. no encryption:
with encryption:
That does not look too bad. In fact I am not complaining anymore. PS |
@mabod looks like this issue may be closed then. |
yes. The performance is a lot better. |
System information
Describe the problem you're observing
With native encryption enabled the sequential read speed is dropping to ca. 20 % of the speed I see without encryption. The seq. write speed is not so much impacted. It stays at ca. 80 %.
And at the same time CPU load is going up to almost 100 %.
The encryption algorithm does not make a big difference. I tested with aes-128-gcm, aes-128-ccm and aes-256-ccm
I tested on a M2 SSD Samsung 970 EVO Plus 500GB
Describe how to reproduce the problem
fio benchmark seq. read and seq. write with these option files
This is the fio result I see without encryption (just one representative example out of many tries):
While this is the result with encryption (just one representative example out of many tries):
I also tested with kernel 4.19.91. The performance is slightly better, the CPU load is also slightly better compared to kernel 5.4.6 but the GUI is stuttering (XFCE). If I move a window while fio is running, the window stops moving for a fraction of a second every other second. This does not happen with kernel 5.4.6.
fio output with kernel 4.19.91:
zfs parameters of the dataset:
The text was updated successfully, but these errors were encountered: