<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Regarding Cpu Utilization in Top output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402503#M201086</link>
    <description>I have a query regarding the top output -&lt;BR /&gt;&lt;BR /&gt;for ex:&lt;BR /&gt;Cpu states:&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt; 0    0.03   0.0%   0.0%   0.2%  99.8%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 1    0.00   0.2%   0.0%   0.0%  99.8%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 2    0.00   0.2%   0.6%   2.8%  96.4%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 3    0.01   0.6%   0.4%   5.4%  93.6%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;---   ----  -----  -----  -----  -----  -----  -----  -----  -----&lt;BR /&gt;avg   0.01   0.2%   0.2%   2.2%  97.4%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now in this output, how do they calculate the CPU utilization. Further, what is NICE and LOAD. I think USER gives the % utilization of the user processes which are currently running and SYS gives the % utilization of the System processes and system calls made by the user processes in the currently running proceses. I hope this is right. Please provide some information about the calcuation of cpu utilization. If no one has any info regarding this then we cld discuss it.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards.&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Oct 2004 11:17:01 GMT</pubDate>
    <dc:creator>Sunil Surve</dc:creator>
    <dc:date>2004-10-18T11:17:01Z</dc:date>
    <item>
      <title>Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402503#M201086</link>
      <description>I have a query regarding the top output -&lt;BR /&gt;&lt;BR /&gt;for ex:&lt;BR /&gt;Cpu states:&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt; 0    0.03   0.0%   0.0%   0.2%  99.8%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 1    0.00   0.2%   0.0%   0.0%  99.8%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 2    0.00   0.2%   0.6%   2.8%  96.4%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 3    0.01   0.6%   0.4%   5.4%  93.6%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;---   ----  -----  -----  -----  -----  -----  -----  -----  -----&lt;BR /&gt;avg   0.01   0.2%   0.2%   2.2%  97.4%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now in this output, how do they calculate the CPU utilization. Further, what is NICE and LOAD. I think USER gives the % utilization of the user processes which are currently running and SYS gives the % utilization of the System processes and system calls made by the user processes in the currently running proceses. I hope this is right. Please provide some information about the calcuation of cpu utilization. If no one has any info regarding this then we cld discuss it.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 11:17:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402503#M201086</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-18T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402504#M201087</link>
      <description>How about using vmstat?&lt;BR /&gt;&lt;BR /&gt;This will get you idle cpu:&lt;BR /&gt;&lt;BR /&gt;idle=`/usr/bin/vmstat 1 2 | tail -1 | awk '{print $NF}'`&lt;BR /&gt;&lt;BR /&gt;user plus system will be:&lt;BR /&gt;&lt;BR /&gt;usersys=`expr 100 - $idle`&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 18 Oct 2004 11:30:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402504#M201087</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-18T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402505#M201088</link>
      <description>Try "man top" for details.&lt;BR /&gt;&lt;BR /&gt;LOAD is the average load on the CPU&lt;BR /&gt;&lt;BR /&gt;NICE is a priority queue, indicates how much CPU time went to NICEd processes.&lt;BR /&gt;&lt;BR /&gt;You are right on USER and SYS.</description>
      <pubDate>Mon, 18 Oct 2004 11:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402505#M201088</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2004-10-18T11:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402506#M201089</link>
      <description>I've found  the man page on TOP to be too vague to be useful.&lt;BR /&gt;&lt;BR /&gt;I too would like to know how the 'load' value is determined. I've read that it's a combination of multiple factors, including length of run queue, % idle, etc., but I've never seen any great detail.&lt;BR /&gt;&lt;BR /&gt;re: usr and sys % I assume these are straight sar -u numbers, and there is much documentation on the details and caveats of sar ( not man sar, though. Try sar in your web browser for details)</description>
      <pubDate>Mon, 18 Oct 2004 12:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402506#M201089</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2004-10-18T12:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402507#M201090</link>
      <description>Load is an exponential number, similar to the riechter scale used to measure earthquakes; e.g., 2 is twice as busy as 1, 3 is twice as busy at 2, etc.&lt;BR /&gt;&lt;BR /&gt;The number itself isn't a quantification of any one thing, it's an index value, similar to the Dow Jones New York Stock Exchange index of 30 companies. You can probably derive the formula from any linux or freebsd source code for uptime, but I'm not aware of it actually being published anywhere.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Mon, 18 Oct 2004 12:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402507#M201090</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-18T12:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402508#M201091</link>
      <description>Hi Sunil,&lt;BR /&gt;&lt;BR /&gt;Nice is nothing but CPU utilization that was spent running 'niced' processes. The default priority is 20. For the processes that were started with a non-default priority or that started in background will have a high priority value. To find out such processes do&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o "nice pid args" |sort -n&lt;BR /&gt;&lt;BR /&gt;The ones with more than 20 in the first column are niced processes. &lt;BR /&gt;&lt;BR /&gt;Load is the average number of threads/processes that were being processed + waiting in queue on that CPU during that interval.&lt;BR /&gt;&lt;BR /&gt;Your assumption of USER is right but SYSTEM is the time spent by the CPU in SYSTEM mode such as disk IO, network IO etc.,For ex., if a user process requests an IO from the disk, fetching of IO by the kernel is shown as system CPU.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 12:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402508#M201091</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-18T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402509#M201092</link>
      <description>I think you need better data.&lt;BR /&gt;&lt;BR /&gt;See attached data gathering scripts.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 18 Oct 2004 13:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402509#M201092</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-18T13:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402510#M201093</link>
      <description>The actual details of how CPU utilization is calculated are quite involved, especially in a multi-CPU system. Simply put, during the measurement period, structures in the kernel are read repeatedly to determine usage (SYS, USER, NICE, etc) but since some processes may use 100% of the CPU for a fraction of a second, this calculation is quite involved. If a process consumes 100% of a CPU, then on your 4 processor system, one CPU=100%, the rest almost zero, system usage is 25% overall.&lt;BR /&gt; &lt;BR /&gt;The system load is much simpler than described but hard to quantify. The system load (also seen in the uptime command) is the average size of the RUNQUEUE in the kernel for the last 1,5,15 minutes. Now the RUNQUEUE is the number of processes that are ready to run (no waiting on I/O, exec calls, signals, etc). In a single processor system, a single process performing on compute-intensive task generates a RUNQUEUE=1. Run the program 4 times all at once and the RUNQUEUE=4. But since there is only 1 processor, each job is timesliced and the elapsed time will be 4x the length of a single job.&lt;BR /&gt; &lt;BR /&gt;Move the 4 jobs to run on a 4 processor system and RUNQUEUE=4, but on this machine, RUNQUEUE=4 means all jobs finish in the same time as one job. So the RUNQUEUE (load average) is a long average of the number of running and ready-to-run jobs. So it isn't really a workload in the classic sense.&lt;BR /&gt; &lt;BR /&gt;For instance, a workload of 50 or 100 may not be too high if the jobs are all short lived or they perform some polling functions (low compute time, large system overhead). So the load average divided by the number of processors gives you a rough idea if you have more processes than processors.</description>
      <pubDate>Mon, 18 Oct 2004 20:48:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402510#M201093</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-10-18T20:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402511#M201094</link>
      <description>Hello everybody,&lt;BR /&gt;&lt;BR /&gt;thanks to all for the information given.&lt;BR /&gt;I have a couple more queries considering the reply given by Sridhar Bhaskarla.&lt;BR /&gt;&lt;BR /&gt;Now, NICE is CPU utilization that was spent running 'niced' processes. What i gather from this is, in case of system having all the proccesses running at default priority this will be zero. Is it like if the system has many processes running at higher processes the NICE value would be higher.&lt;BR /&gt;&lt;BR /&gt;Further, in the top output i consider the average cpu utilization. The total of load,nice,sys,user and idle comes out to 100%. Now while calcualting the average cpu utilization (user+sys) , are the individual %CPU of all the processes (given below in the same top output) considered or only those processes which are in run state.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards</description>
      <pubDate>Tue, 19 Oct 2004 02:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402511#M201094</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-19T02:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402512#M201095</link>
      <description>Hi Sunil,&lt;BR /&gt;&lt;BR /&gt;Higher nice value means lower the priority. You are right. When all the processes are running at default nice value, NICE column in your top output would be zero. IF any of the processes are started through background, then their nice values will be higher.&lt;BR /&gt;&lt;BR /&gt;Load is the average number of jobs that are in run queue. It's not the cpu utilization. It tells you how many jobs the particularly CPU ran on the average during that interval. It shouldn't be added to the CPU utilzation.&lt;BR /&gt;&lt;BR /&gt;So, leaving it aside, your CPU utilization will be USER+NICE+SYS. Rest of it is IDLE.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2004 02:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402512#M201095</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-19T02:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402513#M201096</link>
      <description>Hello Sri,&lt;BR /&gt;&lt;BR /&gt;I wanted to know tat how the average cpu utilization values of (user + sys) are calculated. I guess they have to be calculated from addition of %CPU all the processes running on the machine. Now in tat case, only those processes who are in the running state shld be considered or processes in both run+sleep states shld be considered. Actually, at a particular time, i wanted to verify the average cpu utilization reported. I have all the processes listed in the top output and i have taken the output in a file.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Rgds,&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2004 03:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402513#M201096</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-19T03:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402514#M201097</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;CPU utilization is calculated based on the number of CPU cycles that were consumed during that interval. It means, it was only calculated for the processes that were in the running state. The CPU required to manage sleep states, waiting for queue etc., is part of kernel's scheduling usage.&lt;BR /&gt;&lt;BR /&gt;You may not get accurate results if you try to account for the usage as it is done based on the intervals, samples and the averages. Any tool will only give you averages over a certain interval. There is no 100% real time monitoring tool available.&lt;BR /&gt;&lt;BR /&gt;I would suggest you to try 'glance+' pack. You will find an evaluation copy in your application CDs. You can get quite a bit of information from it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 19 Oct 2004 03:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402514#M201097</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-19T03:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402515#M201098</link>
      <description>"Further, in the top output i consider the average cpu utilization. The total of load,nice,sys,user and idle comes out to 100%. Now while calcualting the average cpu utilization (user+sys) , are the individual %CPU of all the processes (given below in the same top output) considered or only those processes which are in run state.&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;They are not considered directly, because if you have a multiple CPU system, the %CPU of all the process listed, when totaled, will equal 100 * number of CPUs.  So only a 3 CPU system, the total individual processes can be as much as 300%.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 19 Oct 2004 09:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402515#M201098</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-19T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402516#M201099</link>
      <description>hello mark,&lt;BR /&gt;&lt;BR /&gt;quoting you,&lt;BR /&gt;"They are not considered directly, because if you have a multiple CPU system, the %CPU of all the process listed, when totaled, will equal 100 * number of CPUs. So only a 3 CPU system, the total individual processes can be as much as 300%."&lt;BR /&gt;&lt;BR /&gt;you are absolutely right... in that case we can just divide the total %CPU calcluated for all the processes by the no. of CPUs/ Or we can also calcualte the %CPU of all the processes running on a particular CPU and then check that particular CPU's utilization. I tried that but i was not able to match the output...&lt;BR /&gt;&lt;BR /&gt;thnks &amp;amp; rgds,&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2004 04:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402516#M201099</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-20T04:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cpu Utilization in Top output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402517#M201100</link>
      <description>top is an old program that does not have the code to accurately sort out multiple processors, context switches at 10 times per second, or complex threads, so the numbers will not generally add up exactly. top must wait along with all other processes to get it's information and as suych, is just a rough idea. Loading on individual CPUs is of no interest since trying to force processor affinity or association virtually never gives better performance.&lt;BR /&gt; &lt;BR /&gt;For accurate and extensive kernel performance numbers, you need to purchase GlancePlus with the Measureware package. The program midaemon runs in realtime and collects data from proprietary kernel structures and measurement points that top cannot access.</description>
      <pubDate>Wed, 20 Oct 2004 07:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-cpu-utilization-in-top-output/m-p/3402517#M201100</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-10-20T07:58:17Z</dc:date>
    </item>
  </channel>
</rss>

