Skip to content

Conversation

@tbg
Copy link
Member

@tbg tbg commented Dec 12, 2025

Backport 2/2 commits from #159279 on behalf of @tbg.


In an escalation1, we observed that on larger clusters,
multiple rounds of runtime.Stacks are required until the buffer
sizing algorithm as produced a large enough buffer.
Since grabbing stacks will cause stop-the-world pauses,
this is best avoided.

NB: *serverpb.StacksRequest is already populated using allstacks.Get.

Fixes #159285.

Release note (bug fix): the performance impact of the automatic goroutine dumper has been reduced by reducing the number of stop-the-world events it causes (especially on large, busy systems).

Epic: none


Release justification:

Footnotes

  1. https://github.com/cockroachlabs/support/issues/3495#issuecomment-3622936905

tbg added 2 commits December 11, 2025 15:45
In an escalation[^1], we observed that on larger clusters,
multiple rounds of runtime.Stacks are required until the buffer
sizing algorithm as produced a large enough buffer.
Since grabbing stacks will cause stop-the-world pauses,
this is best avoided.

Fixes cockroachdb#159285.

[^1]: cockroachlabs/support#3495 (comment)

Epic: none
@tbg tbg force-pushed the blathers/backport-release-25.3-159279 branch from 68ccd90 to d7a3576 Compare December 12, 2025 17:16
@tbg tbg requested review from a team as code owners December 12, 2025 17:16
@tbg tbg requested review from dhartunian and removed request for a team December 12, 2025 17:16
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Dec 12, 2025
@blathers-crl
Copy link

blathers-crl bot commented Dec 12, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added backport Label PR's that are backports to older release branches T-kv KV Team labels Dec 12, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. T-kv KV Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants