cockroachdb / cockroachdb/cockroach

tracing: keep stacks compressed in tracer snapshots

Open
#98,137 0 comments 0 reactions 0 assignees View on GitHub
A-tracing C-enhancement
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

We have seen some production instances with nearly 100k goroutines where the stack dump alone is >64MiB. Currently a tracer snapshot stores a map of every goroutine to its raw string stack; even just a few snapshots thus could add up to non-trivial memory usage. Instead, we could store the dump bytes compressed and only decompress them to parse out individual goroutine IDs and their stacks when needed.

Jira issue: CRDB-25099

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.