<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cpu utilization &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/cpu-utilization/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Tue, 13 Sep 2011 12:34:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Limit CPU Usage Per Process In Linux</title>
		<link>https://lifelinux.com/how-to-limit-cpu-usage-per-process-in-linux/</link>
					<comments>https://lifelinux.com/how-to-limit-cpu-usage-per-process-in-linux/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 13 Sep 2011 12:11:57 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[centos cpulimit]]></category>
		<category><![CDATA[cpu usage]]></category>
		<category><![CDATA[cpu utilization]]></category>
		<category><![CDATA[cpulimit command.]]></category>
		<category><![CDATA[debian linux cpulimit]]></category>
		<category><![CDATA[linux cpu throttling]]></category>
		<category><![CDATA[linux process throttling]]></category>
		<category><![CDATA[redhat cpulimit]]></category>
		<category><![CDATA[ubuntu linux cpulimit]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1193</guid>

					<description><![CDATA[<p>To limit CPU usage per process in Linux, you can use cpulimit. It 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&#8217;t want them to eat too much cpu. It does not act on the nice [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-limit-cpu-usage-per-process-in-linux/">How To Limit CPU Usage Per Process In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To limit CPU usage per process in Linux, you can use <strong>cpulimit</strong>. It is a simple program which attempts to limit the cpu usage of a process (expressed in <strong>percentage</strong>, not in cpu time). This is useful to control batch jobs, when you don&#8217;t want them to eat too much cpu. It does not act on the nice value or other scheduling priority stuff, but on the <strong>real</strong> cpu usage. Also, it is able to adapt itself to the overall system load, dynamically and quickly.<br />
<span id="more-1193"></span></p>
<h2>Install cpulimit</h2>
<p>Type the following commands to install latest version of cpulimit</p>
<pre># wget http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz
# tar zxvf cpulimit-1.1.tar.gz
# cd cpulimit-1.1
# yum install make -y
# make
# cp cpulimit /usr/local/sbin/</pre>
<p>If you are using Ubuntu / Debian, you can also use apt-get to install cpulimit, type the following command</p>
<pre># sudo apt-get install cpulimit</pre>
<h2>How to use cpulimit</h2>
<pre>Usage: cpulimit TARGET [OPTIONS...]
   TARGET must be exactly one of these:
      -p, --pid=N        pid of the process
      -e, --exe=FILE     name of the executable program file
      -P, --path=PATH    absolute path name of the executable program file
   OPTIONS
      -l, --limit=N      percentage of cpu allowed from 0 to 100 (mandatory)
      -v, --verbose      show control statistics
      -z, --lazy         exit if there is no suitable target process, or if it dies
      -h, --help         display this help and exit</pre>
<p>Example, I want to limit CPU usage of process called httpd to 20%, i will enter</p>
<pre># cpulimit -e httpd -l 20</pre>
<p>To limit CPU usage of process had PID is 1673 to 20%, enter</p>
<pre># cpulimit -p 1673 -l 20</pre>
<p>You can also use name of the executable program file, enter</p>
<pre># cpulimit -P /usr/local/zend/apache2/bin/httpd -l 20</pre>
<g:plusone href="https://lifelinux.com/how-to-limit-cpu-usage-per-process-in-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-limit-cpu-usage-per-process-in-linux/">How To Limit CPU Usage Per Process In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-limit-cpu-usage-per-process-in-linux/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
