-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add SafePoint times to UpdateGraphProcessor cycle times logging. #2123
Add SafePoint times to UpdateGraphProcessor cycle times logging. #2123
Conversation
engine/updategraph/src/main/java/io/deephaven/engine/updategraph/UpdateGraphProcessor.java
Outdated
Show resolved
Hide resolved
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.
The decimal printout stuff looks nice and improves the output. What I am not sure that I have my head around is if we are actually reporting the right thing. We will report the amount of GC that occurred during a cycle. However, I don't know if that is the most useful metric or really what we should report at all.
I think that separating STW vs. other collection is important. I also think that we're ignoring everything outside the cycle; which may or may not matter. For non-STW collections, I don't know how the things will accumulate when something starts or ends cross a cycle boundary. Will we sometimes have zero if we start but don't finish; and other times have > 100% when we finish but had already started.
Tracking GC separately using the existing GC logs may be a better mechanism than what is being done here. @rcaudy is better at GC tuning and investigation than I am. Also Raffi.
… double fixed precision appending code.
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.
I didn't review any of the logical changes to UGP. I think we need some more polish here before merging.
buildSrc/src/main/groovy/io/deephaven/project/util/CombinedJavadoc.groovy
Outdated
Show resolved
Hide resolved
Util/src/main/java/io/deephaven/util/JvmIntrospectionContext.java
Outdated
Show resolved
Hide resolved
Util/src/main/java/io/deephaven/util/JvmIntrospectionContext.java
Outdated
Show resolved
Hide resolved
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.
My review is mostly at a high level. Contrary to expectations, I need not do a line-by-line review. I'll address overall context in the Slack channel.
Util/src/main/java/io/deephaven/util/JvmIntrospectionContext.java
Outdated
Show resolved
Hide resolved
engine/updategraph/src/main/java/io/deephaven/engine/updategraph/UpdateGraphProcessor.java
Outdated
Show resolved
Hide resolved
engine/updategraph/src/main/java/io/deephaven/engine/updategraph/UpdateGraphProcessor.java
Outdated
Show resolved
Hide resolved
buildSrc/src/main/groovy/io.deephaven.java-toolchain-conventions.gradle
Outdated
Show resolved
Hide resolved
buildSrc/src/main/groovy/io.deephaven.java-toolchain-conventions.gradle
Outdated
Show resolved
Hide resolved
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.
I'll be going through this to try and support our hotspot-impl in docker use case.
engine/updategraph/src/main/java/io/deephaven/engine/updategraph/UpdateGraphProcessor.java
Outdated
Show resolved
Hide resolved
hotspot-impl/src/main/java/io/deephaven/hotspot/impl/HotSpotImpl.java
Outdated
Show resolved
Hide resolved
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.
Thoughts on instead renaming the existing server-jetty/netty to server-jetty-lib etc, and leaving server-jetty as the app itself?
I could see either way here, and have just about convinced myself it is better with this explicit rename (so that the libraries are easier to use downstream), only real complaint is that ./gradlew :server-jetty-app:run is long to get it running - but we really should just make a top-level task if we decide this is important and something people will do.
I also think we should re-add the readmes for netty/jetty, but seems like we should do that separately.
Approved with one comment that I think would improve readability.
Given Charles comments (below), I've re-done the implementation based on
HotspotRuntimeMBean
instead ofGarbageCollectorMXBean
.The information from
HotspotRuntimeMBean
contains count and times for stop the world pauses due to safepointing; every GC uses a safepoint, not every safepoint is GC.See
HotspotRuntimeMBean
: https://stackoverflow.com/questions/42514817/printgcapplicationstoppedtime--
Logging HotSpot Safepoint times using data from HotSpot introspection (see https://stackoverflow.com/questions/42514817/printgcapplicationstoppedtime/42515743#42515743)
Thanks to Devin for the help hooking up this in a way that
(1) Works for both jdk 11 and 17.
(2) Does not overly burden the system with additional dependencies: we are adding as an optional a service; if not present is not used.
Also format millis output to a fixed number of decimal places.
This is how it looked before:
This is how it looks now:
The idea for computing the number of base 10 digits for an integer came from here: https://stackoverflow.com/questions/25892665/performance-of-log10-function-returning-an-int