Limit the CPU usage of a particular process
January17
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
or
Download it from http://cpulimit.sourceforge.net/
How to use it ?
cpulimit -e <process-name/PID> -l 30
Example:
cpulimit -e 2223 -l 30
cpulimit -e firefox -l 50
Thanks & Bye
Kamaraj
Recent Comments