mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #488] [CLOSED] pinned: honor STRATA_NO_LARGEPAGES on Linux; name the hugetlb pool shortfall #2663
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2663
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/488
Author: @yannickloth
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:fix/pinned-linux-largepages📝 Commits (1)
e38181fpinned: honor STRATA_NO_LARGEPAGES on Linux; name the hugetlb pool shortfall📊 Changes
1 file changed (+25 additions, -8 deletions)
View changed files
📝
src/core/pinned.cu(+25 -8)📄 Description
Two fixes to the Linux large-page path in
reserve()(src/core/pinned.cu):STRATA_NO_LARGEPAGES=1was Windows-only. It is documented as a same-run A/B switch for the large-page path, but only the Windows branch read it; on Linux theMAP_HUGETLBpath ignored it, so the switch silently did nothing. Honor it there too.MAP_HUGETLBis all-or-nothing, so a 34 GiB pool cannot serve a 40 GiB arena and the whole mapping falls back to 4 KiB. Name the shortfall: the 2 MiB page count needed vsvm.nr_hugepages. (The Windows branch already names its byte count and error codes.)Measured on a 39.97 GiB arena with a 34 GiB pool: it fell back to 4 KiB on every start until the pool was raised to 44 GiB. Details in
bench/results/2026-10-02-rtx-a3000-i7-12850hx/.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.