cockroachdb / cockroachdb/cockroach
tracing: keep stacks compressed in tracer snapshots
Open
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
Assessment
This issue has not been assessed yet.