smuellerDD / jitterentropy-library

Jitterentropy Library
http://www.chronox.de/jent
Other
101 stars 40 forks source link

High CPU usage on IMx 6 DL #80

Closed paletteguy closed 2 years ago

paletteguy commented 2 years ago

When using kernel 5.10.72 I see a high CPU usage for the rngd (150 - 194 %) when jitter is enabled disabling jitter support removes the high CPU usage for 5 minutes during boot.

Using latest version of the library.

paletteguy commented 2 years ago

Configuration issue in rngd on im6 using these settings reduced time from 3.45 to 0.35 minutes

on Yocto Honister: EXTRA_ARGS="-O jitter:refill_thresh:2048 -O jitter:buffer_size:2048 -O jitter:thread_count:1 -d -r /dev/hwrng"

dermotbradley commented 2 years ago

@paletteguy Hi, I did extensive investigation together with the jitterentropy-library and rng-tools devs into this type of issue on Arm devices 3 months ago: https://github.com/nhorman/rng-tools/issues/150