Integrated: 8144: Add rule to detect GC Inverted Parallelism

Alex Macdonald aptmac at openjdk.org
Fri Dec 1 21:19:50 UTC 2023


On Mon, 30 Oct 2023 15:11:48 GMT, Alex Macdonald <aptmac at openjdk.org> wrote:

> This PR addresses JMC-8144 [[0]](https://bugs.openjdk.org/browse/JMC-8144). There is a GC log analysis tool called Garbagecat [[1]](https://github.com/mgm3746/garbagecat/tree/main), which operates on GC logs and identifies performance issues and suggests potential solutions (similar to our automated analysis page). One metric Garbagecat flags is **"inverted parallelism"**, which takes a look at the sys+usr time of a parallel GC and compares it against the real (wall) time. If the parallelism is low, this can indicate that the parallel gc is operating at the efficiency of serial gc, and there could be room for improvement. This GC time information is now included in the jdk.GCCPUTime event added in JDK20+.
> 
> This PR requires support for the jdk.GCCPUTime event [[2]](https://bugs.openjdk.org/browse/JDK-8291753), so it also doubles as a PR towards JMC-7895 [[3]](https://bugs.openjdk.org/browse/JMC-7895).
> 
> [0] https://bugs.openjdk.org/browse/JMC-8144
> [1] https://github.com/mgm3746/garbagecat/tree/main
> [2] https://bugs.openjdk.org/browse/JDK-8291753
> [3] https://bugs.openjdk.org/browse/JMC-7895

This pull request has now been integrated.

Changeset: fea5d67e
Author:    Alex Macdonald <aptmac at openjdk.org>
URL:       https://git.openjdk.org/jmc/commit/fea5d67ec0b020d1dc9e5ee1c5bf4435a21bd04e
Stats:     937 lines in 14 files changed: 937 ins; 0 del; 0 mod

8144: Add rule to detect GC Inverted Parallelism

Reviewed-by: hirt

-------------

PR: https://git.openjdk.org/jmc/pull/528


More information about the jmc-dev mailing list