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
8267293: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java fails when JTREG_JOBS > 25 #4076
Conversation
…a fails when JTREG_JOBS > 25
|
@DamonFool 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
|
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.
Hi Jie,
You can safely get by with less. A very safe bet for all platforms would be:
- 256m heap
- 8m MaxMetaspaceSize
The latter could be probably reduced more (the smaller metaspace, the faster the test comes to conclusion), down to 6m or 4m. On my machine 4m works for both 64 and 32bit. But 8m is probably safe on all platforms.
Cheers, Thomas
Yeah, this works on my machines:
|
Seems like GHA is barfing up due to infrastructure issues. Please re-start the jobs, once current run finishes. |
/test |
@DamonFool you need to get approval to run the tests in tier1 for commits up until 2e618c1 |
"/test" command does not work. GHA start automatically on PR updates and/or with manual trigger: https://github.com/DamonFool/jdk/actions/workflows/submit.yml |
Got it. |
Hi @shipilev , Some jobs seem to be blocked. Thanks. |
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.
LGTM
@DamonFool 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 26 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.
|
@DamonFool Since your change was applied there have been 26 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 2d407e1. |
Maybe -Xmx256m is not enough. |
Hmm... sorry for that. Weird though since I would not have expected a lot of platform dependency here (apart from 32 vs 64bit). Ideally this test should be rewritten to load large classes, not these tiny ones, to get a better ratio between metaspace and heap space. |
Maybe, there is something special on Oracle's aarch64 platforms. I've asked the help of @dcubed-ojdk to test with Thanks. |
Hi all,
vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java fails on our many-core machines due to
-XX:MaxRAMPercentage=0
.This is because
-XX:MaxRAMPercentage=0
will be 0 if JTREG_JOBS > 25 [1].We can also reproduce the bug by:
make test TEST="vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java" JTREG="JOBS=26"
on almost all machines.This fix will make it to be more robust, which is suggested by @shipilev [2] and many thanks to him.
Thanks.
Best regards,
Jie
[1] https://github.com/openjdk/jdk/blob/master/make/RunTests.gmk#L741
[2] #4062 (review)
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4076/head:pull/4076
$ git checkout pull/4076
Update a local copy of the PR:
$ git checkout pull/4076
$ git pull https://git.openjdk.java.net/jdk pull/4076/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4076
View PR using the GUI difftool:
$ git pr show -t 4076
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4076.diff