Skip to content

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

Open
joyeecheung wants to merge 2 commits into
nodejs:mainfrom
joyeecheung:remove-largepages
Open

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

Conversation

@joyeecheung

@joyeecheung joyeecheung commented Aug 18, 2026

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.

This unblocks #65161

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.11%. Comparing base (cf30b2e) to head (cabef97).
⚠️ Report is 22 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #65389    +/-   ##
========================================
  Coverage   90.11%   90.11%            
========================================
  Files         752      751     -1     
  Lines      251861   252194   +333     
  Branches    47365    47448    +83     
========================================
+ Hits       226955   227269   +314     
+ Misses      16238    16219    -19     
- Partials     8668     8706    +38     
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.55% <ø> (ø)

... and 52 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.

@joyeecheung

Copy link
Copy Markdown
Member Author

Regenerated manpages with make node.1 to fix the linter complaint.

@panva @aduh95 @jasnell @lpinca @targos @legendecas @richardlau can you take a look again? Thanks!

@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 19, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 19, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

9 participants