-
Notifications
You must be signed in to change notification settings - Fork 34
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
Disconnect between docs and source - entropy every 60 or 600 seconds? #82
Comments
Good point! I have set the default to 60 seconds and added a new command-line parameter,
Please let me know if it works for you. I will then release the new version. deff543#diff-043ded6506fb937c60ed15d0e9cfe02d6de6c72bcbd0bb14b7ad5e64ee7a6713R168 |
That's perfect. Thanks so much for looking at this so quickly. BTW, do you happen to have any relationship with the Debian package maintainers for this? I would like to convince them this is a bug fix worthy of getting a package update for into Debian 12 rather than wait for 13 (just to cut down on manually tweaked services). |
OK, I have released a new version: I'm sorry, I have no contact with Debian package maintainers. I manage Fedora packages. |
Both Debian package maintainers retired. I'm considering volunteering for the post myself. I'm looking more closely at the timed injections. I wasn't sure the timed entropy injections were happening because they weren't logged and weren't affecting the numbers when haveged terminated. I now think it's just a stats/logging bug in the timed injection code:
Sorry I didn't catch this earlier. Timed injections are happening on time, they just aren't getting printed when logging is enabled, and don't affect the stats at termination. |
Regarding I think you are looking for another counter - how many times entropy was added to kernel. There is currently no variable for that but we can certainly add one. |
I can't speak to the rest of haveged, but the code above is clearly set up to log if an only if It looks to me like whomever wrote this section either also didn't understand what n_fills is for, or else n_fills was for this purpose originally and got co-opted. |
There is a disconnect between the documentation, where the README states:
...and the source code, which reads:
Every ten minutes is far too long to be useful in any real sense. Recommend this be reduced to the stated 60 seconds. It could actually be useful to further reduce this, and/or make it settable on the command-line.
Just by way of explanation of my use case, I employ several VPSes which produce CPUs that report having "rdrand", but which I have verified that "rdrand" is not actually being passed on to the host CPU. Where it's going, I don't know, but I want to employ haveged to salt my entropy pool regularly. I think it would be useful on such systems to use haveged inject entropy at much lower intervals, perhaps as low as every 5 seconds.
The text was updated successfully, but these errors were encountered: