Parse task queue stats from /proc/schedstat#186
Conversation
3bd711a to
6a02a68
Compare
|
@discordianfish @pgier ready for review. I'll update prometheus/node_exporter#1389 to use this after review. |
pgier
left a comment
There was a problem hiding this comment.
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.
67f2a4b to
c5f75d1
Compare
|
@pgier Everything addressed I think, please re-review |
207a50a to
8f8adde
Compare
|
@discordianfish @pgier bump, review please |
These are useful as an indication of CPU contention and scheduler latency. Signed-off-by: Phil Frost <phil@postmates.com>
|
@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. |
|
Merged, thanks! |
|
What's the process for getting a released tagged so I can complete prometheus/node_exporter#1389 ? |
|
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. |
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>
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>
Parse task queue stats from /proc/schedstat
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>
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>
These are useful as an indication of CPU contention and scheduler
latency.