Skip to content

A daemon to continuously limit the CPU utilization of one or more processes to a specific percentage.

License

Notifications You must be signed in to change notification settings

markusressel/cpulimit-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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, it has to be available on your system.

On Arch Linux it can be installed using

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

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

About

A daemon to continuously limit the CPU utilization of one or more processes to a specific percentage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages