<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: How do I Find Out Linux CPU Utilization?</title> <atom:link href="http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: MICHAEL</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-178117</link> <dc:creator>MICHAEL</dc:creator> <pubDate>Fri, 06 Jan 2012 18:57:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-178117</guid> <description>SO LETS SAY I FIND OUT WHAT IS USING ALL MY CPU AND KEEPING IT RUNNING AT 100%. I FIND OUT THAT IT IS NOT A PROCESS THAT I START UP KNOWINGLY. HOW DO I STOP IT FROM LOADING ON NEXT REBOOT? MY COMPUTER RUNS SO SLOW DUE TO THE CPU RUNNING AT 100% CONTINUALLY.  I WANT TO FIX THIS. AT FIRST I THOUGH IT WAS DUE TO INSUFFICIENT MEMORY SO I REMOVED WINDOWS AND INSTALLED LINUX. I ALSO DOUBLED MY MEMORY. NOW I AM AT 512MB BUT IT STILL RUNS THE SAME AS IT DID WITH 256MB.</description> <content:encoded><![CDATA[<p>SO LETS SAY I FIND OUT WHAT IS USING ALL MY CPU AND KEEPING IT RUNNING AT 100%. I FIND OUT THAT IT IS NOT A PROCESS THAT I START UP KNOWINGLY. HOW DO I STOP IT FROM LOADING ON NEXT REBOOT? MY COMPUTER RUNS SO SLOW DUE TO THE CPU RUNNING AT 100% CONTINUALLY.  I WANT TO FIX THIS. AT FIRST I THOUGH IT WAS DUE TO INSUFFICIENT MEMORY SO I REMOVED WINDOWS AND INSTALLED LINUX. I ALSO DOUBLED MY MEMORY. NOW I AM AT 512MB BUT IT STILL RUNS THE SAME AS IT DID WITH 256MB.</p> ]]></content:encoded> </item> <item><title>By: TeeCee</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-177994</link> <dc:creator>TeeCee</dc:creator> <pubDate>Wed, 04 Jan 2012 20:11:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-177994</guid> <description>@mkdizajn,
I would guess from the numbers that sda and sdb are 1TB drives.  Sine it appears to have read  1TB from sda and written it to sd, mygues is t thiis the mirrorin process. After yreboo, the nunbs shod even out.The total reads on sda and sdb should add to dm-1 and the writes should be the same.</description> <content:encoded><![CDATA[<p>@mkdizajn,</p><p>I would guess from the numbers that sda and sdb are 1TB drives.  Sine it appears to have read  1TB from sda and written it to sd, mygues is t thiis the mirrorin process. After yreboo, the nunbs shod even out.The total reads on sda and sdb should add to dm-1 and the writes should be the same.</p> ]]></content:encoded> </item> <item><title>By: mkdizajn</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-177925</link> <dc:creator>mkdizajn</dc:creator> <pubDate>Tue, 03 Jan 2012 10:33:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-177925</guid> <description>Hi,
this is my output from iostat command:
&lt;pre&gt;
Linux 3.0.0-14-generic (k1-desk) 	01/03/2012 	_x86_64_	(4 CPU)
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
3.67    0.02    1.51    0.62    0.00   94.18
Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda              31.60     14245.90        85.57  979239785    5881884
sdb              30.24         0.01     14285.26        976  981945348
sdc               1.47        20.83        18.15    1431840    1247465
dm-0              5.08        37.71        85.57    2592093    5881884
dm-1              4.96        37.70        85.57    2591693    5881884
&lt;/pre&gt;
this is very interesting because sda and sdb are same disks in mirror raid, lower named dm-1.. does this mean that disks in my raid work that way,,, one reads data, other write it ? ... strange.. but makes my head think about that :)</description> <content:encoded><![CDATA[<p>Hi,</p><p>this is my output from iostat command:</p><pre>
Linux 3.0.0-14-generic (k1-desk) 	01/03/2012 	_x86_64_	(4 CPU)
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           3.67    0.02    1.51    0.62    0.00   94.18
Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda              31.60     14245.90        85.57  979239785    5881884
sdb              30.24         0.01     14285.26        976  981945348
sdc               1.47        20.83        18.15    1431840    1247465
dm-0              5.08        37.71        85.57    2592093    5881884
dm-1              4.96        37.70        85.57    2591693    5881884
</pre><p>this is very interesting because sda and sdb are same disks in mirror raid, lower named dm-1.. does this mean that disks in my raid work that way,,, one reads data, other write it ? &#8230; strange.. but makes my head think about that :)</p> ]]></content:encoded> </item> <item><title>By: Roberta</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-177115</link> <dc:creator>Roberta</dc:creator> <pubDate>Fri, 16 Dec 2011 19:47:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-177115</guid> <description>Great post! I finally understand how to check and analyze a little better Linux CPU utilization. Many thanks! You rocks!</description> <content:encoded><![CDATA[<p>Great post! I finally understand how to check and analyze a little better Linux CPU utilization. Many thanks! You rocks!</p> ]]></content:encoded> </item> <item><title>By: surjan</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-174192</link> <dc:creator>surjan</dc:creator> <pubDate>Wed, 21 Sep 2011 06:45:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-174192</guid> <description>Nice article and equally good comments suggesting the new commands.
I can see some sar files inside /var/log/sa/. I can see a block containing the CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle  values. Is there some way to see memory utilization in the same file, memory utilization per process or as whole.
Please help</description> <content:encoded><![CDATA[<p>Nice article and equally good comments suggesting the new commands.<br
/> I can see some sar files inside /var/log/sa/. I can see a block containing the CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle  values. Is there some way to see memory utilization in the same file, memory utilization per process or as whole.<br
/> Please help</p> ]]></content:encoded> </item> <item><title>By: Roel</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-172800</link> <dc:creator>Roel</dc:creator> <pubDate>Wed, 27 Jul 2011 02:03:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-172800</guid> <description>Nice article - this helped, thanks.</description> <content:encoded><![CDATA[<p>Nice article &#8211; this helped, thanks.</p> ]]></content:encoded> </item> <item><title>By: Si Em</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-172398</link> <dc:creator>Si Em</dc:creator> <pubDate>Mon, 11 Jul 2011 10:28:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-172398</guid> <description>Could you kindly descripe more detail about the below command. For example, if use command number 2 &quot;nohup&quot;, what directory should i used? Local directory or server directory? Thank in advance for your kind.
To get multiple samples and multiple reports set an output file for the sar command. Run the sar command as a background process using.
# sar -o output.file 12 8 &gt;/dev/null 2&gt;&amp;1 &amp;
Better use nohup command so that you can logout and check back report later on:
# nohup sar -o output.file 12 8 &gt;/dev/null 2&gt;&amp;1 &amp;
All data is captured in binary form and saved to a file (data.file). The data can then be selectively displayed ith the sar command using the -f option.
# sar -f data.file</description> <content:encoded><![CDATA[<p>Could you kindly descripe more detail about the below command. For example, if use command number 2 &#8220;nohup&#8221;, what directory should i used? Local directory or server directory? Thank in advance for your kind.</p><p>To get multiple samples and multiple reports set an output file for the sar command. Run the sar command as a background process using.<br
/> # sar -o output.file 12 8 &gt;/dev/null 2&gt;&amp;1 &amp;<br
/> Better use nohup command so that you can logout and check back report later on:<br
/> # nohup sar -o output.file 12 8 &gt;/dev/null 2&gt;&amp;1 &amp;<br
/> All data is captured in binary form and saved to a file (data.file). The data can then be selectively displayed ith the sar command using the -f option.<br
/> # sar -f data.file</p> ]]></content:encoded> </item> <item><title>By: sachin</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-172167</link> <dc:creator>sachin</dc:creator> <pubDate>Tue, 28 Jun 2011 09:43:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-172167</guid> <description>how to check cpu utilization past 2 days
Please help me</description> <content:encoded><![CDATA[<p>how to check cpu utilization past 2 days</p><p>Please help me</p> ]]></content:encoded> </item> <item><title>By: RapidSpeeds</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-171207</link> <dc:creator>RapidSpeeds</dc:creator> <pubDate>Sat, 07 May 2011 15:44:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-171207</guid> <description>Nice guide, very well written and documented.
Will direct anyone here should any such questions arise from one of our customers.
Thanks.</description> <content:encoded><![CDATA[<p>Nice guide, very well written and documented.</p><p>Will direct anyone here should any such questions arise from one of our customers.</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: Taher</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-171139</link> <dc:creator>Taher</dc:creator> <pubDate>Wed, 04 May 2011 22:01:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-171139</guid> <description>Is there a way for me to see sar results for yesterday from the default log?
( By default it only shows from midnight of today . Note: I am not explicitly running or saving it )
Thanks .</description> <content:encoded><![CDATA[<p>Is there a way for me to see sar results for yesterday from the default log?<br
/> ( By default it only shows from midnight of today . Note: I am not explicitly running or saving it )</p><p>Thanks .</p> ]]></content:encoded> </item> <item><title>By: Kilroy</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-170419</link> <dc:creator>Kilroy</dc:creator> <pubDate>Fri, 01 Apr 2011 06:10:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-170419</guid> <description>to be more specific i was using *sar and found all the data i wanted and more but realized that i needed more Graphical data. could anyone suggest which direction i need to move to get this done?</description> <content:encoded><![CDATA[<p>to be more specific i was using *sar and found all the data i wanted and more but realized that i needed more Graphical data. could anyone suggest which direction i need to move to get this done?</p> ]]></content:encoded> </item> <item><title>By: Kilroy</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-170418</link> <dc:creator>Kilroy</dc:creator> <pubDate>Fri, 01 Apr 2011 06:00:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-170418</guid> <description>Great article!!! thanks
although i have a debian squeeze box without X GUI installed although i&#039;d like to have graphical reports on performance statistics like CPU%, memory usage etc.. is there any tool or command i can use to get this done? using systat i noticed im getting volumes of text data and its quite time consuming to search for specific data. im quite new to this could anyone help me out
Thanks in advance</description> <content:encoded><![CDATA[<p>Great article!!! thanks<br
/> although i have a debian squeeze box without X GUI installed although i&#8217;d like to have graphical reports on performance statistics like CPU%, memory usage etc.. is there any tool or command i can use to get this done? using systat i noticed im getting volumes of text data and its quite time consuming to search for specific data. im quite new to this could anyone help me out</p><p>Thanks in advance</p> ]]></content:encoded> </item> <item><title>By: Lohith</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-170252</link> <dc:creator>Lohith</dc:creator> <pubDate>Tue, 22 Mar 2011 09:31:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-170252</guid> <description>Hi ,
I am running  mpstat -P ALL command and calculating the CPU utilization values. but i want to calculate the cpu utilization values of another CPU from the one that I am working from and report the values of the same to other module that is working on in my processor ..Is it possible? Please let me know ..This is a urgent requirement..</description> <content:encoded><![CDATA[<p>Hi ,<br
/> I am running  mpstat -P ALL command and calculating the CPU utilization values. but i want to calculate the cpu utilization values of another CPU from the one that I am working from and report the values of the same to other module that is working on in my processor ..Is it possible? Please let me know ..This is a urgent requirement..</p> ]]></content:encoded> </item> <item><title>By: Mani</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-168461</link> <dc:creator>Mani</dc:creator> <pubDate>Wed, 26 Jan 2011 18:08:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-168461</guid> <description>Great article.. Also please consider mentioning about vmstat tool. It is another great tool..</description> <content:encoded><![CDATA[<p>Great article.. Also please consider mentioning about vmstat tool. It is another great tool..</p> ]]></content:encoded> </item> <item><title>By: Sharad</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-168188</link> <dc:creator>Sharad</dc:creator> <pubDate>Mon, 10 Jan 2011 12:26:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-168188</guid> <description>This helps, thanks!</description> <content:encoded><![CDATA[<p>This helps, thanks!</p> ]]></content:encoded> </item> <item><title>By: Dawn Alphonse Jose</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-160204</link> <dc:creator>Dawn Alphonse Jose</dc:creator> <pubDate>Mon, 18 Oct 2010 11:40:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-160204</guid> <description>how can i resolve this issue of CPU  utilisation in  my linux server.</description> <content:encoded><![CDATA[<p>how can i resolve this issue of CPU  utilisation in  my linux server.</p> ]]></content:encoded> </item> <item><title>By: venkat</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-159679</link> <dc:creator>venkat</dc:creator> <pubDate>Fri, 17 Sep 2010 16:56:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-159679</guid> <description>Hi,
i have a query regarding CPU utilization and CPU percentage.
What is mean by CPU percentage?
Basing on what parameter we can calculate CPU percentage.
On my AIX server having 4 cpu&#039;s shows below values for each 15 min interval.
system cpu time is 4%, User cpu time is 90% idle cpu time is 6%
and CPU percentage of all the processes not exceeded 20%.
How can i understood my CPU performance from the above values.</description> <content:encoded><![CDATA[<p>Hi,<br
/> i have a query regarding CPU utilization and CPU percentage.<br
/> What is mean by CPU percentage?<br
/> Basing on what parameter we can calculate CPU percentage.<br
/> On my AIX server having 4 cpu&#8217;s shows below values for each 15 min interval.</p><p>system cpu time is 4%, User cpu time is 90% idle cpu time is 6%</p><p>and CPU percentage of all the processes not exceeded 20%.<br
/> How can i understood my CPU performance from the above values.</p> ]]></content:encoded> </item> <item><title>By: Tony</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-159510</link> <dc:creator>Tony</dc:creator> <pubDate>Wed, 08 Sep 2010 22:04:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-159510</guid> <description>The average CPU usage is:
(103568-102843 + 0-0 + 67109-66548)/(4345597-4308888)
=0.0350322809
only 3.5%, but the estimation is not accurate</description> <content:encoded><![CDATA[<p>The average CPU usage is:</p><p>(103568-102843 + 0-0 + 67109-66548)/(4345597-4308888)<br
/> =0.0350322809</p><p>only 3.5%, but the estimation is not accurate</p> ]]></content:encoded> </item> <item><title>By: Tony</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-159509</link> <dc:creator>Tony</dc:creator> <pubDate>Wed, 08 Sep 2010 22:01:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-159509</guid> <description>You can try to use /proc/stat to calculate CPU utilization.
If the information is displayed like this:
cpu  607557 143290 385125 136873807 1279793 18764 14856 0 0
To get the average system load over any given amount of time you read only the first four values into variable (for example, ill call them u1, n1, s1, and i1). Then when you&#039;re ready you read the values again into new variables, u2, n2, s2, and i2. Now your total usage time is equal to (u2-u1) + (n2 - n1) + (s2 - s1). And your total time overall is the usage time + (i2-i1). Take (100*usage)/total and you have your percent CPU Usage.</description> <content:encoded><![CDATA[<p>You can try to use /proc/stat to calculate CPU utilization.</p><p>If the information is displayed like this:<br
/> cpu  607557 143290 385125 136873807 1279793 18764 14856 0 0</p><p>To get the average system load over any given amount of time you read only the first four values into variable (for example, ill call them u1, n1, s1, and i1). Then when you&#8217;re ready you read the values again into new variables, u2, n2, s2, and i2. Now your total usage time is equal to (u2-u1) + (n2 &#8211; n1) + (s2 &#8211; s1). And your total time overall is the usage time + (i2-i1). Take (100*usage)/total and you have your percent CPU Usage.</p> ]]></content:encoded> </item> <item><title>By: Rey</title><link>http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-158281</link> <dc:creator>Rey</dc:creator> <pubDate>Fri, 23 Jul 2010 14:45:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html#comment-158281</guid> <description>Is there anyway to determine CPU cycles currently in use and available CPU Cycles.</description> <content:encoded><![CDATA[<p>Is there anyway to determine CPU cycles currently in use and available CPU Cycles.</p> ]]></content:encoded> </item> </channel> </rss>
