An open API service indexing awesome lists of open source software.

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.

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