Limiting the CPU usage of applications on Linux (ubuntu, debian, fedora etc.)

179

Monitor the CPU usage of applications that we use, it is recommended if you need to maintain a good performance on your system, sometimes in our system we have applications that should not stop working and we need some free resources on your computer for them. Linux can prevent other applications to consume these resources and the applications work properly within a cpu limit.

 Use it
To use it, you will need to know the name of the application or PID, once you know it:
Examples of use

If we want to avoid that Firefox does not exceed 30% of CPU usage type
cpulimit firefox-e-l 30

In the case of wanting to limit the use of 40% CPU PID write 3675 on our console as follows:
cpulimit-p 3675-l 40

 

Read the complete post here