


Use top, or even better, install htop and use this to find the offending program.Ĭpulimit can be invoked in one of three ways, but we will focus on using the NAME of the process first. Please note that total CPU percentage available is usually (100 x number of CPU Cores). Limiting actual usage is done by using the –limit or -l switch option to set the CPU percentage for a process. It still works, but why type more than needed? The command will also work on Ubuntu 18 and 20.Įxecute the following command: apt install cpulimit Install cpulimit on Centos 7Ĭpulimit is part of the EPEL repository yum install epel-release yum install cpulimit Ubuntu 16 has done away with the apt-get and apt-cache, etc syntax.

Make sure you have root for the commands below, or insert the sudo prefix before each command. It is not included in the operating system and has to be installed. Use cpulimit to limit CPU usage.Ĭpulimit is a command line tool written in C. I will discuss two ways in which you can do this.Ģ. In this article, I will discuss how to control a process in both Ubuntu 16 and Centos 7. I had to find a way to deal with it without resorting to yet another plugin. Sometimes you get that one process that just eats up all your resources.
