-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: clarify default heap size formula since node 12 #39107
Comments
I wanna work on it please assigned it to me |
Hey @gtp-m3 I am not a maintainer of node and so cannot assign you. Hopefully one will see this and assign you to it! Thanks. |
@gtp-m3 Thanks for your help. It is yours. BTW, you can work on any issue without prior assignment. Good luck. |
@Ayase-252 ok thanks |
@naseemkullah can you explain what should I add to doc |
@Ayase-252 @naseemkullah should i add a calculator who will show memory consumption for different machine |
Should a paragraph to mention the default heap size be sufficient? IMO, a calculator seems too "heavy" to maintain. |
Yes just a sentence as to how it's calculated exactly. Maybe with 2 or 3 examples with different available memory for clarity |
References: Lines 239 to 254 in d65514b
node/deps/v8/test/unittests/heap/heap-unittest.cc Lines 77 to 97 in d65514b
|
Is this pertinent?: Lines 300 to 312 in d65514b
I'm currently trying to sort out what the max possible setting is + at what breakpoints does node choose which settings? I want to max out my performance for a CI run :) |
Hey @naseemkullah @targos @Ayase-252 Any idea, if someone is working on this? It'd be nice if this can be clarified please |
I found this issue after digging around what happens if you don't specify I spun up a container with I got the heap size with
So the behaviour is a bit weird between after 4 GB I would say. The 2 GB limit is a bit low, especially for servers with just below 16 GB of RAM (like Heroku's performance-l dyno with 14 GB of RAM). And the jump at 16 GB is also strange. I don't have easy access to a computer with more than 16 GB of RAM, but I suspect it will stay at 4 GB looking at the code above. I also ran I'm probably not the one to document this, but I wanted to share it regardless if anyone finds it useful! |
📗 API Reference Docs Problem
Version:12+
Platform: all
Location
Section of the site where the content exists
Affected URL(s):
Description
Concise explanation of the problem
Despite the explanation here : #25576 (comment)
I am not clear on the value of heap size for my instance. Given a formula/calculator, a user can then know for sure the default value based on the GB of memory available. It would be great to have this in the docs.
submit a pull request.
The text was updated successfully, but these errors were encountered: