Skip to content

8295354: Remove G1 incremental non-copy time calculation #10987

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

tschatzl
Copy link
Contributor

@tschatzl tschatzl commented Nov 4, 2022

Hi,

Currently G1 calculates the total non-copy time for young gen incrementally as regions are added to the young gen. The reason for this is that previously getting remembered set size has been expensive (i.e. part of non-copy time).

That is not the case any more since JDK 16 or so.

Further, actually in the calculation the remset work time does not need to be calculated on a per-region basis at all; first, it is incorrect as it does not remove duplicates, and additionally there is/has always been a total remembered set prediction anyway. (Which means the remembered set scan/merge time is considered multiple times).

So all this code can be removed.

Note that this change also fixes the same issue (double-counting of scan/merge time) for survivor regions.

Testing: tier1-3, manual testing wrt to pause time predictions which seem to be slightly better

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-8295354: Remove G1 incremental non-copy time calculation

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 10987

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 4, 2022

👋 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 4, 2022

@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 4, 2022
@tschatzl tschatzl marked this pull request as ready for review November 4, 2022 14:37
@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 4, 2022
@mlbridge
Copy link

mlbridge bot commented Nov 4, 2022

Webrevs

@openjdk
Copy link

openjdk bot commented Nov 4, 2022

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

8295354: Remove G1 incremental non-copy time calculation

Reviewed-by: ayang, iwalulya

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

  • 8836b92: 8296226: Add constructors (String,Throwable) and (Throwable) to InvalidParameterException
  • 51f8e9b: 8296443: NMT: Remove cmdline_tracking_level handling code
  • 087cedc: 8295261: RISC-V: Support ReductionV instructions for Vector API
  • 556377a: 8296270: Memory leak in ClassLoader::setup_bootstrap_search_path_impl
  • c2f7638: 8296335: Fix accessibility manual test instruction
  • 91292d5: 8286301: Port JEP 425 to RISC-V
  • 581133a: 8294696: BufferedInputStream.transferTo should drain buffer when mark set
  • d8573b2: 8294488: Delete KCMS transforms wrappers
  • f857f79: 8015739: Background of JInternalFrame is located out of JInternalFrame
  • b847fb6: 8296414: [BACKOUT] JDK-8295319: pending_cards_at_gc_start doesn't include cards in thread buffers
  • ... and 8 more: https://git.openjdk.org/jdk/compare/12316829b48c58e4509026543a3f2b50a57a439f...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 ready Pull request is ready to be integrated label Nov 4, 2022
@tschatzl
Copy link
Contributor Author

tschatzl commented Nov 7, 2022

Thanks @walulyai @albertnetymk for your reviews
/integrate

@openjdk
Copy link

openjdk bot commented Nov 7, 2022

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

  • 8836b92: 8296226: Add constructors (String,Throwable) and (Throwable) to InvalidParameterException
  • 51f8e9b: 8296443: NMT: Remove cmdline_tracking_level handling code
  • 087cedc: 8295261: RISC-V: Support ReductionV instructions for Vector API
  • 556377a: 8296270: Memory leak in ClassLoader::setup_bootstrap_search_path_impl
  • c2f7638: 8296335: Fix accessibility manual test instruction
  • 91292d5: 8286301: Port JEP 425 to RISC-V
  • 581133a: 8294696: BufferedInputStream.transferTo should drain buffer when mark set
  • d8573b2: 8294488: Delete KCMS transforms wrappers
  • f857f79: 8015739: Background of JInternalFrame is located out of JInternalFrame
  • b847fb6: 8296414: [BACKOUT] JDK-8295319: pending_cards_at_gc_start doesn't include cards in thread buffers
  • ... and 8 more: https://git.openjdk.org/jdk/compare/12316829b48c58e4509026543a3f2b50a57a439f...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Nov 7, 2022

@tschatzl Pushed as commit d634dde.

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

@tschatzl tschatzl deleted the submit/8295354-remove-rs-length-incremental branch November 17, 2022 17:19
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.

3 participants