https://github.com/markusressel/cpulimit-daemon
  
  
    A daemon to continuously limit the CPU utilization of one or more processes to a specific percentage. 
    https://github.com/markusressel/cpulimit-daemon
  
cpulimit daemon linux shell unix
        Last synced: about 2 months ago 
        JSON representation
    
A daemon to continuously limit the CPU utilization of one or more processes to a specific percentage.
- Host: GitHub
- URL: https://github.com/markusressel/cpulimit-daemon
- Owner: markusressel
- License: agpl-3.0
- Created: 2020-09-18T01:11:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T01:43:43.000Z (about 5 years ago)
- Last Synced: 2025-09-08T19:33:04.739Z (about 2 months ago)
- Topics: cpulimit, daemon, linux, shell, unix
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # cpulimit-daemon
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.
# How to use
To use this script you have to download it from this repo.
## Requirements
Since this script relies on [cpulimit](https://github.com/opsengine/cpulimit), it has to be available on your system.
On Arch Linux it can be installed using
```shell
sudo pacman -S cpulimit
```
## Usage
```
>> ./cpulimit-daemon 
Usage: cpulimit-daemon [-f] -e "myprocess.*-some -process -arguments" -p 100
```
## Parameters
| 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 |
## Examples
```shell
sudo ./cpulimit-daemon -e chrome -p 50
```
# Why is my shell application stopped
This is "expected behaviour", see here:  
https://unix.stackexchange.com/questions/124126/why-cpulimit-makes-process-stopped