Golang Now Enables Speedier getrandom() On Linux
The Linux 6.11 kernel introduced getrandom() in the vDSO for faster yet secure user-space random number generation needs. In addition to patches pending for Glibc to make use of getrandom() vDSO support, Golang is now another early user of this functionality.
Golang has merged support for using the vDSO for getrandom() on Linux when running on a supported kernel version and architecture. Open-source developer Jason Donenfeld who pursued the getrandom() vDSO support also worked on the Golang runtime support and the follow-up patch for using vDSO for getrandom() on Linux.
Indeed the noted performance gains are there for using vDSO for getrandom():
Golang has merged support for using the vDSO for getrandom() on Linux when running on a supported kernel version and architecture. Open-source developer Jason Donenfeld who pursued the getrandom() vDSO support also worked on the Golang runtime support and the follow-up patch for using vDSO for getrandom() on Linux.
Indeed the noted performance gains are there for using vDSO for getrandom():
5 Comments