-
Notifications
You must be signed in to change notification settings - Fork 11
Disable efficiency cores #190
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
Conversation
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.
LGTMNITS; one - maybe - slightly bigger issue so putting it on request changes to make sure.
@@ -61,14 +94,18 @@ if [ -d $DIR_INTEL ]; then | |||
# increase freq from powersaving to normal, but don't overclock | |||
echo 100 > $DIR_INTEL/min_perf_pct | |||
echo 100 > $DIR_INTEL/max_perf_pct | |||
elif [ -d $DIR_AMD ]; then | |||
elif [ -f $FILE_AMD && ]; then |
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.
This looks incorrect to me, but I don't use bash often enough to be sure.
echo "Error: turboboost still enabled!" | ||
exit 1 | ||
fi | ||
else | ||
echo "Warning: kernel (turbo) boost config not found in '$DIR_INTEL' or '$DIR_AMD'." | ||
fi | ||
|
||
if [ -n "${store_isolcpus_fact}" ]; then |
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.
Is it on purpose that this is not logged when turboboost cannot be disabled? This is an improvement nonetheless, but probably best to move this to before disabling turboboost.
We will use those later for a report and to not duplicate the method of disabling.
This is defence in depth by disallowing the kernel to schedule work on the online cpu's before the script disables the CPU's. The script can fail when the CPU taken down is currently working on something.
Package is more correct but socket is better known. Also fixed a typo.
The boost exists for asahi@M1 laptops but not on a raspberry with ARMv7.
Also clarified the package/socket as package is more correct but socket is better known and fixed a typo.
Also clarified the package/socket as package is more correct but socket is better known and fixed a typo.
This does not fix our issue yet but will most likely help us a bit more.