1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/cpulimit.md
K.B.Dharun Krishna 2135714193
pages/*, style-guide: update contents, fix Markdown (#10492)
* pages/*, style-guide: update pages, fix Markdown (commit 1)

* Update pages

* style-guide.de: update page

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* pip3: remove search command

* rpm: update path placeholder

Co-authored-by: pixel <pixel+github@chrissx.de>

* Update pages/linux/pkgfile.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: pixel <pixel+github@chrissx.de>
2023-08-26 23:00:06 +05:30

28 lines
847 B
Markdown

# cpulimit
> A tool to throttle the CPU usage of other processes.
> More information: <http://cpulimit.sourceforge.net/>.
- Limit an existing process with PID 1234 to only use 25% of the CPU:
`cpulimit --pid {{1234}} --limit {{25%}}`
- Limit an existing program by its executable name:
`cpulimit --exe {{program}} --limit {{25}}`
- Launch a given program and limit it to only use 50% of the CPU:
`cpulimit --limit {{50}} -- {{program argument1 argument2 ...}}`
- Launch a program, limit its CPU usage to 50% and run cpulimit in the background:
`cpulimit --limit {{50}} --background -- {{program}}`
- Kill its process if the program's CPU usage goes over 50%:
`cpulimit --limit 50 --kill -- {{program}}`
- Throttle both it and its child processes so that none go about 25% CPU:
`cpulimit --limit {{25}} --monitor-forks -- {{program}}`