falobling.blogg.se

Linux cpu utilization command
Linux cpu utilization command







You can use the -limit or -l flag of the cpulimit utility to add a limit to the resources that a process can use. The basic syntax of the command is: cpulimit -p pidĬpulimit -P /path-to-executable Limit the CPU Usage of a Process

  • -P or -path: Absolute path of the executable file.
  • -e or -exe: The name of the executable file.
  • -p or -pid: The process ID of a process.
  • To use cpulimit, you'll have to pass one of the following three arguments with the command: Therefore, to install it on CentOS and RHEL distributions, you'll have to enable the EPEL repository first. On Arch-based distributions like Manjaro Linux: sudo pacman -S cpulimitĬpulimit is available on the EPEL (Extra Packages for Enterprise Linux) repository. You can install the package on Ubuntu and other Debian-based distributions as follows: sudo apt install cpulimit









    Linux cpu utilization command