Skip to content

Revert "perf(umbp): ask for transparent hugepages on the anonymous DR… - #687

Merged
maning00 merged 1 commit into
mainfrom
revert-679-perf/umbp-tier-thp
Sep 18, 2026
Merged

maning00 merged 1 commit into
mainfrom
revert-679-perf/umbp-tier-thp

Conversation

@maning00

Copy link
Copy Markdown
Contributor

…AM tier …"

This reverts commit 2cc0ac3.

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

@maning00
maning00 merged commit 3bb5b99 into main Sep 18, 2026
12 of 15 checks passed
seungrokj added a commit that referenced this pull request Dec 2, 2026
UMBP_HOST_USE_THP=1 backs plain anonymous host buffers of at least 2 MiB
that are prefaulted at allocation (DRAM tier, ranged scratch, SSD staging,
hugetlb fallback) with transparent hugepages: 2 MiB-aligned mapping,
madvise(MADV_HUGEPAGE) before the first fault, no vm.nr_hugepages
reservation. After prefault, coverage is read from /proc/self/smaps; only
a fully covered buffer reports 2 MiB alignment (so PageBackend sizes MRs
on 2 MiB pages), a partial one warns and reports 4 KiB. MADV_NOHUGEPAGE
is applied afterwards so khugepaged cannot remap pages under a live
registration. Lazy (prefault=false) buffers such as the per-Get re-cache
copy stay on 4 KiB pages.

Off by default: THP by default regressed fill on fragmented hosts (#687).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant