Bookmark and Share

cpulimit (1)

Name

cpulimit -- limits the CPU usage of a process

Synopsis

cpulimit TARGET [OPTIONS...]

Description

TARGET must be exactly one of these:

-p, --pid=N
pid of the process
-e, --exe=FILE
name of the executable program file
-P, --path=PATH
absolute path name of the executable program file

OPTIONS

-l, --limit=N
percentage of CPU allowed from 0 to 100 (mandatory)
-v, --verbose
show control statistics
-z, --lazy
exit if there is no suitable target process, or if it dies
-h, --help
display this help and exit

Examples

Assuming you have started ‘foo --bar‘ and you find out with top(1) or ps(1) that this process uses all your CPU time you can either
[sh] cpulimit -e foo -l 50
limits the CPU usage of the process by acting on the executable program file (note: the argument "--bar" is omitted)
[sh] cpulimit -p 1234 -l 50
limits the CPU usage of the process by acting on its PID, as shown by ps(1)
[sh] cpulimit -P /usr/bin/foo -l 50
same as -e but uses the absolute path name

Author

This manpage was written for the Debian project by gregor herrmann <gregor+debian@comodo.priv.at> but may be used by others.


Table of Contents

Książki warte uwagi

  • SUSE Linux 10. Księga eksperta
  • Slackware Linux
  • Linux. Rozmówki
  • Linux. Komendy i polecenia. Praktyczne przykłady
  • Linux. Bezpieczeństwo. Receptury
  • Zaawansowane programowanie w systemie Linux
  • Fotografia cyfrowa. Edycja zdjęć w Linuksie
  • Linux. Komendy i polecenia. Wydanie II
  • Linux. Receptury
  • Ubuntu Linux. Ćwiczenia
  • Debian Linux. Księga eksperta
  • Jak działa Linux