mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-19 15:57:32 +03:00
cpulimit: correct wrong examples. (#3171)
This commit is contained in:
parent
4b911f1315
commit
f36c745018
@ -13,16 +13,16 @@
|
||||
|
||||
- Launch a given program and limit it to only use 50% of the CPU:
|
||||
|
||||
`cpulimit --limit {{50}} {{program}}`
|
||||
`cpulimit --limit {{50}} -- {{program arg1 arg2 ...}}`
|
||||
|
||||
- Launch a program, limit its CPU usage to 50% and run cpulimit in the background:
|
||||
|
||||
`cpulimit --limit {{50}} --background {{program}}`
|
||||
`cpulimit --limit {{50}} --background -- {{program}}`
|
||||
|
||||
- Kill its process if the program's CPU usage goes over 50%:
|
||||
|
||||
`cpulimit --limit 50 --kill {{program}}`
|
||||
`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}}`
|
||||
`cpulimit --limit {{25}} --monitor-forks -- {{program}}`
|
||||
|
Loading…
Reference in New Issue
Block a user