Message boards : Number crunching : Running on a 4GB Raspberry Pi 4 - How to?
Previous · 1 · 2 · 3 · 4 · 5 . . . 6 · Next
Author | Message |
---|---|
bkil Send message Joined: 11 Jan 20 Posts: 97 Credit: 4,433,288 RAC: 0 |
Could anyone here please share what power consumption a fully loaded Raspberry Pi 4 has without anything plugged in other than power & SD card (i.e., no HDMI, network, USB)? By the way, if you added 4GB zram, I think it could run 4 tasks at a time. |
PorkyPies Send message Joined: 6 Apr 20 Posts: 45 Credit: 1,650,779 RAC: 0 |
Pimoroni is the solution They are not suitable for constant running. They only last about 3-4 months. I’ve already had to throw 2 out of 3 in the bin. The 3rd was a replacement under warranty and isn’t as old. I expect it to fail too. The fans seize up. I have some 3 year old Noctua 40mm fans that I have been using on the Pi’s that are still going strong. They cost more but as the saying goes, you get what you pay for. MarksRpiCluster |
Faraz Hussein Send message Joined: 13 Apr 20 Posts: 6 Credit: 74,742 RAC: 0 |
I have a cluster of 5 raspberry pi 4's . Thanks to the tips on this thread here I was able to get Boinc/Rosetta running on one. Before I deploy to the remaining pis, I had two questions: 1) I am using a POE hat to power it. It includes a fan. Is this enough to keep it cool? If not, how can I automate monitoring the temperatures? 2) Any more details of the compatibility issues when switching to the aarch64 ? I use these pis to record videos . That still seems to work. Though I am now exclusively using it to run rosetta. |
bkil Send message Joined: 11 Jan 20 Posts: 97 Credit: 4,433,288 RAC: 0 |
Great work! To simply answer the first question, keep monitoring its temperature and performance, because it should start throttling above a certain level. Depending on where you would like to graph the results and if you would like alerting you have lots of choices. This should return your CPU temperature: cat /sys/class/thermal/thermal_zone0/temp And this one your GPU temp: vcgencmd measure_temp. Here are some example plugins:
- Nagios: https://exchange.nagios.org/directory/Plugins/Hardware/Others/check_rpi_temp-2Epy--2D-Raspberry-Pi-temperature/details - Icinga: https://exchange.icinga.com/Napsty/check_rpi_temp - ...
|
Faraz Hussein Send message Joined: 13 Apr 20 Posts: 6 Credit: 74,742 RAC: 0 |
Thanks for the very informative reply! The heatsink study was interesting . I have been monitoring the pi temps manually with the commands you sent. It seems to be around 60C. Although right now one pi I am not able to SSH into to ( it is hanging ), presumably from being overloaded with a boinc job. So that temperature I am guessing would be higher.. I am not sure I can monitor power consumption as they are being run via power over ethernet ( POE ). |
Faraz Hussein Send message Joined: 13 Apr 20 Posts: 6 Credit: 74,742 RAC: 0 |
It finally let me ssh into my hanging pi that was running some boinc job. When I did a top it showed: load average: 33.76, 68.52, 62.02 It should not be above 4, since the pi only has 4 cpus. It looks like the code spawned maybe 64 threads instead of just 4 ? |
Mod.Sense Volunteer moderator Send message Joined: 22 Aug 06 Posts: 4018 Credit: 0 RAC: 0 |
Do you have a cc_config or an app_config file created on it? There is a setting somewhere that requests more tasks than the number of CPUs would normally warrant. Rosetta Moderator: Mod.Sense |
Faraz Hussein Send message Joined: 13 Apr 20 Posts: 6 Credit: 74,742 RAC: 0 |
I checked and do not see anything in my cc_config file relating to number of cpus. Here are the contents of it: <cc_config> <log_flags> <task>1</task> <file_xfer>1</file_xfer> <sched_ops>1</sched_ops> </log_flags> <options> <alt_platform>aarch64-unknown-linux-gnu</alt_platform> </options> </cc_config> |
bkil Send message Joined: 11 Jan 20 Posts: 97 Credit: 4,433,288 RAC: 0 |
Have you updated your boot loader? They say it improves power consumption a lot: https://www.jeffgeerling.com/blog/2019/raspberry-pi-4-might-not-need-fan-anymore I found another command you may find useful to determine the clock speed hinting at throttling: vcgencmd measure_clock arm - via https://www.scivision.dev/raspberry-pi-check-temperature-of-cpu/. I also like their minimalistic solution of logging to cron, though I usually log power & temperatures in the same line. |
bkil Send message Joined: 11 Jan 20 Posts: 97 Credit: 4,433,288 RAC: 0 |
Check these: free zramctl cat /proc/swaps ps -e v|grep -i boinc boinccmd --get_tasks top -n 1|head -n 20 Reduce the amount of tasks you request to the minimum and disable "keep suspended tasks in memory". |
Mod.Sense Volunteer moderator Send message Joined: 22 Aug 06 Posts: 4018 Credit: 0 RAC: 0 |
The three ARM hosts associated with your profile all have less than 17 tasks, many of which are completed. So the process counts shown in your load average cannot all be BOINC processes. Rosetta Moderator: Mod.Sense |
Faraz Hussein Send message Joined: 13 Apr 20 Posts: 6 Credit: 74,742 RAC: 0 |
Hard to know what exactly was going on as I could not ssh into the machine. But my guess is sometimes the task run multiple threads or something. For example I saw today a boinc process using 180% cpu. So it was using two threads.. Normally it should not go above 100%. I would need to look at the source code to see what kind of parallel calculations they are trying to do. |
Mod.Sense Volunteer moderator Send message Joined: 22 Aug 06 Posts: 4018 Credit: 0 RAC: 0 |
The only thing I've seen others report, that would use more than one thread is that when tasks first start they have to unzip some databases and etc. for the task to use. Some have reported that the unzip process is multi-threaded, or can become multi-threaded in some environments. Rosetta Moderator: Mod.Sense |
sgaboinc Send message Joined: 2 Apr 14 Posts: 282 Credit: 208,966 RAC: 0 |
hi some quick questions, the raspbian buster distribution is 32 bits i think. even for pi4 would that be able to receive r@h boinc tasks as it sounds like the tasks are 64 bits? |
[VENETO] boboviz Send message Joined: 1 Dec 05 Posts: 2011 Credit: 9,820,046 RAC: 2,935 |
hi some quick questions, the raspbian buster distribution is 32 bits i think. even for pi4 This guide |
Endgame124 Send message Joined: 19 Mar 20 Posts: 63 Credit: 20,367,622 RAC: 46 |
reminder to anyone setting up raspbian (I forgot), ssh is disabled by default (yes, it seems they are specifically trying to make your life difficult). You need to create a file called "ssh" file on / to be able to ssh to the pi to get started. |
Endgame124 Send message Joined: 19 Mar 20 Posts: 63 Credit: 20,367,622 RAC: 46 |
As of last night, my pi 4 4GB is configured, running with zram (just in case I get a couple of large work units, i still want it to be processing with 4 CPUs) and Over night it picked up 4 work units. Temp processing 4 WUs is 57c in the Flirc case - it’s actually so low I’m wondering what’s wrong. I was expecting higher than a pi 3 in a Flirc case with all the reports of the pi 4 being hot.., |
sgaboinc Send message Joined: 2 Apr 14 Posts: 282 Credit: 208,966 RAC: 0 |
somewhat off topic, there is this ice-tower cpu cooler for Pi 4 that seem to have pretty good soc cooling performance, you can find them on aliexpress https://www.cnx-software.com/2019/07/25/review-raspberry-pi-4-ice-tower-cooling-fan/ as for myself i did some tests with a low cost 28 mm x 28 mm x 11 mm heat sink, adhered with some cheap thermal compound (those for cpu and gpu mostly works) https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=271933 temperatures are somewhat lower rather than hot, but i'm not sure if running with only a heat sink and no fan is adequate to keep temperatures low in those loads |
Endgame124 Send message Joined: 19 Mar 20 Posts: 63 Credit: 20,367,622 RAC: 46 |
somewhat off topic, there is this ice-tower cpu cooler for Pi 4 that seem to have pretty good soc cooling performance, you can find them on aliexpress The FLIRC case I used (https://www.amazon.com/Flirc-Raspberry-Pi-Case-Silver/dp/B07WG4DW52?ref_=ast_bbp_dp) seems to be quite sufficient with no fan running. I let it run for 2 hours "stock" with the plastic top on and the highest temp I saw was 58c. Just popping off the removable plastic top and letting it run more 2 hours yielded a max temp of 55c. I then took an old heatsink I had on hand for a P3 (Thermaltake Volcano 6 cu) and just placed it on top of the FLIRC case, let it run 2 more hours, and the temp dropped to a high of 51c. All of this is just passively cooled - I'll probably eventually setup a 120mm fan to blow across a stack of Pi 4s if the performance of this one turns out to be what I'm looking for. |
Endgame124 Send message Joined: 19 Mar 20 Posts: 63 Credit: 20,367,622 RAC: 46 |
More Pi 4 in Flirc Case numbers: Ambient temp 68 degrees (my basement is pretty steady temp wise, but I didn't check between tests if the pi had increased the basement temp) Each configuration was run for 2 hours, and temps were recorded at 10 second intervals. Max temp recorded (unfortunately I discarded the dataset between runs, so I can't give average temp) HDMI is disabled for the testing. w/ top on 58c w/ top off 55c w/ top off + heatsink 51c w/ top off + heatsink + 60mm fan (side) 38c w/ top off + heatsink + 60mm fan (front) 35c Questions to be answered: Should I have added VGA heatsinks inside the closed case for other chips, such as the PMIC chip, or is that useless since there is no airflow inside the case? Would Ubuntu with Linux Kernel 5 (native raspberry pi 4 support) do more work at similar wattage / temp? |
Message boards :
Number crunching :
Running on a 4GB Raspberry Pi 4 - How to?
©2025 University of Washington
https://www.bakerlab.org