cpulimit

cpulimit

TLDR

Limit an existing process with PID 1234 to only use 25% of the CPU

>_ cpulimit --pid [1234] --limit [25%]
copy

Limit an existing program by its executable name

>_ cpulimit --exe [program] --limit [25]
copy

Launch a given program and limit it to only use 50% of the CPU

>_ cpulimit --limit [50] -- [program arg1 arg2 ...]
copy

Launch a program, limit its CPU usage to 50% and run cpulimit in the background

>_ cpulimit --limit [50] --background -- [program]
copy

Kill its process if the program's CPU usage goes over 50%

>_ cpulimit --limit 50 --kill -- [program]
copy

Throttle both it and its child processes so that none go about 25% CPU

>_ cpulimit --limit [25] --monitor-forks -- [program]
copy

Copied to clipboard
free 100$ digital ocean credit