[tuto] openSUSE >= 15.3,Tumbleweed,How to get a silent and cold PC ?
Posted: Wed Nov 24, 2021 2:26 pm
0. some problems may occurs:
- cpu too hot
- fah does not decrease its cpu power consumption when you launch an app.
- setting "folding power"to "light" or "medium" does not work
In this case
see the Bruce solution
http://foldingforum.org/viewtopic.php?f ... 37#p307174
or
see my solution
1. I tested Bruce's solution.
The CPU of my PC gets 4 cores.
FAH settings : Power "full" when i am "working"
Result:
- my solution "cpulimit --exe FahCore_a8 --limit 50" : about 32 °C
- Bruce's solution "only one core for folding" : about 42 °C
Bruce's solution is easy but does nor work with gpu fah core
My solution is complex but works with every type (cpu or gpu) fah core.
2. My solution
We can use cpulimit (supplied with standard repos).
See doc
http://cpulimit.sourceforge.net/
You must start an instance of cpulimit for each core fah expects to use. For example in my case fah expects to use a4 and a7 cores then at startup systemd starts one occurrence for a4 and one for a7.
For each occurrence, you must create a service.
In my case, cpu gets 4 cores and I want to limit to 12.5 % the use of each core and FAH expects to use a7 cores. According to the doc, I must set "limit" to "50"
Obviously, you can replace "a7" by any Fahcore name.
in /etc/systemd/system/
create "cpulimit_a7.service" file
put in it
update its ownership and permissions as below
Reload systemd manager configuration
with "service manager" tool :
- set cpulimit_a7 service to "activate", "start mode" to "At system startup" then "apply" and check start does not fail
Repeat the procedure for all the FAH cores you expect.
Enjoy
If someone can help. I get a little problem. When with "yast service manager" I start the service then the service is well started, but the dialog does not finish then I must kill the service manager. Perhaps we must add something in the service file.
- cpu too hot
- fah does not decrease its cpu power consumption when you launch an app.
- setting "folding power"to "light" or "medium" does not work
In this case
see the Bruce solution
http://foldingforum.org/viewtopic.php?f ... 37#p307174
or
see my solution
1. I tested Bruce's solution.
The CPU of my PC gets 4 cores.
FAH settings : Power "full" when i am "working"
Result:
- my solution "cpulimit --exe FahCore_a8 --limit 50" : about 32 °C
- Bruce's solution "only one core for folding" : about 42 °C
Bruce's solution is easy but does nor work with gpu fah core
My solution is complex but works with every type (cpu or gpu) fah core.
2. My solution
We can use cpulimit (supplied with standard repos).
See doc
http://cpulimit.sourceforge.net/
You must start an instance of cpulimit for each core fah expects to use. For example in my case fah expects to use a4 and a7 cores then at startup systemd starts one occurrence for a4 and one for a7.
For each occurrence, you must create a service.
In my case, cpu gets 4 cores and I want to limit to 12.5 % the use of each core and FAH expects to use a7 cores. According to the doc, I must set "limit" to "50"
Obviously, you can replace "a7" by any Fahcore name.
in /etc/systemd/system/
create "cpulimit_a7.service" file
put in it
Code: Select all
# /etc/systemd/system/cpulimit_a7.service
#
[Unit]
Description=Run cpulimit for fah a7 core
[Service]
Type=oneshot
ExecStart=/usr/bin/cpulimit --exe FahCore_a7 --limit 50
[Install]
WantedBy=multi-user.target
Code: Select all
$ sudo chown root:root /etc/systemd/system/cpulimit_a7.service
$ sudo chmod u=rw,go=r /etc/systemd/system/cpulimit_a7.service
Code: Select all
$ sudo systemctl daemon-reload
- set cpulimit_a7 service to "activate", "start mode" to "At system startup" then "apply" and check start does not fail
Repeat the procedure for all the FAH cores you expect.
Enjoy
If someone can help. I get a little problem. When with "yast service manager" I start the service then the service is well started, but the dialog does not finish then I must kill the service manager. Perhaps we must add something in the service file.