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

scripts: Add slicesnoop script #1057

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

hodgesds
Copy link
Contributor

@hodgesds hodgesds commented Dec 6, 2024

Add slicesnoop.bt bpftrace script that allows the introspection of slice durations aggregated by DSQs.

Example of scx_layered tracing the distribution of high fallback dsq (1024) slice duration:

$ sudo ./slicesnoop.bt 0 1024
@dsq_slice[1024]: 
[512K, 1M)           528 |@@@@@@@@@@@@@                                       |
[1M, 2M)               0 |                                                    |
[2M, 4M)               0 |                                                    |
[4M, 8M)               0 |                                                    |
[8M, 16M)              0 |                                                    |
[16M, 32M)          2051 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|

@dsq_slice_avg[1024]: 16069174

Add slicesnoop.bt bpftrace script that allows the introspection of slice
durations aggregated by DSQs.

Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
Copy link
Contributor

@likewhatevs likewhatevs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hodgesds hodgesds added this pull request to the merge queue Dec 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 7, 2024
Copy link
Contributor

@etsal etsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@hodgesds hodgesds added this pull request to the merge queue Dec 7, 2024
Merged via the queue into sched-ext:main with commit 2fa90de Dec 7, 2024
23 checks passed
@hodgesds hodgesds deleted the scripts-slicesnoop branch December 7, 2024 14:23
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.

4 participants