/dev/random Seeing Performance Work For Linux 5.7

Written by Michael Larabel in Linux Kernel on 6 April 2020 at 06:45 AM EDT. 4 Comments
LINUX KERNEL
The Linux 5.7 kernel will bring random performance improvements as in /dev/random.

First up for boosting the /dev/random performance on the in-development Linux 5.7 kernel is making use of batched CRNG output in place of the CPU RNG instructions in order to deliver better performance. This is an improvement made by WireGuard's Jason Donenfeld after noting the RdRand instruction can be quite slow. With this batched entropy for get random, his accepted patch delivers better performance and also fits better from a security perspective.

The other performance improvement is credited/trusted RNG support for AArch64 hardware. This is about improving /dev/random performance for some 64-bit ARM SoCs where they have RNG instructions on some CPU cores but not others (such as in certain big.LITTLE setups). This ARM64 RNG instruction usage will now be properly handled for delivering better performance.

These random improvements are part of the Linux 5.7 kernel that is currently going through its merge window and should debut as stable in early June.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week