Linux: lowered CPUs from x to 1

Moderators: Site Moderators, FAHC Science Team

Post Reply
yogi70
Posts: 4
Joined: Mon May 04, 2020 7:36 am

Linux: lowered CPUs from x to 1

Post by yogi70 »

Hello,

on my OpenSUSE linux when the client is running as service (start via "/etc/init.d/fahclient start") the client is lowering the CPU usage from 4 to 1 (or 2 to 1, 3 to 1). Setting the number of CPUs to a manual value via config.xml

Code: Select all

  <!-- Folding Slots -->
  <slot id='0' type='CPU'>
    <cpus v='2'/>
  </slot>
did not change anything - always lowering to 1.

here are the first 150 lines of the log when I start client as a service

Code: Select all

*********************** Log Started 2020-05-04T06:36:19Z ***********************
06:36:19:****************************** FAHClient ******************************
06:36:19:      Version: 7.6.9
06:36:19:       Author: Joseph Coffland <joseph@cauldrondevelopment.com>
06:36:19:    Copyright: 2020 foldingathome.org
06:36:19:     Homepage: https://foldingathome.org/
06:36:19:         Date: Apr 17 2020
06:36:19:         Time: 18:11:30
06:36:19:     Revision: 398c2b17fa535e0cc6c9d10856b2154c32771646
06:36:19:       Branch: master
06:36:19:     Compiler: GNU 4.9.4
06:36:19:      Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
06:36:19:     Platform: linux2 4.19.0-5-amd64
06:36:19:         Bits: 64
06:36:19:         Mode: Release
06:36:19:         Args: --child /etc/fahclient/config.xml --run-as fahclient
06:36:19:               --pid-file=/var/run/fahclient.pid --daemon
06:36:19:       Config: /etc/fahclient/config.xml
06:36:19:******************************** CBang ********************************
06:36:19:         Date: Apr 17 2020
06:36:19:         Time: 18:10:08
06:36:19:     Revision: 2fb0be7809c5e45287a122ca5fbc15b5ae859a3b
06:36:19:       Branch: master
06:36:19:     Compiler: GNU 4.9.4
06:36:19:      Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
06:36:19:               -fPIC
06:36:19:     Platform: linux2 4.19.0-5-amd64
06:36:19:         Bits: 64
06:36:19:         Mode: Release
06:36:19:******************************* System ********************************
06:36:19:          CPU: AMD FX(tm)-4100 Quad-Core Processor
06:36:19:       CPU ID: AuthenticAMD Family 21 Model 1 Stepping 2
06:36:19:         CPUs: 4
06:36:19:       Memory: 15.56GiB
06:36:19:  Free Memory: 5.63GiB
06:36:19:      Threads: POSIX_THREADS
06:36:19:   OS Version: 4.12
06:36:19:  Has Battery: false
06:36:19:   On Battery: false
06:36:19:   UTC Offset: 2
06:36:19:          PID: 5197
06:36:19:          CWD: /var/lib/fahclient
06:36:19:           OS: Linux 4.12.14-lp151.28.36-default x86_64
06:36:19:      OS Arch: AMD64
06:36:19:         GPUs: 1
06:36:19:        GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:5 GM204 [GeForce GTX 970] 3494
06:36:19:CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:5.2 Driver:10.2
06:36:19:       OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
06:36:19:               libOpenCL.so: cannot open shared object file: No such file or
06:36:19:               directory
06:36:19:******************************* libFAH ********************************
06:36:19:         Date: Apr 15 2020
06:36:19:         Time: 21:43:27
06:36:19:     Revision: 216968bc7025029c841ed6e36e81a03a316890d3
06:36:19:       Branch: master
06:36:19:     Compiler: GNU 4.9.4
06:36:19:      Options: -std=c++11 -ffunction-sections -fdata-sections -O3 -funroll-loops
06:36:19:     Platform: linux2 4.19.0-5-amd64
06:36:19:         Bits: 64
06:36:19:         Mode: Release
06:36:19:***********************************************************************
06:36:19:<config>
06:36:19:  <!-- Folding Slot Configuration -->
06:36:19:  <cause v='COVID_19'/>
06:36:19:
06:36:19:  <!-- Network -->
06:36:19:  <proxy v=':8080'/>
06:36:19:
06:36:19:  <!-- Slot Control -->
06:36:19:  <power v='full'/>
06:36:19:
06:36:19:  <!-- User Information -->
06:36:19:  <passkey v='*****'/>
06:36:19:  <team v='251999'/>
06:36:19:  <user v='yogi70'/>
06:36:19:
06:36:19:  <!-- Folding Slots -->
06:36:19:  <slot id='0' type='CPU'>
06:36:19:    <cpus v='2'/>
06:36:19:  </slot>
06:36:19:</config>
06:36:19:Trying to access database...
06:36:19:Successfully acquired database lock
06:36:19:Enabled folding slot 00: READY cpu:2
06:36:19:WU00:FS00:Starting
06:36:19:WARNING:WU00:FS00:AS lowered CPUs from 2 to 1
06:36:19:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 706 -lifeline 5197 -checkpoint 15 -np 1
06:36:19:WU00:FS00:Started FahCore on PID 5207
06:36:19:WU00:FS00:Core PID:5211
06:36:19:WU00:FS00:FahCore 0xa7 started
06:36:19:WU00:FS00:0xa7:*********************** Log Started 2020-05-04T06:36:19Z ***********************
06:36:19:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
06:36:19:WU00:FS00:0xa7:       Type: 0xa7
06:36:19:WU00:FS00:0xa7:       Core: Gromacs
06:36:19:WU00:FS00:0xa7:       Args: -dir 00 -suffix 01 -version 706 -lifeline 5207 -checkpoint 15 -np 1
06:36:19:WU00:FS00:0xa7:************************************ CBang *************************************
06:36:19:WU00:FS00:0xa7:       Date: Nov 5 2019
06:36:19:WU00:FS00:0xa7:       Time: 06:06:57
06:36:19:WU00:FS00:0xa7:   Revision: 46c96f1aa8419571d83f3e63f9c99a0d602f6da9
06:36:19:WU00:FS00:0xa7:     Branch: master
06:36:19:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
06:36:19:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie -fPIC
06:36:19:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
06:36:19:WU00:FS00:0xa7:       Bits: 64
06:36:19:WU00:FS00:0xa7:       Mode: Release
06:36:19:WU00:FS00:0xa7:************************************ System ************************************
06:36:19:WU00:FS00:0xa7:        CPU: AMD FX(tm)-4100 Quad-Core Processor
06:36:19:WU00:FS00:0xa7:     CPU ID: AuthenticAMD Family 21 Model 1 Stepping 2
06:36:19:WU00:FS00:0xa7:       CPUs: 4
06:36:19:WU00:FS00:0xa7:     Memory: 15.56GiB
06:36:19:WU00:FS00:0xa7:Free Memory: 5.59GiB
06:36:19:WU00:FS00:0xa7:    Threads: POSIX_THREADS
06:36:19:WU00:FS00:0xa7: OS Version: 4.12
06:36:19:WU00:FS00:0xa7:Has Battery: false
06:36:19:WU00:FS00:0xa7: On Battery: false
06:36:19:WU00:FS00:0xa7: UTC Offset: 2
06:36:19:WU00:FS00:0xa7:        PID: 5211
06:36:19:WU00:FS00:0xa7:        CWD: /var/lib/fahclient/work
06:36:19:WU00:FS00:0xa7:******************************** Build - libFAH ********************************
06:36:19:WU00:FS00:0xa7:    Version: 0.0.18
06:36:19:WU00:FS00:0xa7:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
06:36:19:WU00:FS00:0xa7:  Copyright: 2019 foldingathome.org
06:36:19:WU00:FS00:0xa7:   Homepage: https://foldingathome.org/
06:36:19:WU00:FS00:0xa7:       Date: Nov 5 2019
06:36:19:WU00:FS00:0xa7:       Time: 06:13:26
06:36:19:WU00:FS00:0xa7:   Revision: 490c9aa2957b725af319379424d5c5cb36efb656
06:36:19:WU00:FS00:0xa7:     Branch: master
06:36:19:WU00:FS00:0xa7:   Compiler: GNU 8.3.0
06:36:19:WU00:FS00:0xa7:    Options: -std=c++11 -O3 -funroll-loops -fno-pie
06:36:19:WU00:FS00:0xa7:   Platform: linux2 4.19.0-5-amd64
06:36:19:WU00:FS00:0xa7:       Bits: 64
06:36:19:WU00:FS00:0xa7:       Mode: Release
06:36:19:WU00:FS00:0xa7:************************************ Build *************************************
06:36:19:WU00:FS00:0xa7:       SIMD: avx_256
06:36:19:WU00:FS00:0xa7:********************************************************************************
06:36:19:WU00:FS00:0xa7:Project: 14311 (Run 1, Clone 21, Gen 28)
06:36:19:WU00:FS00:0xa7:Unit: 0x000000210002894b5df2b743896b3a83
06:36:19:WU00:FS00:0xa7:Digital signatures verified
06:36:19:WU00:FS00:0xa7:Calling: mdrun -s frame28.tpr -o frame28.trr -cpi state.cpt -cpt 15 -nt 1
06:36:20:WU00:FS00:0xa7:Steps: first=14000000 total=500000
06:36:22:WU00:FS00:0xa7:Completed 29902 out of 500000 steps (5%)
06:36:58:WU00:FS00:0xa7:Completed 30000 out of 500000 steps (6%)
06:39:01:Saving configuration to /etc/fahclient/config.xml
06:39:01:<config>
06:39:01:  <!-- Folding Slot Configuration -->
06:39:01:  <cause v='COVID_19'/>
06:39:01:
06:39:01:  <!-- Network -->
06:39:01:  <proxy v=':8080'/>
06:39:01:
An other issue I have is the missing libOpenCL.so - when I run the client as root the lib is found and units could be processed via the GPU. Running as service failed. But that's an other issue and should *not* be handled in this thread!
PantherX
Site Moderator
Posts: 7020
Joined: Wed Dec 23, 2009 9:33 am
Hardware configuration: V7.6.21 -> Multi-purpose 24/7
Windows 10 64-bit
CPU:2/3/4/6 -> Intel i7-6700K
GPU:1 -> Nvidia GTX 1080 Ti
§
Retired:
2x Nvidia GTX 1070
Nvidia GTX 675M
Nvidia GTX 660 Ti
Nvidia GTX 650 SC
Nvidia GTX 260 896 MB SOC
Nvidia 9600GT 1 GB OC
Nvidia 9500M GS
Nvidia 8800GTS 320 MB

Intel Core i7-860
Intel Core i7-3840QM
Intel i3-3240
Intel Core 2 Duo E8200
Intel Core 2 Duo E6550
Intel Core 2 Duo T8300
Intel Pentium E5500
Intel Pentium E5400
Location: Land Of The Long White Cloud
Contact:

Re: Linux: lowered CPUs from x to 1

Post by PantherX »

Welcome to the F@H Forum yogi70,

Please note that the WU you downloaded is limited to 1 CPU as you can see here:
AS lowered CPUs from 2 to 1

However, the next WU it downloads, will use whatever value you have. Thus, you can set it to 4, 3 or 2 depending on your choice.

Since you have an Nvidia GPU, it would require 1 CPU to keep it busy, thus your CPU would be 3. Also, to fold on that GPU, you need to install Drivers from Nvidia (not open-source ones) and also the OpenCL package.
ETA:
Now ↞ Very Soon ↔ Soon ↔ Soon-ish ↔ Not Soon ↠ End Of Time

Welcome To The F@H Support Forum Ӂ Troubleshooting Bad WUs Ӂ Troubleshooting Server Connectivity Issues
yogi70
Posts: 4
Joined: Mon May 04, 2020 7:36 am

Re: Linux: lowered CPUs from x to 1

Post by yogi70 »

well than the question is why was the downloaded WU limited to one CPU only - as by default there was no limitation in the /etc/fahclient/config.xml - or does the default "-1" always only allow one CPU to be used on a quad core single-thread CPU?

GPU: as mentioned above I would prefer an other thread for this issue!
PantherX
Site Moderator
Posts: 7020
Joined: Wed Dec 23, 2009 9:33 am
Hardware configuration: V7.6.21 -> Multi-purpose 24/7
Windows 10 64-bit
CPU:2/3/4/6 -> Intel i7-6700K
GPU:1 -> Nvidia GTX 1080 Ti
§
Retired:
2x Nvidia GTX 1070
Nvidia GTX 675M
Nvidia GTX 660 Ti
Nvidia GTX 650 SC
Nvidia GTX 260 896 MB SOC
Nvidia 9600GT 1 GB OC
Nvidia 9500M GS
Nvidia 8800GTS 320 MB

Intel Core i7-860
Intel Core i7-3840QM
Intel i3-3240
Intel Core 2 Duo E8200
Intel Core 2 Duo E6550
Intel Core 2 Duo T8300
Intel Pentium E5500
Intel Pentium E5400
Location: Land Of The Long White Cloud
Contact:

Re: Linux: lowered CPUs from x to 1

Post by PantherX »

yogi70 wrote:well than the question is why was the downloaded WU limited to one CPU only - as by default there was no limitation in the /etc/fahclient/config.xml - or does the default "-1" always only allow one CPU to be used on a quad core single-thread CPU?...
An un-configured CPU Slot will first download 1 CPU WU by design. After you have configured the CPU Slot, it will download the correct WU. The reason for single CPU was a historic reason when the v6 client had version; 1 CPU only or multiple CPUs. This was combined in V7 so by default, it starts in "1 CPU" mode but that can be changed to multiple CPUs.
ETA:
Now ↞ Very Soon ↔ Soon ↔ Soon-ish ↔ Not Soon ↠ End Of Time

Welcome To The F@H Support Forum Ӂ Troubleshooting Bad WUs Ӂ Troubleshooting Server Connectivity Issues
Post Reply