Start folding with a Raspberry Pi

Moderators: Site Moderators, FAHC Science Team

Foliant
Posts: 104
Joined: Wed May 13, 2020 4:39 pm
Location: Bavaria

Start folding with a Raspberry Pi

Post by Foliant »

Disclaimer: I was begging for an ARM section, now i have to post something. :eugeek:

As I may get some obsolete Smartphones after christmas i needed a way to make sure theyre working or not. Now I can compare the SOCs with my Raspberry Pi3 Model B I was using for testing.
A benefit to the community will be the following report I try to post as a guide:

I copied over my standart config.xml to get points counted and gain me remote access. (You can also configure identity and remote access from FAHControl or manually but for the moment there seems not to be a prompt to do so during installation)

I decided to start F@h as a service because a folding Pi wont do much more than just folding, I guess.
This requires some terminal work:

Code: Select all

sudo nano /lib/systemd/system/fah.service
You can copy and paste

Code: Select all

[Unit]
Description=Start Folding Client
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/FAHClient --config /home/pi/config.xml

[Install]
WantedBy=multi-user.target
Save the file by Ctrl + O, Return, Ctrl + X.
You may ignore " --config /home/pi/config.xml" but for me it was neccessary to specify my ready-to-fold config.

At least you have to enable the autostart by:

Code: Select all

sudo systemctl enable fah.service
  • After rebooting FAHClient should be runing.
  • Check by remote access (if configured) or using local FAHControl.
I instantly was getting a Cancer WU (16933), my preferred cause.

Conclusion:
After some folding, and fixed thermal throttling, I was sure the CPU on a Pi3 Model B is slow but would finish just before the Timeout of 2.4 Days (That forecast only applies with proper cooling!)
A Pi 3 is not making a reasonable amount of Points, its for enthusiasts and with photovoltaic and a battery it also can possibly make a zero-energy-cost build for contributing to F@h.

Happy Folding!

Regards,
Patrick
24/7
1x i5 3470 @2Cores
1x GTX750 (GM107)
2x GTX750Ti (GM107)
toTOW
Site Moderator
Posts: 6359
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: Start folding with a Raspberry Pi

Post by toTOW »

Are you sure that the Pi3 is able to make the deadlines ? I wouldn't try to run the client on anything slower than a RPi 4 ...

And I think the best choice would be an Odroid N2+ ...
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
Foliant
Posts: 104
Joined: Wed May 13, 2020 4:39 pm
Location: Bavaria

Re: Start folding with a Raspberry Pi

Post by Foliant »

toTOW wrote:Are you sure that the Pi3 is able to make the deadlines ?
I wouldnt recommend it but im only on 3 cores and the first (and for now only) WU I picked up will finish before timeout.

See for yourself
Image
24/7
1x i5 3470 @2Cores
1x GTX750 (GM107)
2x GTX750Ti (GM107)
Foliant
Posts: 104
Joined: Wed May 13, 2020 4:39 pm
Location: Bavaria

Re: Start folding with a Raspberry Pi

Post by Foliant »

Raspberry Pi 3B returned a good WU in 1,8 Days while folding on only 3 cores.

Code: Select all

03:10:22:WU00:FS00:0xa8:Completed 500000 out of 500000 steps (100%)
03:10:26:WU00:FS00:0xa8:Saving result file ../logfile_01.txt
[...]
03:10:28:WU00:FS00:0xa8:Folding@home Core Shutdown: FINISHED_UNIT
03:10:28:WU00:FS00:FahCore returned: FINISHED_UNIT (100 = 0x64)
03:10:30:WU00:FS00:Sending unit results: id:00 state:SEND error:NO_ERROR project:16933 run:57 clone:74 gen:46 core:0xa8 unit:0x0000004a0000002e0000422500000039
03:10:30:WU00:FS00:Uploading 3.63MiB to 129.32.209.203
03:10:30:WU00:FS00:Connecting to 129.32.209.203:8080
[...]
03:11:18:WU00:FS00:Upload complete
03:11:22:WU00:FS00:Server responded WORK_ACK (400)
03:11:22:WU00:FS00:Final credit estimate, 552.00 points
03:11:22:WU00:FS00:Cleaning up
So as long as the Timeout is not under 2 days even a Pi 3 is usable for full time folding. :ewink:
24/7
1x i5 3470 @2Cores
1x GTX750 (GM107)
2x GTX750Ti (GM107)
demorgan
Posts: 18
Joined: Wed Dec 16, 2020 10:29 pm

Re: Start folding with a Raspberry Pi

Post by demorgan »

I have found that my Raspberry Pi 4 with 8GB consistently and reliably does WUs on time. I did have to restart it for some reason after a couple weeks, but it's been OK since then. I know I said I have the 8GB version but I think 4GB should be enough, maybe even 2GB? It's cool that the Pi 3 is works too; I'm thinking of getting a 2GB Pi 4 model and seeing how it does with that. If it works well it's only $35 USD and one could make a cluster of them. Perhaps the video hardware could be supported too?
foldy
Posts: 2040
Joined: Sat Dec 01, 2012 3:43 pm
Hardware configuration: Folding@Home Client 7.6.13 (1 GPU slots)
Windows 7 64bit
Intel Core i5 2500k@4Ghz
Nvidia gtx 1080ti driver 441

Re: Start folding with a Raspberry Pi

Post by foldy »

How much PPD do you get on a Pi 3 or 4? And what is the power usage?
demorgan
Posts: 18
Joined: Wed Dec 16, 2020 10:29 pm

Re: Start folding with a Raspberry Pi

Post by demorgan »

On Raspberry PI 4 with 8GB, PPD right now is 593. I seem to remember that it was higher than that, however, closer to 800-900 before. I don't have a Pi 3 so I can't comment on that.

Edit: As for power consumption, don't know. If the Raspberry Pi has a way of tracking that in RPOS I'll look into it later.

Edit2: Temerature is 76.2 celsius. Also, this is running in normal, not full mode, which is why I get less PPD than before. Previously, I was in full mode. I do not have a heatsink on my Pi, which I assume would be recommended since the temperature is only supposed to go up to 80 celsius.
MeeLee
Posts: 1339
Joined: Tue Feb 19, 2019 10:16 pm

Re: Start folding with a Raspberry Pi

Post by MeeLee »

From using the Pi3B+, it uses about 5W on the wall (just CPU).
I believe the Pi4B uses about 7W, but it's hard to measure.
You'll need a 5V 2,5A charger on both of them, or else it experiences freezes, unless you have high quality USB cables to provide power (because apparently it's low quality USB cables that are the cause of the Pi3B and 4B to fail with regular USB 2.0 2,4A chargers.
Foliant
Posts: 104
Joined: Wed May 13, 2020 4:39 pm
Location: Bavaria

Re: Start folding with a Raspberry Pi

Post by Foliant »

At the moment I only finished one WU on my Pi 3 B
Credit --- Assigned ----------------- Returned ------------------ Credited ------------------- Days --- Code
553,08 -- 2020-12-30 07:46:04 -- 2021-01-01 03:15:51 -- 2021-01-01 03:10:54 -- 1,809 -- Ok
Voltage and current measured at DC In. Temps read via "vcgencmd measure_temp"

Idle (WLAN disabled): 1,53W
0,29A -- 5,26V -- 51°C Max

Folding (WLAN disabled, 3 cores): 3,47W
0,65 to 0,67A -- 5,26V -- 65,5°C Max
24/7
1x i5 3470 @2Cores
1x GTX750 (GM107)
2x GTX750Ti (GM107)
toTOW
Site Moderator
Posts: 6359
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: Start folding with a Raspberry Pi

Post by toTOW »

demorgan wrote:On Raspberry PI 4 with 8GB, PPD right now is 593.
Do you have a passkey set ?

A RPi 4 should be in the 2500-3000 PPD range from those I've seen running ...
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
demorgan
Posts: 18
Joined: Wed Dec 16, 2020 10:29 pm

Re: Start folding with a Raspberry Pi

Post by demorgan »

toTOW wrote:
demorgan wrote:On Raspberry PI 4 with 8GB, PPD right now is 593.
Do you have a passkey set ?

A RPi 4 should be in the 2500-3000 PPD range from those I've seen running ...
Nope, I didn't have a passkey set. (I did not realize that bonus points were a part of the PPD calculation; I've got a passkey on my Pi 4 now)
foldy
Posts: 2040
Joined: Sat Dec 01, 2012 3:43 pm
Hardware configuration: Folding@Home Client 7.6.13 (1 GPU slots)
Windows 7 64bit
Intel Core i5 2500k@4Ghz
Nvidia gtx 1080ti driver 441

Re: Start folding with a Raspberry Pi

Post by foldy »

So it is $35 to buy a Pi 4 and it gets max 3000 PPD using 5 watts running 4 cores.

Any PC with GPU can beat that easily.
MeeLee
Posts: 1339
Joined: Tue Feb 19, 2019 10:16 pm

Re: Start folding with a Raspberry Pi

Post by MeeLee »

toTOW wrote:
demorgan wrote: A RPi 4 should be in the 2500-3000 PPD range from those I've seen running ...
Would be interesting to see some actual numbers of the ARM technology compared to x86.

My Intel Pentium N5000 running 4 cores at 1,1Ghz (no boost), gets ~2.500 PPD.
Running 3 cores at ~1.8-2Ghz nets me ~3.000 PPD.
Meanwhile running all 4 cores at ~1,4-1,6Ghz (thermal throttled ~70-72C), it nets ~4.600 PPD

Coincidentally the N5000 has a very similar TDP as the Pi 3B+ /4B.
Neil-B
Posts: 1996
Joined: Sun Mar 22, 2020 5:52 pm
Hardware configuration: 1: 2x Xeon E5-2697v3@2.60GHz, 512GB DDR4 LRDIMM, SSD Raid, Win10 Ent 20H2, Quadro K420 1GB, FAH 7.6.21
2: Xeon E3-1505Mv5@2.80GHz, 32GB DDR4, NVME, Win10 Pro 20H2, Quadro M1000M 2GB, FAH 7.6.21 (actually have two of these)
3: i7-960@3.20GHz, 12GB DDR3, SSD, Win10 Pro 20H2, GTX 750Ti 2GB, GTX 1080Ti 11GB, FAH 7.6.21
Location: UK

Re: Start folding with a Raspberry Pi

Post by Neil-B »

... but if 10,000 schoolkids/enthusiasts all contributed this way it would be very small impact/cost per contributor with a reasonably significant total contribution... if someone active in the pi community got this setup as a pi project might be productive?
2x Xeon E5-2697v3, 512GB DDR4 LRDIMM, SSD Raid, W10-Ent, Quadro K420
Xeon E3-1505Mv5, 32GB DDR4, NVME, W10-Pro, Quadro M1000M
i7-960, 12GB DDR3, SSD, W10-Pro, GTX1080Ti
i9-10850K, 64GB DDR4, NVME, W11-Pro, RTX3070

(Green/Bold = Active)
SilvioMartin
Posts: 30
Joined: Thu Sep 24, 2020 6:06 pm
Hardware configuration: iMac 2017 Intel Quad-Core i5 3,4 GHz, 8 GB RAM, Radeon Pro 560 4 GB, typically with the latest macOS update. 5 Raspberry Pi 4B (2 GB).
Location: Oberhausen, Germany
Contact:

Re: Start folding with a Raspberry Pi

Post by SilvioMartin »

Just in case that anyone is interested in this, as a COVID-19 lockdown project I built a rack of 4 Raspberry Pi 4B and let them run F@H with full power 24/7. I see usually something like 1700 PPD.

Image

Every 15 minutes one of them collects some info from the others and puts a simple report on my web page: http://www.anne-emscher.net/fah/ You will find a PDF report there with a complete description.
My Raspberry Pi folding rack: http://www.anne-emscher.net/fah/
Post Reply