FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

cli: allow --huge-max-old-generation-size in NODE_OPTIONS by addaleax · Pull Request #32251 · nodejs/node · GitHub

/ node Public

cli: allow --huge-max-old-generation-size in NODE_OPTIONS - #32251

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:allow--huge-max-old-generation-size
Closed

cli: allow --huge-max-old-generation-size in NODE_OPTIONS#32251
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:allow--huge-max-old-generation-size

Conversation

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Mar 13, 2020
addaleax added the cli Issues and PRs related to the Node.js command line interface. label Mar 13, 2020

nodejs-github-bot commented Mar 13, 2020
edited by addaleax
Loading

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/29816/ (:white_check_mark:)

wesleytodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should this also add what it increased to?

As you said on twitter: "For machines with a lot of RAM, that behavior is changed to 4GB on x64 if --huge-max-old-generation-size is passed to V8."

Copy link
Copy Markdown
Member Author

Honestly, I doubt that many people would use end up using this – I’m okay with documenting it more verbosely, but it gets tricky to say that this increases the limit of the default limit of the heap (and not the actual limit like --max-old-space-size does).

Ultimately, it probably makes more sense to document --max-old-space-size explicitly in the CLI docs + the man page – this could be mentioned as a detail there, then. (I was kind of surprised to see that we don’t already document --max-old-space-size, tbh.)

wesleytodd commented Mar 13, 2020
edited
Loading

Copy link
Copy Markdown
Member

I guess I have one other question:

Is there a reason node is not defaulting to --huge-max-old-generation-size? It seems like for most cases this is the correct default for >=16gb situations. Not many folks are running servers with that (maybe a huge assumption), and for local machines it seems like a safe default.

Copy link
Copy Markdown
Contributor

I think this goes back to: should we be documenting V8 flags? While I agree these flags are important, it's still not something under our control. The behavior can change across V8 versions and we don't have test their behaviors, only for their existence.

I'm not against it, especially for important flags like memory-tuning, but maybe there's something else we can do? Could we add a NODE_V8_OPTIONS environment variable instead, so it's explicit those flags are not supported by us? For the memory-related flags, could Node.js expose a "simplified" tuning flag (and those wanting something more fine-tuned can use the V8 flags)?

Copy link
Copy Markdown
Member Author

Is there a reason node is not defaulting to --huge-max-old-generation-size? It seems like for most cases this is the correct default for >=16gb situations. Not many folks are running servers with that (maybe a huge assumption), and for local machines it seems like a safe default.

@wesleytodd Yeah, I've thought about that too. It would be fairly easy to make that happen, I'm not sure why it's not the default in V8.

@mmarchini Yeah, I think it's a bit of a grey are, but I'd prefer to keep them unless we have a reason to disable some of them...

addaleax added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Mar 20, 2020
addaleax added a commit that referenced this pull request Mar 20, 2020
PR-URL: #32251
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>

Copy link
Copy Markdown
Member Author

Landed in 95e3733

addaleax closed this Mar 20, 2020
addaleax deleted the allow--huge-max-old-generation-size branch March 20, 2020 13:22
MylesBorins pushed a commit that referenced this pull request Mar 24, 2020
PR-URL: #32251
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
MylesBorins mentioned this pull request Mar 24, 2020
targos added semver-minor PRs that contain new features and should be released in the next minor version. and removed author ready PRs that have at least one approval, no outstanding review comments, and a CI started. labels Apr 22, 2020
targos pushed a commit to targos/node that referenced this pull request Apr 25, 2020
PR-URL: nodejs#32251
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
targos pushed a commit that referenced this pull request Apr 28, 2020
PR-URL: #32251
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. cli Issues and PRs related to the Node.js command line interface. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL