docs: Document async-profiler usage in the runner image - #379
Open
velo wants to merge 1 commit into
Open
Conversation
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
async-profiler is already installed in the image (
/opt/async-profiler,asprofonPATH), but nothing documents it. This adds a README section covering how to actually use it.Verified, not assumed
Built the image locally, ran a CPU-heavy job on a real cluster container (
datagen->MD5(SHA256(UPPER(txt)))->blackhole) and attached to the TaskManager. The resulting flame graph contains genuine stacks all the way down to codegen and JIT intrinsics:wall,alloc,lockandcollapsedoutput were exercised too.Findings worth documenting
ctimerfallback works, no extra capabilities needed. Hardware perf events are blocked in an unprivileged container (asprof -e cycles->perf_event_open ... Operation not permitted), but-e cpusilently falls back toctimerand still produces complete stacks. NoSYS_ADMIN, noperf_event_paranoidtuning.flinkuser, so a mounted host volume fails withCould not open output file.[ERROR] Profiler already startedneedsasprof stop -f <file> <pid>to collect.DebugNonSafepointsis optional. Documented rather than enabled by default — stacks are already usable without it, and hardcoding JVM opts into the image would be silently overridden by any user-suppliedenv.java.opts.all.Docs only, no image or code changes.
🤖 Generated with Claude Code