<?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: percent CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409757#M202368</link>
    <description>&lt;BR /&gt;Is that single process going to run all week, or is the image being recreated multiple times.&lt;BR /&gt;&lt;BR /&gt;Anyway, for such long runtimes I believe it will be more interesting to know how many procent of 1 cpu it used all week, then the percentage of the used cpu time.&lt;BR /&gt;&lt;BR /&gt;Either way. Start with the total cpu time used divided by the total elapsed time (7 * 24 * 60 ?).  by the number of cpus, if you want the results expressed in 'system' performance terms.&lt;BR /&gt;&lt;BR /&gt;If you want percentage of the total cpu used instead of actual usage, re-proportion based on some overall cpu% busy count, from sar or uptime.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Oct 2004 07:26:40 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2004-10-28T07:26:40Z</dc:date>
    <item>
      <title>percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409756#M202367</link>
      <description>Hi,&lt;BR /&gt;How can I report %cpu from only one process during &lt;BR /&gt;for example 1 week ?&lt;BR /&gt;It's on HPUX11.11 platform .&lt;BR /&gt;Thx</description>
      <pubDate>Thu, 28 Oct 2004 07:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409756#M202367</guid>
      <dc:creator>sys-sbd</dc:creator>
      <dc:date>2004-10-28T07:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409757#M202368</link>
      <description>&lt;BR /&gt;Is that single process going to run all week, or is the image being recreated multiple times.&lt;BR /&gt;&lt;BR /&gt;Anyway, for such long runtimes I believe it will be more interesting to know how many procent of 1 cpu it used all week, then the percentage of the used cpu time.&lt;BR /&gt;&lt;BR /&gt;Either way. Start with the total cpu time used divided by the total elapsed time (7 * 24 * 60 ?).  by the number of cpus, if you want the results expressed in 'system' performance terms.&lt;BR /&gt;&lt;BR /&gt;If you want percentage of the total cpu used instead of actual usage, re-proportion based on some overall cpu% busy count, from sar or uptime.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2004 07:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409757#M202368</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-10-28T07:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409758#M202369</link>
      <description>It is easy if you have GLANCE installed. you define your process in /var/opt/perf/param file. It looks something like this.&lt;BR /&gt;&lt;BR /&gt;application = "your_process"&lt;BR /&gt;file = *abc*&lt;BR /&gt;&lt;BR /&gt;Assuming that the process name is abcdx. Once you do changes, recycle scopeux (mwa restart scope) and it would monitor the resources used by this process.&lt;BR /&gt;&lt;BR /&gt;If you have perfview installed, it can save the historical data. &lt;BR /&gt;&lt;BR /&gt;If you do not have glance, you can folloing cron entry to run at pre-defined interval and log the details to a file. you then can prepare a graph from it.&lt;BR /&gt;&lt;BR /&gt;* * * * * UNIX95= ps -C "process_name" -o "pid, args, pcpu" &amp;gt;&amp;gt; /tmp/process.txt&lt;BR /&gt;&lt;BR /&gt;This would monitor the process every minute and put the % cpu used in /tmp/process.txt file.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 28 Oct 2004 07:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409758#M202369</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-10-28T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409759#M202370</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to record the cpu for a particular process and you do not have any tools, I suggest you create a script that is run in a cron to capture the cpu of the process and store the result in a file.&lt;BR /&gt;&lt;BR /&gt;ps -ef|grep &lt;PROCESS&gt;| awk '{print $4} &amp;gt;&amp;gt; fn&lt;BR /&gt;&lt;BR /&gt;You can then cron this to an interval of your choice.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paul&lt;/PROCESS&gt;</description>
      <pubDate>Thu, 28 Oct 2004 07:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409759#M202370</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2004-10-28T07:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409760#M202371</link>
      <description>Well in fact I can't give the name of the process( it had lots of processes with the same name ) is it possible to retrieve the % of CPU just with the pid as the command UNIX95= ps -C "process_name" -o "pid, args, pcpu"?</description>
      <pubDate>Thu, 28 Oct 2004 07:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409760#M202371</guid>
      <dc:creator>sys-sbd</dc:creator>
      <dc:date>2004-10-28T07:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409761#M202372</link>
      <description>I had to do Anil's way like so for example on httpd:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -C httpd -o pid,args=Command-Line -o pcpu&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 28 Oct 2004 07:45:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409761#M202372</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-28T07:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409762#M202373</link>
      <description>By pid:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -p 1302 -o pid,args=Command-Line -o pcpu&lt;BR /&gt;&lt;BR /&gt;Rgds..Geoff</description>
      <pubDate>Thu, 28 Oct 2004 07:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409762#M202373</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-28T07:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409763#M202374</link>
      <description>thx Geoff, it's working well.&lt;BR /&gt;Could you please where can I find more info about the command you give me ?</description>
      <pubDate>Thu, 28 Oct 2004 07:59:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409763#M202374</guid>
      <dc:creator>sys-sbd</dc:creator>
      <dc:date>2004-10-28T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: percent CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409764#M202375</link>
      <description>Sure: &lt;BR /&gt;&lt;BR /&gt;man ps&lt;BR /&gt;&lt;BR /&gt;Also a quick google will reveal a lot, like:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.interex.org/pubcontent/enterprise/jan00/07uxqa.html" target="_blank"&gt;http://www.interex.org/pubcontent/enterprise/jan00/07uxqa.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 28 Oct 2004 08:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu/m-p/3409764#M202375</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-28T08:04:50Z</dc:date>
    </item>
  </channel>
</rss>

