-
Notifications
You must be signed in to change notification settings - Fork 251
8303215: Make thread stacks not use huge pages #3106
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
Conversation
|
👋 Welcome back tkiriyama! A progress list of the required criteria for merging this PR into |
|
@tkiriyama This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 42 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@phohensee, @tstuefe) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
Hi, @tkiriyama. As the bot says, you need to change the PR title to "Backport 59d9d9fcb93c26dd8931d70934b889245b050acc" (I looked it up). There are two follow-up issues, and they in turn also have follow-up issues. Please check them to see if they need to be included. |
|
This backport pull request has now been updated with issue from the original commit. |
|
Hi, @phohensee , |
|
Yes, those two. But they in turn have related issues. |
|
I see, but these verifications will take time. |
phohensee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
|
|
|
/approval request I would like to backport JDK-8303215 fix done in jdk17 to jdk11. Even though it is not a clean backport, it has been verified that there is no risk by testing test/hotspot. |
|
@tkiriyama |
|
@tkiriyama This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
|
@tkiriyama The pull request is being re-evaluated and the inactivity timeout has been reset. |
|
Hi, @theRealAph , @jerboaa , @gnu-andrew , |
|
/reviewers 2 Reviewer |
|
@tstuefe Could you please help getting a second review on this one? This seems a moderate risk patch for 11u and you've done some work in that area. |
tstuefe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok
|
@tkiriyama Please enable testing on your jdk11u-dev fork and trigger a test run. I don't see any GHA runs. Thanks! Once that's done feel free to re-apply for approval. |
|
Hi, @jerboaa, |
Agreed. GHA failures on Windows are infra related:
@tkiriyama Please issue the |
|
/approval request I would like to backport JDK-8303215 fix done in jdk17 to jdk11. Even though it is not a clean backport, it has been verified that there is no risk by testing test/hotspot. |
|
@tkiriyama |
|
@jerboaa |
|
Hi, @jerboaa, |
It's approved. |
|
/integrate |
|
@tkiriyama |
|
/sponsor |
|
Going to push as commit ff759fc.
Your commit was automatically rebased without conflicts. |
|
@jerboaa @tkiriyama Pushed as commit ff759fc. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi All,
I would like to backport the fix for bug JDK-8303215 from JDK 17 to JDK 11. This bug addresses an issue with Transparent Huge Pages (THP) and thread stack allocation.
Backport is unclean,
1. Backport:
The fix in os_linux.cpp cannot be cleanly backported.
Since jdk11 does not include JDK-8244752 and JDK-8256155, it differs from the fix in jdk17. It uses setup_large_page_size() instead of scan_default_large_page_size().
2. Bug Reproduction:
The bug was successfully reproduced in Linux x86_64 with THP enabled (
/sys/kernel/mm/transparent_hugepage/enabled = always).Reproduction was confirmed using the following dummy thread program:
The fix significantly reduces the number of anonymous regions with fully occupied RSS.
3. Regression Testing:
I ran the
test/hotspottests on Linux x64 as a regression test. No failures were found.Thank you.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3106/head:pull/3106$ git checkout pull/3106Update a local copy of the PR:
$ git checkout pull/3106$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3106/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3106View PR using the GUI difftool:
$ git pr show -t 3106Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3106.diff
Using Webrev
Link to Webrev Comment