Skip to content

build,src: make --use-largepages a no-op - #65389

Open
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:remove-largepages
Open

build,src: make --use-largepages a no-op#65389
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:remove-largepages

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

This feature has not been actively used in the wild and has always only been best-effort on systems that support it. The build changes it needs breaks WSL1 compatibility and the relocation mechanism won't work with newer V8 that remaps builtins using mremap(MREMAP_DONTUNMAP).

This patch effectively removes this feature by turning the flags into no-ops. A warning will be printed if --use-largepages=on is used.

Fixes: #63735
Fixes: #64408
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7985687

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/config
  • @nodejs/gyp
  • @nodejs/startup
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Aug 18, 2026
This feature has not been actively used in the wild and has
always only been best-effort on systems that support it. The build
changes it needs breaks WSL1 compatibility and the relocation
mechanism won't work with newer V8 that remaps builtins using
mremap(MREMAP_DONTUNMAP).

This patch effectively removes this feature by turning the flags
into no-ops. A warning will be printed if `--use-largepages=on`
is used.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
@aduh95

aduh95 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

You'd need to run make node.1

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (cf30b2e) to head (d1826aa).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65389      +/-   ##
==========================================
+ Coverage   90.11%   90.13%   +0.02%     
==========================================
  Files         752      751       -1     
  Lines      251861   251855       -6     
  Branches    47365    47358       -7     
==========================================
+ Hits       226955   227021      +66     
+ Misses      16238    16181      -57     
+ Partials     8668     8653      -15     
Files with missing lines Coverage Δ
src/debug_utils.h 80.00% <ø> (ø)
src/node.cc 76.67% <100.00%> (+0.13%) ⬆️
src/node.h 92.30% <ø> (ø)
src/node_options.cc 79.64% <ø> (+0.08%) ⬆️

... and 39 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Future of --use-largepages=on linux x64 release binary fails to exec on WSL1

8 participants