-
Notifications
You must be signed in to change notification settings - Fork 126
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
Switching to ondemand cpufreq governor #4
Comments
Thanks for the tip, seems like a sane default indeed. However while trying your benchmark with the ondemand or performance governor I couldn't see the difference :
I've notice though a yellow lightning image on the top-right durig the sysbench when using a direct screen instead of ssh, my guess is that the kernel is getting bypassed by the firmware on this, maybe because of over-heating or insufficient power supply? Mine is 2A, I'd be curious to know yours? As for the I gave it a try but it couldn't run because VCHIQ is not included in the arm64 kernel at this point (cf. https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=158127). |
Amperage ratings aren't worth a look here since the problem is undervoltage. And that's why we/you would need Thanks for the other pointers, will look into soon but currently busy with more capable hardware. Just as a recommendation: without good Micro USB cables voltage drops too much and ARM cores are limited to 600 MHz anway. I would do a search on eg. Amazon for '20awg micro usb' (and choose the Tronsmart set, at least the 30cm cable is personally verified to transport close to 10W with just 0.4V drop) |
It was indeed a voltage drop problem, I've tried with a similar power supply which has a much shorter cable and the lightning didn't show up, benchmark took only 3 seconds as you mentioned! I'll definitely configure this during kernel build for the next release, thanks again 👍 |
BTW: I allowed myself to cite this 'Micro USB related performance problem' over there (since it's important that people start to understand the impact of this unfortunate connector leading to all sorts of problems you would not even think about in the first place). I'll continue to use your distro the next weeks to do some compatibility testing to prepare stuff like this to be compatible with (arm64) Stretch and also to get some experiences before we allow Stretch in Armbian's build system. So while I'm surely not the average user I hope it's ok bringing stuff to your attention with more issues here that's IMO worth a look? |
Sure, I'd really appreciate to get more advice like this, I'm also making this project to learn more about linux. |
Sorry, I'm too lazy to open an own repo for this but I think this should be 'backed up to the internet' and you with a 64-bit Raspberry distro have exactly the target audience who needs to know this :) Background info: http://tech.scargill.net/a-question-of-lifespan/ (yeah, the average RPi user not trusting in SD cards is also partially related to under-voltage) Additional info: I asked 7 Raspberry 3 users I personally know to try out the script while running Still missing component:
|
Nice one, so you're running this script in parallel from the sysbench right? I'm working on a |
Yep, unfortunately the Regarding We include the tool in the meantime as |
Just to let you know: I chose your pi64 image as basis for latest official Raspberry Pi OpenMediaVault image: https://forum.openmediavault.org/index.php/Thread/18991 (just to ensure that 0% Raspbian is involved and to ship with a 64-bit mainline kernel for adventourus users). Also an improved version of the above 'health check' script is included as
|
Seems, all that's needed is to use |
Now realized that you already use this. Sorry for the noise... |
Hi @ThomasKaiser we came across your script while dealing with undervoltage issues on the RaspiBlitz: raspiblitz/raspiblitz#474 Is that OK if I use some of it as a part of our project? Thank you for your work 🙏 |
@openoms sure can you use it. ThreadX (the mythical 'firmware' running on every RPi) got an update at least with the RPi 3B+ and now the returned value contains of 21 bits and needs to be interpreted slightly differently: https://forum.openmediavault.org/index.php/Thread/18991-New-approach-for-Raspberry-Pi-OMV-images/?postID=190184#post190184 -- I don't know whether this only applies to RPi 3B+/A+ or all models but this should be easy to detect if you have more than one RPi (I have none in the meantime any more).
So you neither care for security nor performance. Good luck with this ;) |
Exploring DietPi because of the multi-platform support and the automated setup capabilities. We are building our own services and hardening on top and surely disabling something like automatic login with root. It is quite barebone to start with. |
Based on ThomasKaiser's raspimon, from bamarni/pi64#4 (comment) and then modified
I would suggest either patching kernel config to use
ondemand
by default (powersave
is the default and not the best choice), addingcpufrequtils
package by default or adding this to/etc/rc.local
:With the settings you use now the CPU cores are limited to 600 MHz. While I use a custom Armbian build on RPi 3 now where this isn't a problem the users of your distro should be able to benefit from twice the performance too.
With the above changes the stupid
sysbench
pseudo benchmark finishes in 3 seconds compared to 48 seconds as usual. Withpowersave
it's 6.2 seconds. Just try it out yourself:Maybe it's also worth executing
dpkg --add-architecture armhf
and adding the following to/etc/apt/sources.list.d/raspbian.list
:(requires adding
apt-transport-https
though). Me still searching for the right packages containingvcgencmd
command to talk to the mythical firmware having control over the ARM cores.The text was updated successfully, but these errors were encountered: