3

I recently made my first open source project and would appreciate any feedback I can get for it.
It's a pretty small program to kind of permanently change the cpu governor of a raspberry pi (so it's kind of niche but I struggled a few times with it).
https://github.com/DavidM42/...

Comments
  • 1
    What does that do? Sorry for being ignorant :p
  • 0
    @aronmik ditto
  • 0
    I should probably upgrade readme :D. The Raspberry Pi is based on the arm architecture and has some phone hardware. So theres the possibility if changing the CPU governor which sets the CPU clock speed.
    The max clock speed and so on can be set permanently in a config but you have to build a new kernel or set it at every boot to change this governor.
  • 1
    @davidmaerz so it becomes faster?
  • 1
    @aronmik depends. Some versions of the kernel are built with the powersave governor where the clock speed stays at minimum all the time. But you can change it to ondemand or performance to let it stay at the highest clock with this tool.
  • 2
    @davidmaerz sounds handy. Good job, I hope its help people.

    I was interested because we have ~160 raspberries out in the field. There performance is fine since thet only collected data from sensors every minutes. But if this makes it a lot faster we could maybe do the hexidecimal to decimal conversions on the pie. Making our processing server les expansive.
  • 0
    @aronmik 0.o I didn't know companies used pi's out in the field

    When you said 160 raspberry pi's I thought you were one of those guys who builds a supercomputer with them lol
  • 1
    No we are using certified power meter and the normal industry reader/network module costs about a 1000 dollars. So we modified raspberry to do the same task.

    Now its costing 900 less for each location. And with 160 meters out already thats lot of money. And if all goes well we be expanding this year with another 1000 locations. So that all money I can spend on buy coffee and booze. ^^

    The power meters measure around 70 values a minute. All the phases and stuf like flickering. So they are not your standard kWh meter. In the end we compare the in this case farmers with farmers of the same size to get a little competive. While analist research the data and finds the problems that might be there.

    Thats probably more information then you asked for. But its a fun project to talk about.
  • 0
    @aronmik that's very interesting I also did not know Pi's could be so helpful for big scale industrial projects.
    And for your case it could be interesting to change the governors. Maybe you check the governor and see which they are on.
    (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    So the best for low usage cases would probably be the power efficient "powersave" and for everything else including the calculations you mentioned "ondemand" should be perfect.
    If you choose ondemand you could also make a quick test to see if the clock speed goes up while under heavy load (I only recommend this because I had some problems with it in the past where ondemand did not clock it up while providing an openvpn server f.e.)
Add Comment