Linux Tips and Tricks

Linux Tips and Tricks

Limit the CPU usage of a particular process


Hi All,

Here is the new utility called cpulimit

What is it ?

cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time). This is useful to control batch jobs, when you don’t want them to eat too much cpu. It does not act on the nice value or other scheduling priority stuff, but on the real cpu usage. Also, it is able to adapt itself to the overall system load, dynamically and quickly.

how to get it ?

sudo apt-get install cpulimit

Download it from

How to use it ?

cpulimit -e <process-name/PID> -l 30


cpulimit -e 2223 -l 30
cpulimit -e firefox -l 50

Thanks & Bye

posted under Uncategorized

Email will not be published

Website example

Your Comment:

Recent Comments