How to limit the cpu of your computer with CPULimit

Employee working with computer

Worker with computer.

With the rise of desktop clone computers, many users and developers created overclocking techniques that consisted of giving more power to the computer.

However, with the autonomy of batteries and the popularity of portable equipment, the trend was reversed and users searched and searched for how to limit the cpu or power of your computer to save energy and computer resources for other purposes such as creating multimedia content or having an autonomy of 9 or 12 hours per charge.

In Gnu / Linux there is a tool called CPULimit that helps us limit the use of the cpu by an application, leaving more computer resources to the rest of the programs or applications that it runs.

CPULimit can help us allocate more or less resources to certain programs

To do this, we must first install the CPULimit tool, then we must know the identifier of the program and finally indicate to CPULimit the part of the CPU that we want it to assign. The installation of CPULimit depending on the distribution will be the following:

    • Debian:
sudo apt-get install cpulimit
    • Fedora:
sudo dnf install cpulimit o sudo yum install cpulimit
    • Arch Linux:
sudo pacman -S cpulimit
    • SUSE / OpenSUSE:
sudo zypper install cpulimit

Now we have to execute the top command to know the identifier number of the application. So we write the word top in the terminal followed by pressing the enter button. A list of app names and numbers will appear.

The first number that appears to our left will be the identifier number. We see the application that we want to reduce, we write down its number and in the terminal we write the following:

cpulimit -l 25 -p 2331

-l 25 indicates the percentage of CPU that we want to assign, in this case it would be 25%; -p 2331 is the identifier number of the program to which we will apply the CPU reduction. And ready. This program will be active until the system reboot, after which we can use but reassigning the number and CPU reduction.

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

2 comments, leave yours

Leave a Comment

Your email address will not be published.



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Chris tian said

    Thank you very much a long time ago I had looked for something similar: D

  2.   clown said

    By installing Chrome, the processor is already limited, it does not leave processing time for any other process