Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v24.1.x] Fixes for wait_ms cpu profiler mode #18141

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #18089

Currently we would only enable the profiler on the shard handling the
Admin API request.

Fix it such that we would actually get samples from all shards.

(cherry picked from commit 937f6ea)
The timer to collect traces from within seastar only fires every ~128 *
`sample_period`. With default settings that's only every 13 seconds so
`wait_ms` times like 5 seconds or 18 seconds wouldn't really work as
expected.

Hence explicitly poll samples from seastar before collecting them all
and returning them from `wait_ms`.

(cherry picked from commit ab725e5)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Apr 29, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 29, 2024
@piyushredpanda
Copy link
Contributor

#16332

@piyushredpanda piyushredpanda merged commit b684965 into redpanda-data:v24.1.x May 3, 2024
15 of 18 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.3 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants