-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8316415: Parallelize sun/security/rsa/SignedObjectChain.java subtests #15860
Conversation
sun/security/rsa/SignedObjectChain.java is very slow when run with C1, I suspect because some crypto intrinsics are only implemented in C2. Commit contains changes made to parallelize sun/security/rsa/SignedObjectChain.java Comparison of before and after parallelization: time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseParallelGC -XX:TieredStopAtLevel=1" before: 270.72s user 4.88s system 108% cpu 4:14.43 total after: 410.76s user 7.50s system 555% cpu 1:15.23 total time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseParallelGC" before: 63.67s user 4.67s system 161% cpu 42.424 total after: 130.36s user 7.47s system 585% cpu 23.526 total time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseShenandoahGC -XX:TieredStopAtLevel=1" before: 281.99s user 5.54s system 108% cpu 4:24.09 total after: 386.98s user 8.62s system 496% cpu 1:19.73 total time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseShenandoahGC" before: 65.86s user 5.05s system 156% cpu 45.215 total after: 135.90s user 7.66s system 585% cpu 24.502 total
/covered |
👋 Welcome back msobiers! A progress list of the required criteria for merging this PR into |
You are already a known contributor! |
Webrevs
|
time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseParallelGC -XX:TieredStopAtLevel=1" before: 270.72s user 4.88s system 108% cpu 4:14.43 total after: 375.46s user 4.59s system 539% cpu 1:10.41 total time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseParallelGC" before: 63.67s user 4.67s system 161% cpu 42.424 total after: 67.31s user 4.48s system 417% cpu 17.183 total time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseShenandoahGC -XX:TieredStopAtLevel=1" before: 281.99s user 5.54s system 108% cpu 4:24.09 total after: 413.51s user 5.08s system 613% cpu 1:08.25 total time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseShenandoahGC" before: 65.86s user 5.05s system 156% cpu 45.215 total after: 83.25s user 4.82s system 469% cpu 18.741 total
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.
Looks nice. A few stylistic comments:
System.out.println("All tests passed"); | ||
} else { | ||
throw new RuntimeException("Some tests failed"); | ||
} | ||
} | ||
} | ||
|
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.
Do we need a newline here?
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.
+1, would be nice if this extra newline is removed.
/reviewers 2 |
@msobiers 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 200 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@shipilev, @rhalade, @valeriepeng) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Shows a very good improvement here as well:
|
@valeriepeng, would you like to take a look? |
Or maybe @rhalade? |
I will take a look, sorry has been busy the past few days... |
Looks good to me as well. Would be nice to apply the stylistic changes suggested by @shipilev before integrating. Thanks! |
Co-authored-by: Aleksey Shipilëv <shipilev@amazon.de>
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.
Removing unnecessary line
/integrate |
/sponsor |
Going to push as commit 5984792.
Your commit was automatically rebased without conflicts. |
sun/security/rsa/SignedObjectChain.java is very slow when run with C1, I suspect because some crypto intrinsics are only implemented in C2. Commit contains changes made to parallelize it.
Comparison of before and after parallelization:
time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseParallelGC -XX:TieredStopAtLevel=1"
before: 270.72s user 4.88s system 108% cpu 4:14.43 total
after: 410.76s user 7.50s system 555% cpu 1:15.23 total
after second commit: 375.46s user 4.59s system 539% cpu 1:10.41 total
time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseParallelGC"
before: 63.67s user 4.67s system 161% cpu 42.424 total
after: 130.36s user 7.47s system 585% cpu 23.526 total
after second commit: 67.31s user 4.48s system 417% cpu 17.183 total
time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseShenandoahGC -XX:TieredStopAtLevel=1"
before: 281.99s user 5.54s system 108% cpu 4:24.09 total
after: 386.98s user 8.62s system 496% cpu 1:19.73 total
after second commit: 413.51s user 5.08s system 613% cpu 1:08.25 total
time make test TEST=jdk/sun/security/rsa/SignedObjectChain.java TEST_VM_OPTS="-XX:+UseShenandoahGC"
before: 65.86s user 5.05s system 156% cpu 45.215 total
after: 135.90s user 7.66s system 585% cpu 24.502 total
after second commit: 83.25s user 4.82s system 469% cpu 18.741 total
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15860/head:pull/15860
$ git checkout pull/15860
Update a local copy of the PR:
$ git checkout pull/15860
$ git pull https://git.openjdk.org/jdk.git pull/15860/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 15860
View PR using the GUI difftool:
$ git pr show -t 15860
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15860.diff
Webrev
Link to Webrev Comment