Here, cpulimit will restrict the CPU usage of the process as long as it's running. To force a process with PID 81550 to use only 50% of the CPU: sudo cpulimit -p 81550 - limit 50 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |