Page 1 of 2

Raspberry Pi 4 CPU 50%

Posted: Tue Oct 20, 2020 8:21 am
by Jorn87
Hi, I am experimanting with a Raspberry Pi 4 and folding. It works, yay! But the RP4 is not using all the cores, 2 out of 4. Does anybody know how I can fix this? Thanks!

Edit: Solved, I had to wait for the next WU.

Code: Select all

User ID:

*********************** Log Started 2020-10-20T06:43:51Z ***********************
06:43:51:******************************* libFAH ********************************
06:43:51:       Date: Oct 8 2020
06:43:51:       Time: 19:34:35
06:43:51:   Revision: 06b99f7701e0d3f883dd14a78b459ad27da23809
06:43:51:     Branch: master
06:43:51:   Compiler: GNU 8.3.0
06:43:51:    Options: -std=c++11 -fsigned-char -ffunction-sections -fdata-sections -O3
06:43:51:             -funroll-loops -fno-pie
06:43:51:   Platform: linux2 4.19.0-9-arm64
06:43:51:       Bits: 64
06:43:51:       Mode: Release
06:43:51:****************************** FAHClient ******************************
06:43:51:    Version: 7.6.20
06:43:51:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
06:43:51:  Copyright: 2020 foldingathome.org
06:43:51:   Homepage: https://foldingathome.org/
06:43:51:       Date: Oct 12 2020
06:43:51:       Time: 22:00:57
06:43:51:   Revision: c858fe2a8342bfa3e116e00b394d8dfa322ecd18
06:43:51:     Branch: master
06:43:51:   Compiler: GNU 8.3.0
06:43:51:    Options: -std=c++11 -fsigned-char -ffunction-sections -fdata-sections -O3
06:43:51:             -funroll-loops -fno-pie
06:43:51:   Platform: linux2 4.19.0-9-arm64
06:43:51:       Bits: 64
06:43:51:       Mode: Release
06:43:51:       Args: --child /etc/fahclient/config.xml --run-as fahclient
06:43:51:             --pid-file=/var/run/fahclient.pid --daemon
06:43:51:     Config: /etc/fahclient/config.xml
06:43:51:******************************** CBang ********************************
06:43:51:       Date: Oct 8 2020
06:43:51:       Time: 19:34:00
06:43:51:   Revision: ab0a6d9e35982b831a74cb2706c569fe46bac2af
06:43:51:     Branch: master
06:43:51:   Compiler: GNU 8.3.0
06:43:51:    Options: -std=c++11 -fsigned-char -ffunction-sections -fdata-sections -O3
06:43:51:             -funroll-loops -fno-pie -fPIC
06:43:51:   Platform: linux2 4.19.0-9-arm64
06:43:51:       Bits: 64
06:43:51:       Mode: Release
06:43:51:******************************* System ********************************
06:43:51:        CPU: Unknown
06:43:51:     CPU ID: 
06:43:51:       CPUs: 4
06:43:51:     Memory: 1.80GiB
06:43:51:Free Memory: 1.24GiB
06:43:51:    Threads: POSIX_THREADS
06:43:51: OS Version: 5.4
06:43:51:Has Battery: false
06:43:51: On Battery: false
06:43:51: UTC Offset: 2
06:43:51:        PID: 1082
06:43:51:        CWD: /var/lib/fahclient
06:43:51:         OS: Linux 5.4.51-v8+ aarch64
06:43:51:    OS Arch: ARM64
06:43:51:       GPUs: 0
06:43:51:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
06:43:51:             libcuda.so: cannot open shared object file: No such file or
06:43:51:             directory
06:43:51:     OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
06:43:51:             libOpenCL.so: cannot open shared object file: No such file or
06:43:51:             directory
06:43:51:***********************************************************************
06:43:51:<config>
06:43:51:  <!-- Client Control -->
06:43:51:  <fold-anon v='true'/>
06:43:51:
06:43:51:  <!-- Folding Core -->
06:43:51:  <core-priority v='low'/>
06:43:51:
06:43:51:  <!-- Folding Slot Configuration -->
06:43:51:  <gpu v='false'/>
06:43:51:
06:43:51:  <!-- Network -->
06:43:51:  <proxy v=':8080'/>
06:43:51:
06:43:51:  <!-- Slot Control -->
06:43:51:  <pause-on-battery v='false'/>
06:43:51:  <power v='full'/>
06:43:51:
06:43:51:  <!-- User Information -->
06:43:51:  <passkey v='*****'/>
06:43:51:  <team v='234980'/>
06:43:51:  <user v='ajei9fugnhdk'/>
06:43:51:
06:43:51:  <!-- Folding Slots -->
06:43:51:  <slot id='0' type='CPU'>
06:43:51:    <paused v='true'/>
06:43:51:  </slot>
06:43:51:</config>
06:43:51:Trying to access database...
06:43:51:Successfully acquired database lock
06:43:51:FS00:Initialized folding slot 00: cpu:4 - PAUSED by user
06:44:10:FS00:Unpaused
06:44:10:WU00:FS00:Starting
06:44:10:WARNING:WU00:FS00:AS lowered CPUs from 4 to 2
06:44:10:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/lin/64bit-aarch64/a8-0.0.8/Core_a8.fah/FahCore_a8 -dir 00 -suffix 01 -version 706 -lifeline 1082 -checkpoint 15 -np 2
06:44:10:WU00:FS00:Started FahCore on PID 1132
06:44:10:WU00:FS00:Core PID:1136
06:44:10:WU00:FS00:FahCore 0xa8 started
06:44:10:WU00:FS00:0xa8:*********************** Log Started 2020-10-20T06:44:10Z ***********************
06:44:10:WU00:FS00:0xa8:************************** Gromacs Folding@home Core ***************************
06:44:10:WU00:FS00:0xa8:       Core: Gromacs
06:44:10:WU00:FS00:0xa8:       Type: 0xa8
06:44:10:WU00:FS00:0xa8:    Version: 0.0.8
06:44:10:WU00:FS00:0xa8:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
06:44:10:WU00:FS00:0xa8:  Copyright: 2020 foldingathome.org
06:44:10:WU00:FS00:0xa8:   Homepage: https://foldingathome.org/
06:44:10:WU00:FS00:0xa8:       Date: Sep 25 2020
06:44:10:WU00:FS00:0xa8:       Time: 14:31:27
06:44:10:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
06:44:10:WU00:FS00:0xa8:    Options: -std=c++14 -fsigned-char -ffunction-sections -fdata-sections -O3
06:44:10:WU00:FS00:0xa8:             -funroll-loops -fno-pie
06:44:10:WU00:FS00:0xa8:   Platform: linux2 4.15.0-108-generic
06:44:10:WU00:FS00:0xa8:       Bits: 64
06:44:10:WU00:FS00:0xa8:       Mode: Release
06:44:10:WU00:FS00:0xa8:       SIMD: arm_neon_asimd
06:44:10:WU00:FS00:0xa8:     OpenMP: ON
06:44:10:WU00:FS00:0xa8:       CUDA: OFF
06:44:10:WU00:FS00:0xa8:       Args: -dir 00 -suffix 01 -version 706 -lifeline 1132 -checkpoint 15 -np 2
06:44:10:WU00:FS00:0xa8:************************************ libFAH ************************************
06:44:10:WU00:FS00:0xa8:       Date: Sep 25 2020
06:44:10:WU00:FS00:0xa8:       Time: 14:30:57
06:44:10:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
06:44:10:WU00:FS00:0xa8:    Options: -std=c++14 -fsigned-char -ffunction-sections -fdata-sections -O3
06:44:10:WU00:FS00:0xa8:             -funroll-loops -fno-pie
06:44:10:WU00:FS00:0xa8:   Platform: linux2 4.15.0-108-generic
06:44:10:WU00:FS00:0xa8:       Bits: 64
06:44:10:WU00:FS00:0xa8:       Mode: Release
06:44:10:WU00:FS00:0xa8:************************************ CBang *************************************
06:44:10:WU00:FS00:0xa8:       Date: Sep 25 2020
06:44:10:WU00:FS00:0xa8:       Time: 14:30:42
06:44:10:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
06:44:10:WU00:FS00:0xa8:    Options: -std=c++14 -fsigned-char -ffunction-sections -fdata-sections -O3
06:44:10:WU00:FS00:0xa8:             -funroll-loops -fno-pie -fPIC
06:44:10:WU00:FS00:0xa8:   Platform: linux2 4.15.0-108-generic
06:44:10:WU00:FS00:0xa8:       Bits: 64
06:44:10:WU00:FS00:0xa8:       Mode: Release
06:44:10:WU00:FS00:0xa8:************************************ System ************************************
06:44:10:WU00:FS00:0xa8:        CPU: Cortex-A
06:44:10:WU00:FS00:0xa8:     CPU ID: Arm Family 8 Model 72 Stepping 3
06:44:10:WU00:FS00:0xa8:       CPUs: 4
06:44:10:WU00:FS00:0xa8:     Memory: 1.80GiB
06:44:10:WU00:FS00:0xa8:Free Memory: 1.22GiB
06:44:10:WU00:FS00:0xa8:    Threads: POSIX_THREADS
06:44:10:WU00:FS00:0xa8: OS Version: 5.4
06:44:10:WU00:FS00:0xa8:Has Battery: false
06:44:10:WU00:FS00:0xa8: On Battery: false
06:44:10:WU00:FS00:0xa8: UTC Offset: 2
06:44:10:WU00:FS00:0xa8:        PID: 1136
06:44:10:WU00:FS00:0xa8:        CWD: /var/lib/fahclient/work
06:44:10:WU00:FS00:0xa8:********************************************************************************
06:44:10:WU00:FS00:0xa8:Project: 16812 (Run 2, Clone 601, Gen 28)
06:44:10:WU00:FS00:0xa8:Unit: 0x0000001db2aec48a5f74f10a8193a8a0
06:44:10:WU00:FS00:0xa8:Digital signatures verified
06:44:10:WU00:FS00:0xa8:Calling: mdrun -c frame28.gro -s frame28.tpr -x frame28.xtc -cpi state.cpt -cpt 15 -nt 2 -ntmpi 1
06:44:11:WU00:FS00:0xa8:Steps: first=14000000 total=14500000
06:44:52:Removing old file 'configs/config-20201018-075336.xml'
06:44:52:Saving configuration to /etc/fahclient/config.xml
06:44:52:<config>
06:44:52:  <!-- Client Control -->
06:44:52:  <fold-anon v='true'/>
06:44:52:
06:44:52:  <!-- Folding Core -->
06:44:52:  <core-priority v='low'/>
06:44:52:
06:44:52:  <!-- Folding Slot Configuration -->
06:44:52:  <gpu v='false'/>
06:44:52:
06:44:52:  <!-- Network -->
06:44:52:  <proxy v=':8080'/>
06:44:52:
06:44:52:  <!-- Slot Control -->
06:44:52:  <pause-on-battery v='false'/>
06:44:52:  <power v='full'/>
06:44:52:
06:44:52:  <!-- User Information -->
06:44:52:  <passkey v='*****'/>
06:44:52:  <team v='234980'/>
06:44:52:  <user v='ajei9fugnhdk'/>
06:44:52:
06:44:52:  <!-- Folding Slots -->
06:44:52:  <slot id='0' type='CPU'/>
06:44:52:</config>
06:45:00:WU00:FS00:0xa8:Completed 207902 out of 500000 steps (41%)
06:49:11:Removing old file 'configs/config-20201018-110845.xml'
06:49:11:Saving configuration to /etc/fahclient/config.xml
06:49:11:<config>
06:49:11:  <!-- Client Control -->
06:49:11:  <fold-anon v='true'/>
06:49:11:
06:49:11:  <!-- Folding Core -->
06:49:11:  <core-priority v='low'/>
06:49:11:
06:49:11:  <!-- Folding Slot Configuration -->
06:49:11:  <gpu v='false'/>
06:49:11:
06:49:11:  <!-- Network -->
06:49:11:  <proxy v=':8080'/>
06:49:11:
06:49:11:  <!-- Slot Control -->
06:49:11:  <pause-on-battery v='false'/>
06:49:11:  <power v='full'/>
06:49:11:
06:49:11:  <!-- User Information -->
06:49:11:  <passkey v='*****'/>
06:49:11:  <team v='234980'/>
06:49:11:  <user v='ajei9fugnhdk'/>
06:49:11:
06:49:11:  <!-- Folding Slots -->
06:49:11:  <slot id='0' type='CPU'>
06:49:11:    <cpus v='4'/>
06:49:11:    <paused v='False'/>
06:49:11:  </slot>
06:49:11:</config>
06:49:57:Removing old file 'configs/config-20201018-111152.xml'
06:49:57:Saving configuration to /etc/fahclient/config.xml
06:49:57:<config>
06:49:57:  <!-- Client Control -->
06:49:57:  <fold-anon v='true'/>
06:49:57:
06:49:57:  <!-- Folding Core -->
06:49:57:  <core-priority v='low'/>
06:49:57:
06:49:57:  <!-- Folding Slot Configuration -->
06:49:57:  <gpu v='false'/>
06:49:57:
06:49:57:  <!-- Network -->
06:49:57:  <proxy v=':8080'/>
06:49:57:
06:49:57:  <!-- Slot Control -->
06:49:57:  <pause-on-battery v='false'/>
06:49:57:  <power v='full'/>
06:49:57:
06:49:57:  <!-- User Information -->
06:49:57:  <passkey v='*****'/>
06:49:57:  <team v='234980'/>
06:49:57:  <user v='ajei9fugnhdk'/>
06:49:57:
06:49:57:  <!-- Folding Slots -->
06:49:57:  <slot id='0' type='CPU'>
06:49:57:    <cpus v='4'/>
06:49:57:    <paused v='False'/>
06:49:57:  </slot>
06:49:57:</config>
Mod Edit: Removed Passkey - PantherX

