<?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 Re: Cpu average using C  Api on HP-UX 11.0 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251764#M887690</link>
    <description>To be blunt, forget the load average / time idle thing, this is like counting carots looking at cabages, it doesn't make sens (wheither you like it or not) ! &lt;BR /&gt;&lt;BR /&gt;Take a look at this, it might help you :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.hp.com/redirect.html?url=http%3A//forums1.itrc.hp.com/service/forums/questionanswer.do%3FthreadId%3D137120&amp;amp;qt=pstat.h&amp;amp;hit=1" target="_blank"&gt;http://search.hp.com/redirect.html?url=http%3A//forums1.itrc.hp.com/service/forums/questionanswer.do%3FthreadId%3D137120&amp;amp;qt=pstat.h&amp;amp;hit=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/files/unprotected/hpux/u_faqs.pdf" target="_blank"&gt;http://h21007.www2.hp.com/dspp/files/unprotected/hpux/u_faqs.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers &lt;BR /&gt;&lt;BR /&gt;Nicolas</description>
    <pubDate>Mon, 19 Apr 2004 10:01:12 GMT</pubDate>
    <dc:creator>Nicolas Dumeige</dc:creator>
    <dc:date>2004-04-19T10:01:12Z</dc:date>
    <item>
      <title>Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251759#M887685</link>
      <description>Dear All, &lt;BR /&gt;I have executed this C Api to have the avearge consuming of my cpu.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;struct pst_dynamic psd; // dynamic system info -- stuff that change change&lt;BR /&gt;&lt;BR /&gt;pstat_getdynamic ( &amp;amp;psd, sizeof ( psd ), (size_t)1 );&lt;BR /&gt;printf ( "1-minute: %lf, 5-minute: %lf, 15-minute: %lf\n",&lt;BR /&gt;         psd.psd_avg_1_min,&lt;BR /&gt;         psd.psd_avg_5_min,&lt;BR /&gt;         psd.psd_avg_15_min );&lt;BR /&gt;&lt;BR /&gt;Result;&lt;BR /&gt;&lt;BR /&gt;1-minute load avg: 0.084683&lt;BR /&gt;5-minute load avg: 0.094141&lt;BR /&gt;15-minute load avg: 0.14590&lt;BR /&gt;&lt;BR /&gt;For example, 1-minute load avg: 0.084683 what does it means? and How can i calculate the rate of Idle with these values?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Considering that my Idle is 99.6%,&lt;BR /&gt;ho can i transform&lt;BR /&gt;1-minute load avg: 0.084683&lt;BR /&gt;5-minute load avg: 0.094141&lt;BR /&gt;15-minute load avg: 0.145902 to have 99.6% IDLE?&lt;BR /&gt;&lt;BR /&gt;#top (result of top command)&lt;BR /&gt; LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt; 0.09   0.2%   0.0%   0.2%  99.6%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope you can help me.&lt;BR /&gt;Thanks &lt;BR /&gt;Alex&lt;BR /&gt;&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Mon, 19 Apr 2004 02:47:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251759#M887685</guid>
      <dc:creator>alessandro_37</dc:creator>
      <dc:date>2004-04-19T02:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251760#M887686</link>
      <description>Alessandro,&lt;BR /&gt;&lt;BR /&gt;Are you sure you can transform the load average wich is a ponderated machine wide average based on CPU runQ to CPU utilisation ? &lt;BR /&gt;&lt;BR /&gt;What append when the box have multiple CPU ?&lt;BR /&gt;&lt;BR /&gt;Cheers &lt;BR /&gt;&lt;BR /&gt;Nicolas</description>
      <pubDate>Mon, 19 Apr 2004 02:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251760#M887686</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-04-19T02:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251761#M887687</link>
      <description>I have only a cpu...</description>
      <pubDate>Mon, 19 Apr 2004 05:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251761#M887687</guid>
      <dc:creator>alessandro_37</dc:creator>
      <dc:date>2004-04-19T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251762#M887688</link>
      <description>The connection between these two factors is not strict. &lt;BR /&gt;&lt;BR /&gt;You may have one process consuming 100 percent of your cpu, while no other process wish to run, what will give you low load average, while 0 precent of idle cpu.</description>
      <pubDate>Mon, 19 Apr 2004 05:44:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251762#M887688</guid>
      <dc:creator>Maxim Rozin</dc:creator>
      <dc:date>2004-04-19T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251763#M887689</link>
      <description>This is the second thread you post on this problem.&lt;BR /&gt;&lt;BR /&gt;May I suggest a more primitive yet more precise way of getting the CPU consuption info. Have you considered using the standard HP tool to dump the resullt in file or a pipe and read the result set from you C program ?&lt;BR /&gt;&lt;BR /&gt;Furthermore, resource accounting is one very complex task. If you choose to depend on the standard tool, your executable will benefit from the OS improvement.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Nicolas</description>
      <pubDate>Mon, 19 Apr 2004 06:13:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251763#M887689</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-04-19T06:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251764#M887690</link>
      <description>To be blunt, forget the load average / time idle thing, this is like counting carots looking at cabages, it doesn't make sens (wheither you like it or not) ! &lt;BR /&gt;&lt;BR /&gt;Take a look at this, it might help you :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.hp.com/redirect.html?url=http%3A//forums1.itrc.hp.com/service/forums/questionanswer.do%3FthreadId%3D137120&amp;amp;qt=pstat.h&amp;amp;hit=1" target="_blank"&gt;http://search.hp.com/redirect.html?url=http%3A//forums1.itrc.hp.com/service/forums/questionanswer.do%3FthreadId%3D137120&amp;amp;qt=pstat.h&amp;amp;hit=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/files/unprotected/hpux/u_faqs.pdf" target="_blank"&gt;http://h21007.www2.hp.com/dspp/files/unprotected/hpux/u_faqs.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers &lt;BR /&gt;&lt;BR /&gt;Nicolas</description>
      <pubDate>Mon, 19 Apr 2004 10:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251764#M887690</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-04-19T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cpu average using C  Api on HP-UX 11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251765#M887691</link>
      <description>Thanks a lot Nicolas,&lt;BR /&gt;i am verifying your documentation...</description>
      <pubDate>Tue, 20 Apr 2004 05:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-average-using-c-api-on-hp-ux-11-0/m-p/3251765#M887691</guid>
      <dc:creator>alessandro_37</dc:creator>
      <dc:date>2004-04-20T05:24:41Z</dc:date>
    </item>
  </channel>
</rss>

