8364114: Test TestHugePageDecisionsAtVMStartup.java#LP_enabled fails when no free hugepage#26480
8364114: Test TestHugePageDecisionsAtVMStartup.java#LP_enabled fails when no free hugepage#26480sendaoYan wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
|
@sendaoYan This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 20 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. ➡️ To integrate this PR with the above commit message to the |
|
@sendaoYan The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
tstuefe
left a comment
There was a problem hiding this comment.
Thanks for fixing this.
Side note, I was long on the fence about just throwing that JVM-side startup test out. Since it seems superfluous - without the test, we would just proceed allocating the heap, not get the desired large pages, which would produce almost the same result. And it is no guarantee anyway, since we may pass the test and later fail to allocate the much larger heap.
test/hotspot/jtreg/runtime/os/TestHugePageDecisionsAtVMStartup.java
Outdated
Show resolved
Hide resolved
…when no free hugepage
|
Thanks for the reviews and suggestions @tstuefe Do we need the second reviewer to this PR |
Yes. If it touches src/hotspot or test/hotspot, and is not a trivial fix (per the developer guide[1]) then we require two reviews. |
dholmes-ora
left a comment
There was a problem hiding this comment.
I can't quite see how the first version of the change was actually reading the value from /proc/meminfo, but I don't like that we parse /proc/meminfo twice now - that's unnecessarily inefficient IMO. That said, it isn't a lot of information so I won't insist on a change.
Approved.
|
Thanks @tstuefe @dholmes-ora for the reviews and suggetions. /integrate |
|
Going to push as commit 3b0da29.
Your commit was automatically rebased without conflicts. |
|
@sendaoYan Pushed as commit 3b0da29. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
The test runtime/os/TestHugePageDecisionsAtVMStartup.java#LP_enabled will fails when there is no free hugepases.
The /proc/meminfo and /sys/kernel/mm/hugepages/hugepages-*/free_hugepages says there is no free hugepage, and the JVM output also say there is available large page.
The JVM can not use large page when there is no available large page on system, it's not a JVM bug. So I think it's not suitable to report test failure, but report SkippedException.
Change has been verified locally, test report SkippedException on the system without free hugepage, the test passes on the system with free hugepage. Test-fix only, risk is low.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26480/head:pull/26480$ git checkout pull/26480Update a local copy of the PR:
$ git checkout pull/26480$ git pull https://git.openjdk.org/jdk.git pull/26480/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26480View PR using the GUI difftool:
$ git pr show -t 26480Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26480.diff
Using Webrev
Link to Webrev Comment