Re: Raspberry Pi 4 CPU 50%

Posted: Tue Oct 20, 2020 9:12 am
by PantherX
Welcome to the F@H Forum Jorn87,

Please note that in future, please protect your passkey like a password (https://foldingathome.org/support/faq/points/passkey/)

The current WU will only run on 2 CPUs since the CPU Slot was configured for 2 CPUs when the WU was first downloaded:
06:44:10:WARNING:WU00:FS00:AS lowered CPUs from 4 to 2

Once this WU has finished and a new WU is downloaded, it will use 4 CPUs.

Re: Raspberry Pi 4 CPU 50%

Posted: Tue Oct 20, 2020 10:17 am
by Jorn87
@PantherX: Thanks for your quick reply. :D So I gues that I'll have to wait for the next WU.

I also have an other question: the FAHClient is not starting automaticly on startup. The file is in the init.d folder, but it doesn't load at startup. Is there maybe an error in the file? How can I execute FAHClient on startup?

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 3:13 am
by MeeLee
Does that mean ARM is finally supported? Or just Broadcom CPUs?

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 4:25 am
by PantherX
Jorn87 wrote:...Is there maybe an error in the file? How can I execute FAHClient on startup?
Great question... wrong person :lol: I don't have sufficient Linux experience to help you out there so will let someone who knows what they are doing help you out :eugeek:

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 9:43 am
by JVallois
MeeLee wrote:Does that mean ARM is finally supported? Or just Broadcom CPUs?
Hello everybody,

It seems that not all ARM CPUs are supported.
I tried to install FAH on my Freebox with a quad-Core ARMv8 Snapdragon 835. The installation went well, but the slot couldn’t start !

Fearfully,

Jacques.

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 3:31 pm
by Joe_H
Currently the ARM systems are supposed to only be getting WUs to internal testers. There were settings not properly set on some projects that were allowing WUs to be sent out to others than the internal testers, those projects should have been fixed now.

Basically at this point what will work is a minimum of a Raspberry Pi 4, OS needs to be Linux. When they are ready to support folding on ARM there will be an announcement by the F@h project. The last I saw on progress towards that was that there were a few issues still waiting to be resolved before there will be general ARM support.

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 5:00 pm
by Jorn87
PantherX wrote:
Jorn87 wrote:...Is there maybe an error in the file? How can I execute FAHClient on startup?
Great question... wrong person :lol: I don't have sufficient Linux experience to help you out there so will let someone who knows what they are doing help you out :eugeek:
I think it is a bug. Can I report it somewhere?

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 5:31 pm
by gunnarre
The ARM client is available on the non-beta download page. I take it that is a mistake, if it's not yet ready for public release? https://foldingathome.org/alternative-downloads/

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 5:34 pm
by bruce
Jorn87 wrote:I think it is a bug. Can I report it somewhere?
Could be. Be sure to mention that you're running ARM Linux.
https://github.com/FoldingAtHome/fah-issues/issues

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Oct 21, 2020 10:08 pm
by MeeLee
The problem with ARM is that they aren't very speed optimized.
You'd have to get an ARM processor with Neon core working, as these are actually working much closer to x86 speeds than the regular (power saving) ARM cores.
The low power (M-series, A30 or A50 series) are often times +5x slower than x86 for the same frequency.
The Pi 4 uses Cortex-A72 cores, which are slightly faster and support Neon. They're still not as fast as x86, but come pretty close to low power Intel Atom CPUs in terms of performance, being slightly more efficient.

Saying that a Raspberry Pi 4B works, must mean you'll need to have a unit with a Cortex A70-series CPU to process WUs.
Also, there's a chance if you're trying to run a device with such cores on Android, these cores are disabled by default for program access (and WU threads will be reverted to lower power cores, in case of a Big-Little configuration, resulting in failed WUs).
Not even sure if an Android client is seen as a Linux client, as outside of the core handling, they're both Linux OSes.
That means most TV media boxes won't work, though if you could find a Linux image for them, some Big-little configurations may actually work (albeit probably only on the big cores of a big-little configuration).

Anything under A70 series (and possibly A65 series) wouldn't work, and anything below Cortex-A34 doesn't even support 64 bit, so more than likely wouldn't even be supported in the future either (makes no sense, they're very power optimized, low energy, low speed cpus).
Probably most Nvidia Tegra platforms won't work, as they're based on A50 series CPUs; and that includes most of their development boards, like their Xavier or Jetson series.

What could work, provided Linux is installed: AMlogic S922D or S922X CPU (4/2core) or up, Amlogic A311D or A311X (4/2 core), Rockchip RK3399 (2/4 core), and more...

Would be interesting if someone had a 'neonverse' CPU. They supposedly would outdo a Cortex A70-series CPU.

Re: Raspberry Pi 4 CPU 50%

Posted: Fri Oct 23, 2020 7:17 am
by MeeLee
For those interested,
I'm currently in communication with Turingpi. They make boards that will fit CM3 and CM4 modules.
CM modules are basically a sodimm sized boards of the Raspberry Pi 3B, or 4B.

The TuringPi 2 unit currently has 4 CM4 modules max that will fit.
Turingpi 1 fits 8 CM3 modules.

If there's enough demand, they might increase TurinPi slots to 8, for compute applications (no GPIO or PCIE slots, they won't power a GPU anyway).

Re: Raspberry Pi 4 CPU 50%

Posted: Wed Mar 17, 2021 6:58 am
by inOr
MeeLee wrote:For those interested,
Turingpi 2 currently has 4 CM4 modules max that will fit.
Turingpi 1 fits 8 CM3 modules.
If there's enough demand, they might increase TurinPi slots to 8, for compute applications (no GPIO or PCIE slots, they won't power a GPU anyway).
It's been a few months now, and I was wondering how your Turingpi clusters were working out. Were they a worthwhile investment for FAH purposes? Did you try the new Turingpi yet? Thanks.

Re: Raspberry Pi 4 CPU 50%

Posted: Sun Mar 28, 2021 5:55 pm
by MeeLee
inOr wrote:
MeeLee wrote:For those interested,
Turingpi 2 currently has 4 CM4 modules max that will fit.
Turingpi 1 fits 8 CM3 modules.
If there's enough demand, they might increase TurinPi slots to 8, for compute applications (no GPIO or PCIE slots, they won't power a GPU anyway).
It's been a few months now, and I was wondering how your Turingpi clusters were working out. Were they a worthwhile investment for FAH purposes? Did you try the new Turingpi yet? Thanks.
No,
Raspberry Pis aren't as efficient as GPUs.
Plus, they're the older, slower kind of ARM CPU.
The CM4 modules are faster than the CM3 modules/Pi 3B+, but they're still very slow compared to the Apple M1 CPU, or Snapdragon CPUs.

The best thing you can currently do, is to just run each CM module individually. It's more costly, but TuringPi isn't interested in the design I suggested.

Re: Raspberry Pi 4 CPU 50%

Posted: Tue Jun 28, 2022 10:07 pm
by Buuuh
Sorry for necro, but is this still the case?

If you start a new WU while only using 2 cores it won't be able to run on 4 cores?

I just wondered why the heck the my current WU won't use 4 cores anymore, after i switched fahclient to 4 cores manually. I know it was downloaded while using only 2 cores. So i searched for a possible reason and ended up here.

Seems to be still the case.

Why is this not mentioned in the documentation? Why is the "--help" output of fahclient the only documentation at all, and there it is not even mentioned?
Why is there no webpage with documentation that goes a little more into detail?
Why do i need to search for this and end up in just a thread in a forum?