Skip to content

fix(profiler): switch back to pre-zstd compression#4016

Merged
nsrip-dd merged 1 commit into
mainfrom
PROF-12641-switch-to-legacy-compression
Oct 2, 2025
Merged

fix(profiler): switch back to pre-zstd compression#4016
nsrip-dd merged 1 commit into
mainfrom
PROF-12641-switch-to-legacy-compression

Conversation

@nsrip-dd

@nsrip-dd nsrip-dd commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

After switching our default compression to zstd, we've found that the
profiler's memory usage is too high for some internal services. The
memory usage primarily comes from the compression library's history
buffer, which defaults to 8MiB (see the zstd.WithWindowSize option.) We
have one compressor per profile type. For now we'll switch back to the
"legacy" compression scheme by default. Users can opt back in to zstd by
setting DD_PROFILING_DEBUG_COMPRESSION_SETTINGS=zstd.

After switching our default compression to zstd, we've found that the
profiler's memory usage is too high for some internal services. The
memory usage primarily comes from the compression library's history
buffer, which defaults to 8MiB (see the zstd.WithWindowSize option.) We
have one compressor per profile type. For now we'll switch back to the
"legacy" compression scheme by default. Users can opt back in to zstd by
setting DD_PROFILING_DEBUG_COMPRESSION_SETTINGS=zstd.
@nsrip-dd
nsrip-dd requested a review from a team as a code owner October 2, 2025 12:48
@pr-commenter

pr-commenter Bot commented Oct 2, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-10-02 13:01:31

Comparing candidate commit 7b9a862 in PR branch PROF-12641-switch-to-legacy-compression with baseline commit ad0205e in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@nsrip-dd
nsrip-dd merged commit c7bca81 into main Oct 2, 2025
248 of 251 checks passed
@nsrip-dd
nsrip-dd deleted the PROF-12641-switch-to-legacy-compression branch October 2, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants