-
Notifications
You must be signed in to change notification settings - Fork 24
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
Several runtime optimizations to reduce CPU load and temperature and increase battery life #101
Open
friebi
wants to merge
250
commits into
splitti:main
Choose a base branch
from
friebi:toUpstream
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # config/templates/dietpi.txt
# Conflicts: # config/templates/dietpi.txt
added dependency to gpiod apt package # Conflicts: # scripts/OnOffShim/off_trigger.sh
…ng get_network rrd log only once per minute
…- removing get_network" This reverts commit 07a779b.
…ed from off- to online
# Conflicts: # scripts/OnOffShim/off_trigger.sh
# Conflicts: # scripts/OnOffShim/off_trigger.sh
This reverts commit 0b9b3cc.
This reverts commit a84ebcb. # Conflicts: # update/start_mupibox_update-beta.sh # update/start_mupibox_update-developer.sh
This reverts commit b6c5b95. # Conflicts: # update/start_mupibox_update-beta.sh # update/start_mupibox_update-developer.sh
# Conflicts: # README.md
# Conflicts: # README.md
This reverts commit d10bc86.
# Conflicts: # scripts/mupibox/get_monitor.sh
# Conflicts: # autosetup/autosetup.sh # scripts/OnOffShim/off_trigger.sh # scripts/OnOffShim/poweroff.sh # update/start_mupibox_update.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I love this project and also the MupiHAT that you guys have developed. I have two MupiBoxes in operation, each running a Raspberry Pi 3 B+.
When I started using your SW, I realized a pretty high CPU load even in idle state and after letting the system settle for a couple of minutes. At least in my case using Raspberry 3's. So, I started profiling and optimizing. I am running these changes successfully on my two boxes over the last couple of months, so it can be considered as tested.?
What did I do:
jq
from inside endless loops to outsideWhat did I achieve:
Disadvantages:
Further improvements:
autosetup/autosetup.sh
andupdate/start_mupibox_update.sh
into one script, because they share a lot of copied code and they start to diverge making it a mess to maintain.When viewing the changes in this PR I recommend disabling whitespaces in view.
![grafik](https://private-user-images.githubusercontent.com/6443912/386862988-bc339e95-0abf-4f70-905c-5e8ae791da89.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjc5MzMsIm5iZiI6MTczOTEyNzYzMywicGF0aCI6Ii82NDQzOTEyLzM4Njg2Mjk4OC1iYzMzOWU5NS0wYWJmLTRmNzAtOTA1Yy01ZThhZTc5MWRhODkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTkwMDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmVmYzZmMjY0ZjE4YTEzYWZlN2NjYjNlMGM4NTlkNjc4NTUzM2ZjODIwNzkwNWJhODA3NWUwNDExMzU1YmIzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.pocowvHKLPb4DMxV6rYsZaMKpSrMvCw9RHXdOJf9n1k)
When merging this PR I recommend doing a squash merge, because otherwise a lot of commits would be merged onto the main branch.