<?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 Process and CPU information in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556560#M371209</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Following command, prints the unique values of CPU numbers.&lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '{print $4}'|sort -r |uniq&lt;BR /&gt;&lt;BR /&gt;C&lt;BR /&gt;3&lt;BR /&gt;20&lt;BR /&gt;2&lt;BR /&gt;12&lt;BR /&gt;1&lt;BR /&gt;0&lt;BR /&gt;&lt;BR /&gt;In my system, I have CPU0, CPU1, CPU2, CPU4, CPU6 and CPU7.&lt;BR /&gt;&lt;BR /&gt;I don't uderstand the CPU numbers 20,12,3 which are not present in my system.&lt;BR /&gt;&lt;BR /&gt;Could you please explain about this?&lt;BR /&gt;&lt;BR /&gt;Ravi</description>
    <pubDate>Wed, 30 Dec 2009 09:39:57 GMT</pubDate>
    <dc:creator>G V R Shankar</dc:creator>
    <dc:date>2009-12-30T09:39:57Z</dc:date>
    <item>
      <title>Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556560#M371209</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Following command, prints the unique values of CPU numbers.&lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '{print $4}'|sort -r |uniq&lt;BR /&gt;&lt;BR /&gt;C&lt;BR /&gt;3&lt;BR /&gt;20&lt;BR /&gt;2&lt;BR /&gt;12&lt;BR /&gt;1&lt;BR /&gt;0&lt;BR /&gt;&lt;BR /&gt;In my system, I have CPU0, CPU1, CPU2, CPU4, CPU6 and CPU7.&lt;BR /&gt;&lt;BR /&gt;I don't uderstand the CPU numbers 20,12,3 which are not present in my system.&lt;BR /&gt;&lt;BR /&gt;Could you please explain about this?&lt;BR /&gt;&lt;BR /&gt;Ravi</description>
      <pubDate>Wed, 30 Dec 2009 09:39:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556560#M371209</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-12-30T09:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556561#M371210</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt;C isn't the number of cpu's.&lt;BR /&gt;&lt;BR /&gt;%cpu %CPU cpu utilization of the process in "##.#" format.&lt;BR /&gt;&lt;BR /&gt;Currently, it is the CPU time used divided by the time the  process has been running (cputime/realtime ratio),                   expressed as a percentage. It will not add up to 100% unless you are lucky. (alias pcpu).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgs,</description>
      <pubDate>Wed, 30 Dec 2009 11:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556561#M371210</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2009-12-30T11:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556562#M371211</link>
      <description>A quick review of the man page indicates that this "C" column indicates the "processor utilization for scheduling".  I think you've mis-interpreted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 30 Dec 2009 11:38:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556562#M371211</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-12-30T11:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556563#M371212</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;pcpu           &lt;BR /&gt;&lt;BR /&gt;The percentage of CPU time used by this  process  during the last scheduling interval.  The default                 heading for this column is %CPU.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 11:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556563#M371212</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2009-12-30T11:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556564#M371213</link>
      <description>&amp;gt; ... | sort -r | uniq&lt;BR /&gt;&lt;BR /&gt;No need to use uniq(1) here, you can use: ... | sort -r -u</description>
      <pubDate>Wed, 30 Dec 2009 15:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556564#M371213</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-30T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556565#M371214</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am sorry, I could have presented my question in more approprite way. Even it is my understanding that CPU cloumn would show the CPU number, instead of number of CPU's.&lt;BR /&gt;&lt;BR /&gt;In my system, I have CPU0, CPU1, CPU2, CPU4, CPU6 and CPU7. In that case, ps -ef o/p shoudl have 0,1,2,4,6 and 7. Please correct me if I am wrong.&lt;BR /&gt;&lt;BR /&gt;Apart from that, I see 20, 12 and 3 numbers in CPU column.&lt;BR /&gt;&lt;BR /&gt;I have little knowledge about pcpu, but I am interested in the CPU cloumn.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Ravi.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 16:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556565#M371214</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-12-30T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556566#M371215</link>
      <description>&amp;gt; it is my understanding that CPU cloumn would show the CPU number, instead of number of CPU's.&lt;BR /&gt;&lt;BR /&gt;That is wrong.  The CPU column shows processor utilization not processor number.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please correct me if I am wrong.&lt;BR /&gt;&lt;BR /&gt;You are wrong (see above).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 30 Dec 2009 16:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556566#M371215</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-12-30T16:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556567#M371216</link>
      <description>&amp;gt;Following command, prints the unique values of CPU numbers.&lt;BR /&gt;&lt;BR /&gt;Are you thinking of the CPU number in the top(1) output?</description>
      <pubDate>Wed, 30 Dec 2009 16:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556567#M371216</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-30T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556568#M371217</link>
      <description>Thank you for correcting me. I was in a impresession that it was the CPU number as shown top command.&lt;BR /&gt;&lt;BR /&gt;Out of 6 CPU's, if 2 CPU's utilization is above 90% (as per OVPA reports), how do I know which processes are keeping those 2 CPU's busy.&lt;BR /&gt;&lt;BR /&gt;Can you please help me?&lt;BR /&gt;&lt;BR /&gt;Ravi.</description>
      <pubDate>Wed, 30 Dec 2009 18:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556568#M371217</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-12-30T18:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556569#M371218</link>
      <description>&amp;gt;if 2 CPU's utilization is above 90% (as per OVPA reports), how do I know which processes are keeping those 2 CPUs busy?&lt;BR /&gt;&lt;BR /&gt;Doesn't top(1) tell you which process is busy and using which CPU?  (Provided you aren't using threads.)&lt;BR /&gt;Any reason you care?</description>
      <pubDate>Wed, 30 Dec 2009 19:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556569#M371218</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-30T19:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556570#M371219</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;you are correct, top gives me the data I am looking for. I almost forgot the handy tools that we have in unix. I have been using the following command to get top 20 CPU consuming processes.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o "user,pcpu,cpu,vsz,pid,ppid,args" | sort -rnk2 | head -20 &lt;BR /&gt;&lt;BR /&gt;If I look at TIME in top man page it says teh following.&lt;BR /&gt;&lt;BR /&gt;TIME Number of system and CPU seconds the process has consumed.&lt;BR /&gt;&lt;BR /&gt;The time column keeps updating when the process state is in run state (makes sense). The moment it goes in to sleep state, the time cloumn doesn't update. The moment it comes in to run state, it doesn't reset the time to zero (until and unless it is new process). It just adds the time to the privious value.&lt;BR /&gt;&lt;BR /&gt;How would I know, how much time the process has been in run state before it actually went in to sleep.&lt;BR /&gt;&lt;BR /&gt;%CPU is used to sort the top process.&lt;BR /&gt;&lt;BR /&gt;Also, could you please explain me the difference between %CPU and %WCPU. What is Raw and Weighted.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ravi.</description>
      <pubDate>Sat, 02 Jan 2010 08:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556570#M371219</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2010-01-02T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Process and CPU information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556571#M371220</link>
      <description>Hi Ravi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How would I know, how much time the process has been in run state before it actually went in to sleep.&lt;BR /&gt;&lt;BR /&gt;I don't think you can determine that very easily (at least not with 'top').  A far better tool for "drilling down" is 'glance'.  In fact, since 'glance' is architected to understand the HP-UX kernel, it is probably the best tool for performance analysis on these systems. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also, could you please explain me the difference between %CPU and %WCPU. What is Raw and Weighted.&lt;BR /&gt;&lt;BR /&gt;The "raw" value would be a value for that sampling interval only.  A "weighted" value would take into account previous values to arrive at a "smoother" average for comparative purposes.&lt;BR /&gt;&lt;BR /&gt;If you Google for "weighted average" you will find (among others):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Weighted_mean" target="_blank"&gt;http://en.wikipedia.org/wiki/Weighted_mean&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;At the least, this will give you a better understanding of "weighted".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 02 Jan 2010 15:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-cpu-information/m-p/4556571#M371220</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-01-02T15:24:52Z</dc:date>
    </item>
  </channel>
</rss>

