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

8347126: gc/stress/TestStressG1Uncommit.java gets OOM-killed #22954

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shipilev
Copy link
Member

@shipilev shipilev commented Jan 7, 2025

One of my testing nodes caught the OOM kill for the VM carrying the test. The default configuration turns the VM that test runs as the driver into a memory hog. On 48-core / 64G machine, the test configured itself to take 13 workers each allocating 1G. This ballooned the heap size to 13G -- e.g. about 25% of host memory -- which is well beyond the usual footprint for a single test VM (~2GB). Naturally, this runs into a high chance of being OOM killed under high test parallelism.

I think the solution is to cut down the heap size we run with, and balance the number of workers a bit more finely. I looked around at sibling tests and 1G seems to be a common heap size for these tests.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8347126: gc/stress/TestStressG1Uncommit.java gets OOM-killed (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22954/head:pull/22954
$ git checkout pull/22954

Update a local copy of the PR:
$ git checkout pull/22954
$ git pull https://git.openjdk.org/jdk.git pull/22954/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22954

View PR using the GUI difftool:
$ git pr show -t 22954

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22954.diff

Using Webrev

Link to Webrev Comment

@shipilev
Copy link
Member Author

shipilev commented Jan 7, 2025

On my M1, the test now configures to much more reasonable occupancy.

# Before
0s: Using 7 workers, each allocating: ~936M (=6552M total)

# After
0s: Using 9 workers, each allocating: ~91M (=819M total)

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 7, 2025

👋 Welcome back shade! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jan 7, 2025

@shipilev 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:

8347126: gc/stress/TestStressG1Uncommit.java gets OOM-killed

Reviewed-by: tschatzl, gli

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 master branch:

  • 4d18e5a: 8346872: tools/jpackage/windows/WinLongPathTest.java fails
  • 92ad8a1: 8346052: JFR: Incorrect average value in 'jfr view'
  • 672c413: 8345337: JFR: jfr view should display all direct subfields for an event type
  • afe5434: 8347163: Javadoc error in ConstantPoolBuilder after JDK-8342468
  • f696d9c: 8346239: Improve memory efficiency of JimageDiffGenerator
  • cbabc04: 8332506: SIGFPE In ObjectSynchronizer::is_async_deflation_needed()
  • 9872421: 8347094: Inline CollectedHeap::increment_total_full_collections
  • b741f3f: 8343629: More MergeStore benchmark
  • b0c935c: 8347047: Cleanup action passed to MemorySegment::reinterpret keeps old segment alive
  • bcefab5: 8342468: Improve API documentation for java.lang.classfile.constantpool
  • ... and 32 more: https://git.openjdk.org/jdk/compare/f1d85ab3e61f923b4e120cf30e16109e04505b53...master

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jan 7, 2025
@openjdk
Copy link

openjdk bot commented Jan 7, 2025

@shipilev The following label will be automatically applied to this pull request:

  • hotspot-gc

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.

@mlbridge
Copy link

mlbridge bot commented Jan 7, 2025

Webrevs

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc [email protected] ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

4 participants