Skip to content

Comments

Parse task queue stats from /proc/schedstat#186

Merged
pgier merged 1 commit intoprometheus:masterfrom
postmates:schedstat
Jul 2, 2019
Merged

Parse task queue stats from /proc/schedstat#186
pgier merged 1 commit intoprometheus:masterfrom
postmates:schedstat

Conversation

@bitglue
Copy link
Contributor

@bitglue bitglue commented Jun 25, 2019

These are useful as an indication of CPU contention and scheduler
latency.

@bitglue bitglue force-pushed the schedstat branch 3 times, most recently from 3bd711a to 6a02a68 Compare June 25, 2019 17:30
@bitglue bitglue marked this pull request as ready for review June 25, 2019 17:32
@bitglue
Copy link
Contributor Author

bitglue commented Jun 25, 2019

@discordianfish @pgier ready for review.

I'll update prometheus/node_exporter#1389 to use this after review.

Copy link
Collaborator

@pgier pgier left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I added a few comments in-line. It would be nice to also include a Proc method for getting the per-process schedstat data.

@bitglue bitglue force-pushed the schedstat branch 2 times, most recently from 67f2a4b to c5f75d1 Compare June 28, 2019 20:14
@bitglue
Copy link
Contributor Author

bitglue commented Jun 28, 2019

@pgier Everything addressed I think, please re-review

@bitglue bitglue force-pushed the schedstat branch 2 times, most recently from 207a50a to 8f8adde Compare June 28, 2019 20:18
@bitglue
Copy link
Contributor Author

bitglue commented Jul 2, 2019

@discordianfish @pgier bump, review please

Copy link
Collaborator

@pgier pgier left a comment

Choose a reason for hiding this comment

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

LGTM

These are useful as an indication of CPU contention and scheduler
latency.

Signed-off-by: Phil Frost <phil@postmates.com>
@bitglue
Copy link
Contributor Author

bitglue commented Jul 2, 2019

@pgier ok, sorry to change things just after asking for review. It occured to me reading the diff with fresh eyes and a cup of coffee that there were untested corner cases. I've added some more tests and rearranged some things. Should be good now, for reals.

@pgier pgier merged commit 8f55e60 into prometheus:master Jul 2, 2019
@pgier
Copy link
Collaborator

pgier commented Jul 2, 2019

Merged, thanks!

@bitglue
Copy link
Contributor Author

bitglue commented Jul 2, 2019

What's the process for getting a released tagged so I can complete prometheus/node_exporter#1389 ?

@bitglue
Copy link
Contributor Author

bitglue commented Jul 2, 2019

Actually now that I've learned a bit more about go modules I've figured out how to update it without a release. Seems I'm not the first one to pin node_exporter to a non-released version of procfs.

bitglue pushed a commit to postmates/node_exporter that referenced this pull request Jul 5, 2019
These are useful as a direct indication of CPU contention and task
scheduler latency.

Handy references:
 - https://github.com/torvalds/linux/blob/master/Documentation/scheduler/sched-stats.txt
 - https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.taskscheduler.html

procfs is updated to pull in the enabling change:
prometheus/procfs#186

Signed-off-by: Phil Frost <phil@postmates.com>
SuperQ pushed a commit to prometheus/node_exporter that referenced this pull request Jul 10, 2019
These are useful as a direct indication of CPU contention and task
scheduler latency.

Handy references:
 - https://github.com/torvalds/linux/blob/master/Documentation/scheduler/sched-stats.txt
 - https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.taskscheduler.html

procfs is updated to pull in the enabling change:
prometheus/procfs#186

Signed-off-by: Phil Frost <phil@postmates.com>
remijouannet pushed a commit to remijouannet/procfs that referenced this pull request Oct 20, 2022
Parse task queue stats from /proc/schedstat
bobrik pushed a commit to bobrik/procfs that referenced this pull request Jan 14, 2023
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
These are useful as a direct indication of CPU contention and task
scheduler latency.

Handy references:
 - https://github.com/torvalds/linux/blob/master/Documentation/scheduler/sched-stats.txt
 - https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.taskscheduler.html

procfs is updated to pull in the enabling change:
prometheus/procfs#186

Signed-off-by: Phil Frost <phil@postmates.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
These are useful as a direct indication of CPU contention and task
scheduler latency.

Handy references:
 - https://github.com/torvalds/linux/blob/master/Documentation/scheduler/sched-stats.txt
 - https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.taskscheduler.html

procfs is updated to pull in the enabling change:
prometheus/procfs#186

Signed-off-by: Phil Frost <phil@postmates.com>
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