Skip to content
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

src: large pages fix FreeBSD fix region size #28735

Closed
wants to merge 1 commit into from
Closed

src: large pages fix FreeBSD fix region size #28735

wants to merge 1 commit into from

Conversation

devnexen
Copy link
Contributor

Makes the size aligned to huge page size.

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jul 17, 2019
@devnexen devnexen changed the title src: large pages fix FreeBSD fix region size. src: large pages fix FreeBSD fix region size Jul 17, 2019
@sam-github
Copy link
Contributor

Is this @nodejs/platform-freebsd specific? I labelled it as such, based on the commit message, please comment if that was incorrect.

The commit message/PR could use some more description. It appears you have switched the size calculation from being before the alignment of the start/end, to after. Does this have an effect which can be tested?

@sam-github sam-github added the freebsd Issues and PRs related to the FreeBSD platform. label Jul 22, 2019
@devnexen
Copy link
Contributor Author

devnexen commented Jul 22, 2019

@sam-github it definitely is :-) It has an effect only of the number of large pages now it is correct since it comes from the aligned lower and upper boundary of the address.

Makes the size aligned to huge page size by
calculating it from the aligned lower and upper
boundary of the executable address.
@sam-github
Copy link
Contributor

commit message looks good, hopefully someone on @nodejs/platform-freebsd can confirm its correct.

Is there a way to do a before and after test, even if its manual, to see what went wrong before, and what is working now?

@nodejs-github-bot
Copy link
Collaborator

@devnexen
Copy link
Contributor Author

devnexen commented Jul 22, 2019

In fact I was just curious to print the number of size and total huge page and realised where the issue came from, since we divide by the size of huge page that quite "jump to the face". I got few thumb ups I guess I m not far from the truth :-)

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Trott commented Jul 25, 2019

This needs a review. /ping @nodejs/build @nodejs/collaborators

@Trott Trott added the review wanted PRs that need reviews. label Jul 25, 2019
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

I'm going to rubber-stamp this one because (a) it's contained within a FreeBSD-only block and (b) @devnexen is the original author of this code.

Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

Rubber-stamp LGTM per @rvagg's comment.

@Trott
Copy link
Member

Trott commented Jul 30, 2019

Landed in de88d6c

@Trott Trott closed this Jul 30, 2019
Trott pushed a commit to Trott/io.js that referenced this pull request Jul 30, 2019
Makes the size aligned to huge page size by
calculating it from the aligned lower and upper
boundary of the executable address.

PR-URL: nodejs#28735
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@Trott Trott removed the review wanted PRs that need reviews. label Jul 30, 2019
targos pushed a commit that referenced this pull request Aug 2, 2019
Makes the size aligned to huge page size by
calculating it from the aligned lower and upper
boundary of the executable address.

PR-URL: #28735
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Mar 6, 2020
Makes the size aligned to huge page size by
calculating it from the aligned lower and upper
boundary of the executable address.

PR-URL: nodejs#28735
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
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++. freebsd Issues and PRs related to the FreeBSD platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants