[PR #488] [CLOSED] pinned: honor STRATA_NO_LARGEPAGES on Linux; name the hugetlb pool shortfall #2663

Closed
opened 2026-11-04 02:02:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • e38181f pinned: 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):

  1. STRATA_NO_LARGEPAGES=1 was 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 the MAP_HUGETLB path ignored it, so the switch silently did nothing. Honor it there too.
  2. The failure message hid the real cause. It said "no hugetlb pool configured?" even when a pool exists but is smaller than the mapping. MAP_HUGETLB is 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 vs vm.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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/488 **Author:** [@yannickloth](https://github.com/yannickloth) **Created:** 10/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/pinned-linux-largepages` --- ### 📝 Commits (1) - [`e38181f`](https://github.com/Niko1221/Strata/commit/e38181f96f85e944d7a9d41fbdb9bc267a153cf9) pinned: honor STRATA_NO_LARGEPAGES on Linux; name the hugetlb pool shortfall ### 📊 Changes **1 file changed** (+25 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/core/pinned.cu` (+25 -8) </details> ### 📄 Description Two fixes to the Linux large-page path in `reserve()` (`src/core/pinned.cu`): 1. **`STRATA_NO_LARGEPAGES=1` was 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 the `MAP_HUGETLB` path ignored it, so the switch silently did nothing. Honor it there too. 2. **The failure message hid the real cause.** It said "no hugetlb pool configured?" even when a pool exists but is smaller than the mapping. `MAP_HUGETLB` is 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 vs `vm.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/`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2663
No description provided.