[PATCH v4] linux: Add support for getrandom vDSO
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Wed Sep 4 13:42:36 GMT 2024
On 03/09/24 20:05, Cristian Rodríguez wrote:
>
>
> On Mon, Sep 2, 2024 at 1:39 PM Adhemerval Zanella <adhemerval.zanella@linaro.org <mailto:adhemerval.zanella@linaro.org>> wrote:
>
> Linux 6.11 will support calling getrandom() from the vDSO (commit
> 4ad10a5f5f78a5b3e525a63bd075a4eb1139dde1). It operates on a thread-local
> opaque state allocated with mmap using flags specified by the vDSO.
>
> tested this one and appears to work just fine .. stress-ng --getrandom works, speedup is around 2x compared to the raw syscall.
Thanks for checking this out. It seems that 'stress-ng' issues getrandom
with a buffer of 8192 size, so I would expect that larger improvements on
smaller buffer where the syscall overhead dominates (like how the kernel
vdso_test_getrandom tests does).
More information about the Libc-alpha
mailing list