![]() |
|
Message-ID: <8734alcdkk.fsf@gentoo.org> Date: Fri, 25 Jul 2025 01:35:23 +0100 From: Sam James <sam@...too.org> To: Schrodinger ZHU Yifan <i@...yi.fan> Cc: "libc-coord@...ts.openwall.com" <libc-coord@...ts.openwall.com> Subject: Re: vdso getrandom is slower than syscall on Zen5 Schrodinger ZHU Yifan <i@...yi.fan> writes: > Hi, > > In some experiments, I find it interesting that if getrandom is used to generate long sequence of > random bytes, it is actually slower than getrandom. This phenomenon depends on microarch and it is stable on Zen5. Is it > because the kernel space getrandom does not use ChaCha20? I am not very familiar with the kernel space implementation. > > Benchmark results are available at: https://github.com/bytecodealliance/rustix/issues/1185 > I'd probably file this as a glibc bug (or maybe bring it up on libc-alpha and CC zx2c4). libc-coord is for coordination between different libc impls on interfacts and such. > Yifan sam
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.