-
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
Hangs in ztest due to /dev/random entropy exhaustion #7017
Comments
For this very reason |
@behlendorf I hadn't noticed that, but it doesn't help running |
I'm not sure we can get away with that trick here, let's get @tcaputi's thoughts. What do you think can we safely use use |
The interesting thing I noticed is that the kernel's rng wont block under any circumstances. So I have actually wondered for a while if |
From the archwiki page on
|
I've proposed #7036 as a simple fix. I'm reluctant to always have |
@ptx0 I am not sure if they have access to hardware RNGs, but rngd (from rng-tools) seems to give it enough entropy to run well. @behlendorf Should #7036 also remove the rngd requirement and calls to it rfom zloop.sh? |
@tcaputi I did remove the calls from |
LGTM |
For ztest, which is solely for testing, using a pseudo random is entirely reasonable. Using /dev/urandom ensures the system entropy pool doesn't get depleted thus stalling the testing. This is a particular problem when testing in VMs. Reviewed-by: Tim Chase <[email protected]> Reviewed by: Thomas Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#7017 Closes openzfs#7036
For ztest, which is solely for testing, using a pseudo random is entirely reasonable. Using /dev/urandom ensures the system entropy pool doesn't get depleted thus stalling the testing. This is a particular problem when testing in VMs. Reviewed-by: Tim Chase <[email protected]> Reviewed by: Thomas Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#7017 Closes openzfs#7036
For ztest, which is solely for testing, using a pseudo random is entirely reasonable. Using /dev/urandom ensures the system entropy pool doesn't get depleted thus stalling the testing. This is a particular problem when testing in VMs. Reviewed-by: Tim Chase <[email protected]> Reviewed by: Thomas Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#7017 Closes openzfs#7036
For ztest, which is solely for testing, using a pseudo random is entirely reasonable. Using /dev/urandom ensures the system entropy pool doesn't get depleted thus stalling the testing. This is a particular problem when testing in VMs. Reviewed-by: Tim Chase <[email protected]> Reviewed by: Thomas Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#7017 Closes openzfs#7036
System information
Describe the problem you're observing
Ztest can hang for long periods of time due to exhaustion of entry in
/dev/random
caused by frequent creation of encrypted datasets.Describe how to reproduce the problem
Run ztest a bunch of times.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: