Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <qUs57xPmdRx-LON4JLFM9CP55yYbXGv79gtckb-99BiIJ2N1JbT_YAh09Jq8PPqTm3vtLOhlGeexAymonSIz6K3R5V2c0h4mcuXJmMFsTlY=@zhuyi.fan>
Date: Thu, 24 Jul 2025 16:35:14 +0000
From: Schrodinger ZHU Yifan <i@...yi.fan>
To: "libc-coord@...ts.openwall.com" <libc-coord@...ts.openwall.com>
Subject: vdso getrandom is slower than syscall on Zen5

Hi,
In some experiments, I find it interesting that if getrandom is used to generate long sequence ofrandom 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

Yifan 

Content of type "text/html" skipped

Download attachment "publicKey - i@...yi.fan - 0xA98A3EAE.asc" of type "application/pgp-keys" (677 bytes)

Download attachment "signature.asc" of type "application/pgp-signature" (323 bytes)

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.