[go] runtime: enable vgetrandom vDSO support for linux/riscv64

0 views
Skip to first unread message

Meng Zhuo (Gerrit)

unread,
Aug 10, 2026, 7:51:58 PM (10 hours ago) Aug 10
to Meng Zhuo, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Dmitri Shuralyov, Dmitri Shuralyov, Mark Freeman, golang...@luci-project-accounts.iam.gserviceaccount.com, Julian Zhu, Joel Sing, Mark Ryan, golang-co...@googlegroups.com

Meng Zhuo submitted the change with unreviewed changes

Unreviewed changes

7 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: src/runtime/sys_linux_riscv64.s
Insertions: 1, Deletions: 1.

The diff is too large to show. Please review the diff.
```

Change information

Commit message:
runtime: enable vgetrandom vDSO support for linux/riscv64

goos: linux
goarch: riscv64
pkg: crypto/rand
cpu: Spacemit(R) X100
│ base.txt │ vdso.txt │
│ sec/op │ sec/op vs base │
Read/4 1015.0n ± ∞ ¹ 134.3n ± ∞ ¹ -86.77% (p=0.008 n=5)
Read/32 1040.0n ± ∞ ¹ 317.2n ± ∞ ¹ -69.50% (p=0.008 n=5)
Read/4K 30.95µ ± ∞ ¹ 16.89µ ± ∞ ¹ -45.43% (p=0.008 n=5)
geomean 3.197µ 896.0n -71.97%

│ base.txt │ vdso.txt │
│ B/s │ B/s vs base │
Read/4 3.757Mi ± ∞ ¹ 28.410Mi ± ∞ ¹ +656.09% (p=0.008 n=5)
Read/32 29.34Mi ± ∞ ¹ 96.22Mi ± ∞ ¹ +227.88% (p=0.008 n=5)
Read/4K 126.2Mi ± ∞ ¹ 231.3Mi ± ∞ ¹ +83.25% (p=0.008 n=5)
geomean 24.05Mi 85.83Mi +256.82%
Change-Id: Ieafc243255547dfdaae5c872d971ff0f7b652fe7
Reviewed-by: Julian Zhu <jz53...@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
Reviewed-by: Mark Freeman <markf...@google.com>
Files:
  • M src/runtime/sys_linux_riscv64.s
  • M src/runtime/vdso_linux_riscv64.go
  • M src/runtime/vgetrandom_linux.go
  • M src/runtime/vgetrandom_unsupported.go
Change size: M
Delta: 4 files changed, 54 insertions(+), 3 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Ieafc243255547dfdaae5c872d971ff0f7b652fe7
Gerrit-Change-Number: 796060
Gerrit-PatchSet: 11
Gerrit-Owner: Meng Zhuo <mengzh...@gmail.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
Gerrit-Reviewer: Julian Zhu <jz53...@gmail.com>
Gerrit-Reviewer: Mark Freeman <markf...@google.com>
Gerrit-Reviewer: Mark Ryan <mark...@meta.com>
Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages