refactor(libkernel): shard SyncOnAddress waiters across hashed buckets #8323
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8323"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-20T10:05:29Z.
What
Shards the
SyncOnAddresswaiter queue across 64 buckets chosen by hashing the address. Each bucket has its own mutex and map, so waits and wakes on unrelated addresses no longer contend on one global lock. The change is the work of #2528 by @nahshongraham97, ported onto currentmain(the original commit no longer applies cleanly) and credited as co-author. #2528 stays open for its author.Tested
Linux x86-64 (CachyOS, kernel 7.2.10): the focused
guest_umtx_optest passes on the ported branch (ctest -R '^guest_umtx_op$');tools/check_conventions.py --base origin/mainpasses. Not measured for speed: no performance claim is made here.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T10:05:50Z.
This pull request is labeled
perf, so it needs the summary line of a capture onmainand one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste bothaps5-summary.jsonllines, attach the two traces and add the output oftools/trace_digest.py.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T10:20:49Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libkernel/SyncOnAddress/src/SyncOnAddress.cppcore/libs/prx/libkernel/SyncOnAddress/src/SyncOnAddress.cppImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-21T05:06:43Z.
Duplicate detection (support triage): this PR and #2528 ("perf(libkernel): shard SyncOnAddress waiters across hashed buckets", FitzVB, opened 2026-10-10) change the same file with byte-identical content hunks — the same 12 bucket/hash/shard additions to
SyncOnAddress/src/SyncOnAddress.cpp, only hunk offsets differ because #2528 branched from an older main. Both are currently labeledneeds rebase. Per the contributing rules, please coordinate with the author of #2528 on which one goes first and declare it withDepends onon the checklist line. Not flagging which should win — the earlier PR has the older base, this one is closer to current main.Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-21T08:22:59Z.
@oneandonlydean this PR and #2528 (FitzVB) carry the same
SyncOnAddresssharding, which blawesom flagged on 2026-10-21. Where things stand:needs rebase. Its last activity is your rebase request (2026-10-17) and blawesom's triage note. FitzVB has not replied on #2528, #8304 or this PR, so the order has not been agreed with them.main, with nahshongraham97 credited as co-author, because the original commit no longer applies. The conflict came from #8304 landing onmainand changing the same queue.ctest -R '^guest_umtx_op$'andcheck_conventions.py --base origin/main. It is not pushed yet, so this PR's head still shows the old conflicting commit until that push lands.Depends on: none, because neither PR needs the other to build. The overlap is a choice of which one lands, not a dependency.Options for the order:
Which do you want? I'll follow your call and update the checklist line to match.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T08:26:41Z.
Thanks for this. #2528 makes the same change (sharding SyncOnAddress waiters across hashed buckets) and is already in review, so we'll carry it there. Closing this one as a duplicate.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T08:52:29Z.
@Aryansh1520 thanks for laying this out, and for crediting the original author. Your port onto current
mainis still useful: #2528 needs exactly that rebase, so if you'd like, post the rebased commit (or a link to your branch) on #2528 and we can use it there, with your co-author line kept.Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-21T09:16:33Z.
@oneandonlydean posted the rebased commit on #2528 with the link and your co-author line kept. Thanks.
Pull request closed