A daemon to continuously limit the CPU utilization of one or more processes to a specific percentage.
Unlike other tools, cpulimit-daemon can also limit processes that did not exist at the time of
launching cpulimit-daemon by constantly monitoring running processes and applying limits on the fly.
To use this script you have to download it from this repo.
Since this script relies on cpulimit, it has to be available on your system.
On Arch Linux it can be installed using
sudo pacman -S cpulimit
>> ./cpulimit-daemon
Usage: cpulimit-daemon [-f] -e "myprocess.*-some -process -arguments" -p 100
Name | Type | Description |
---|---|---|
-f |
Flag | Whether to apply the expression to the full command (including arguments) |
-e |
ERE | Expression to match processes with |
-p |
Integer | CPU usage percentage limit |
sudo ./cpulimit-daemon -e chrome -p 50
This is "expected behaviour", see here:
https://unix.stackexchange.com/questions/124126/why-cpulimit-makes-process-stopped