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

8297692: Avoid sending per-region GCPhaseParallel JFR events in G1ScanCollectionSetRegionClosure #21984

Closed

Conversation

tschatzl
Copy link
Contributor

@tschatzl tschatzl commented Nov 8, 2024

Hi all,

please review this change that significantly reduces the amount of "Code Roots" and "Optional Roots" JFR events to reduce default recording sizes significantly.

E.g. a 10min BigRamTester run creates a 23MB recording without this change, with like hundreds of thousands of these events (#gcs * #gc threads * #regions in collection set). With this change, the recording is reduced to 4MB (#gcs * #gc threads)

Testing: gha, tier1-3

Thanks,
Thomas


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-8297692: Avoid sending per-region GCPhaseParallel JFR events in G1ScanCollectionSetRegionClosure (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21984

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

Using diff file

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

Using Webrev

Link to Webrev Comment

Hi all,

  please review this change that significantly reduces the amount of "Code Roots" and "Optional Roots" JFR events to reduce default recording sizes significantly.

E.g. a 10min BigRamTester run creates a 20MB recording without this change, with like 700k of these events. With this change, the recording is reduced to 3MB.

Testing: gha, tier1-3

Thanks,
  Thomas
@bridgekeeper
Copy link

bridgekeeper bot commented Nov 8, 2024

👋 Welcome back tschatzl! 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 Nov 8, 2024

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

8297692: Avoid sending per-region GCPhaseParallel JFR events in G1ScanCollectionSetRegionClosure

Reviewed-by: iwalulya, ayang, sangheki

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 87 new commits pushed to the master branch:

  • 90e9234: 8344074: RISC-V: C1: More accurate _exception_handler_size and _deopt_handler_size
  • 3b28354: 8339288: Improve diagnostic logging runtime/cds/DeterministicDump.java
  • 0dab920: 8343984: Fix Unsafe address overflow
  • 168b18e: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec
  • 5ac330b: 8344039: Remove security manager dependency in java.time
  • 1eb38c8: 8343219: Manual clientlibs test failures after SM removal
  • dde6230: 8343416: CDS dump fails when unregistered class can also be loaded from system modules
  • ffea980: 8344023: Unnecessary Hashtable usage in LdapClient.defaultBinaryAttrs
  • 5e01c40: 8343981: Remove usage of security manager from Thread and related classes
  • dbf2346: 8341260: Add Float16 to jdk.incubator.vector
  • ... and 77 more: https://git.openjdk.org/jdk/compare/0c281acfb4c87436096cb562d70f800dffa3671a...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 changed the title 8297692 8297692: Avoid sending per-region GCPhaseParallel JFR events in G1ScanCollectionSetRegionClosure Nov 8, 2024
@openjdk
Copy link

openjdk bot commented Nov 8, 2024

@tschatzl 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.

@openjdk openjdk bot added the hotspot-gc hotspot-gc-dev@openjdk.org label Nov 8, 2024
@tschatzl tschatzl marked this pull request as ready for review November 8, 2024 16:52
@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 8, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 8, 2024

Webrevs

@tschatzl
Copy link
Contributor Author

tschatzl commented Nov 8, 2024

Fwiw, I went with splitting code root scan and optional root scan into two iterations that are each bracketed by a single per-thread JFR event now.
This also allowed a minor optimization: in the initial evacuation there can be no optional roots, so that iteration over all regions can be skipped.

Copy link
Member

@walulyai walulyai left a comment

Choose a reason for hiding this comment

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

LGTM!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 13, 2024
Copy link
Member

@sangheon sangheon left a comment

Choose a reason for hiding this comment

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

LGTM

@tschatzl
Copy link
Contributor Author

Thanks @sangheon @walulyai @albertnetymk for your reviews

/integrate

@openjdk
Copy link

openjdk bot commented Nov 14, 2024

Going to push as commit a73226b.
Since your change was applied there have been 105 commits pushed to the master branch:

  • 6e28cd3: 8343488: Test VectorRebracket128Test.java can't exclude by test/hotspot/jtreg/ProblemList.txt
  • 6757994: 8343633: The ClassLoader::print_counters() prints to stdout when logging is enabled.
  • 8ccc48c: 8344032: InterpreterRuntime::verify_mdp() missing lock while printing MethodData on failure
  • 2145ace: 8341094: Clean up relax_verify in ClassFileParser
  • 5731ab7: 8335991: Implement Simple Source Files and Instance Main Methods (Fourth Preview)
  • 81342ac: 8343752: The javadoc should contain a note about usages of requires transitive java.base;
  • 8523880: 8342693: Use byte[] as parameter in a FDBigInteger constructor and as field
  • 2b57f40: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream
  • a8152bd: 8343941: IGV: dump graph at different register allocation steps
  • bd6152f: 8343855: HTTP/2 ConnectionWindowUpdateSender may miss some unprocessed DataFrames from closed streams
  • ... and 95 more: https://git.openjdk.org/jdk/compare/0c281acfb4c87436096cb562d70f800dffa3671a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 14, 2024
@openjdk openjdk bot closed this Nov 14, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Nov 14, 2024
@openjdk
Copy link

openjdk bot commented Nov 14, 2024

@tschatzl Pushed as commit a73226b.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@tschatzl tschatzl deleted the submit/8297692-too-many-jfr-events branch November 18, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc hotspot-gc-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants