Page 1 of 1

[tuto] How to get a silent and cold PC ?

Posted: Sat Mar 08, 2025 2:26 pm
by promeneur
Thanks to :

https://linuxembedded.fr/2021/11/limite ... ec-systemd

https://www.baeldung.com/linux/systemd-modify-config


First, you can use FAH settings to limit the number of used cores.

For example, in my case, 8 cores, I set the limit to 5 cores, one for gpu tasks as a22 for example, 4 for cpu tasks as a8 for example.

If it is still too hot and noisy, then we must use systemd to decrease heat and noise.

run

Code: Select all

sudo systemctl edit fah-client
add

Code: Select all

 [Service]
 CPUQuota=150%
in the file newly created at the place as showed in this capture of the nano editor window :

Code: Select all

 GNU nano 8.3       /etc/systemd/system/fah-client.service.d/.#override.confbaa3de7975f0d591                 
### Editing /etc/systemd/system/fah-client.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Service]
 CPUQuota=150%

### Edits below this comment will be discarded


### /usr/lib/systemd/system/fah-client.service
# [Unit]
# Description=Folding@home Client
# After=network.target nss-lookup.target
#
# [Service]
# User=fah-client
# ExecStart=/usr/bin/fah-client --config=/etc/fah-client/config.xml --log=/var/log/fah-client/log.txt --log-r>
# WorkingDirectory=/var/lib/fah-client
# Restart=always
# StandardOutput=null
# KillMode=mixed
# PrivateTmp=yes
# # NoNewPrivileges=yes
# ProtectSystem=full
                                           [ Lecture de 28 lignes ]
^G Aide        ^O Écrire      ^F Chercher    ^K Couper      ^T Exécuter    ^C Emplacement M-U Annuler
^X Quitter     ^R Lire fich.  ^\ Remplacer   ^U Coller      ^J Justifier   ^/ Aller ligne M-E Refaire
then record the modification and quit.

This creates a file /etc/systemd/system/fah-client.service.d/override.conf with the contents :

Code: Select all

 [Service]
 CPUQuota=150%
Pause all the foldings.

then reload the services and restart fah-client

Code: Select all

sudo systemctl daemon-reload
sudo systemctl restart fah-client
Then unpause the foldings.

Some explanations.

Why using an override.conf file? Because every statement added in fah-client.service file will be erased by any further update of FAH.

I get 8 cores, so the maximum of power is 800 %.
In my case, 150 % is equivalent to consume about 20 % of the CPU power.
I obtained this 20 % by using cpulimit previously, which is convenient for me regarding heat and noise.

Comparing to cpulimit , cpu temperature is lower, about 37 °C to 40 °C and the fan speed is lower, about 664 to 700 rpm.

So bye bye cpulimit old technology and welcome to systemd new simpler technology.

If you don't know anything about text editor as nano, vim, etc then replace the step "sudo systemctl edit fah-client" by :

create a folder /etc/systemd/system/fah-client.service.d/
create a file /etc/systemd/system/fah-client.service.d/override.conf
add in /etc/systemd/system/fah-client.service.d/override.conf the statements

Code: Select all

 [Service]
 CPUQuota=150%
Enjoy :)

Re: [tuto] How to get a silent and cold PC ?

Posted: Sat Mar 08, 2025 2:52 pm
by muziqaz
How is this related to unsupported distros?
Please choose the right sub forum and create a single thread instead of double posting on absolutely random places.

Re: [tuto] How to get a silent and cold PC ?

Posted: Sun Mar 09, 2025 6:29 pm
by toTOW
If you want to get a silent folding machine, don't fold on crappy laptops or get a desktop with high quality coolers and fans.

No need to mess with useless software.