With Linux, I use "cpulimit" to limit CPU consumption of the cores.
I know these days there is something more modern using systemd, but it is too techie.
Please, can you (folding team) provide this systemd alternative ?
Thanks
limiting cpu consomption with systemd ?
Moderators: Site Moderators, FAHC Science Team
-
- Posts: 212
- Joined: Tue Aug 07, 2012 11:59 am
- Hardware configuration: openSUSE Tumbleweed, x86_64,Asrock B760M-HDV/M.2 D4, Intel Core i3-12100, 16 GB, Intel UHD Graphics 730, NVIDIA GeForce GT 1030, Edup-Love EP-9651GS Wi-Fi Bluetooth, multicard reader USB 3.0 startech.com 35fcreadbu3, Epson XP 7100, Headset Bluetooth 3.0 Philips SHQ7300
-
- Posts: 25
- Joined: Fri Feb 23, 2024 6:26 pm
Re: limiting cpu consomption with systemd ?
https://www.freedesktop.org/software/sy ... %20Control
CPUQuota=XX (in percent) should work ([Service] section) with distributions running unified cgroup hierarchy (check "default-hierarchy=" in "systemctl --version" output), but note that it is relative to one CPU. The value has to be multiplied by CPU count used for folding.
You can also try
https://github.com/FoldingAtHome/fah-cl ... nt-8578995
For testing purposes, calling
has the same effect as the linked patch. To reset to default SCHED_OTHER:
(adapt the core name if necessary)
will show ("CLS" column) current policy: B = SCHED_BATCH, TS = SCHED_OTHER.
CPUQuota=XX (in percent) should work ([Service] section) with distributions running unified cgroup hierarchy (check "default-hierarchy=" in "systemctl --version" output), but note that it is relative to one CPU. The value has to be multiplied by CPU count used for folding.
You can also try
https://github.com/FoldingAtHome/fah-cl ... nt-8578995
For testing purposes, calling
Code: Select all
sudo chrt -b -p 0 $(pgrep -x FahCore_a8)
Code: Select all
sudo chrt -o -p 0 $(pgrep -x FahCore_a8)
Code: Select all
ps -o nice,class,comm -p $(pgrep -x FahCore_a8)
-
- Posts: 212
- Joined: Tue Aug 07, 2012 11:59 am
- Hardware configuration: openSUSE Tumbleweed, x86_64,Asrock B760M-HDV/M.2 D4, Intel Core i3-12100, 16 GB, Intel UHD Graphics 730, NVIDIA GeForce GT 1030, Edup-Love EP-9651GS Wi-Fi Bluetooth, multicard reader USB 3.0 startech.com 35fcreadbu3, Epson XP 7100, Headset Bluetooth 3.0 Philips SHQ7300