-
Notifications
You must be signed in to change notification settings - Fork 8
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
Detect CPU throttling events #221
Conversation
I'm not certain that the output of the Raspberry Pi throttling check is ideal; it might be better to simplify it into "Throttling is happening now / Throttling has happened in the past". @xginn8 , what do you think? |
A general comment: I've recently moved away from lots of checks doing specific things in favor of these "aggregated checks" like |
bb505b5
to
3395f65
Compare
Updated overviewThis adds updates the temperature check with two new tests that take different approaches to detecting CPU throttling:
Happy case:
Sad case:
|
3395f65
to
b28764a
Compare
diagnostics.md
Outdated
the CPU directly. Additionally, adding other cooling mechanisms like fans or improving the location of the device can | ||
help address heat issues. | ||
|
||
### check_throttling_vcgencmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### check_throttling_vcgencmd | |
### test_throttling_vcgencmd |
diagnostics.md
Outdated
the CPU directly. Additionally, adding other cooling mechanisms like fans or improving the location of the device can | ||
help address heat issues. | ||
|
||
### check_throttling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### check_throttling |
this section can be deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dang, thank you, good catch.
This adds two checks that take different approaches to detecting CPU throttling: - test_throttling_dmesg examines dmesg output for throttling events - test_throttling_vcgencmd examines the output of the Raspberry Pi utility `vcgencmd` to determine if throttling is currently happening, or has occurred in the past. These are both called by check_throttling, which glues the output of both together. Connects-to: #183, #209 Change-type: minor Signed-off-by: Hugh Brown <[email protected]>
b28764a
to
72d23f3
Compare
This adds two checks that take different approaches to detecting CPU throttling:
check_throttling_dmesg examines dmesg output for throttling events. The original request at Add detection of over-temperature events. #183 was compared with this page;
check_throttling_vcgencmd examines the output of the Raspberry Pi utility
vcgencmd
to determine if throttling is currently happening, or has occurred in the past.Testing, happy case:
Sad case, dmesg:
Sad case, throttling:
(Fun thread on how to create a CPU spike with shell commands alone.)
Connects-to: #183, #209
Change-type: minor
Signed-off-by: Hugh Brown [email protected]