<?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 percent cpu via ps auxw (berkely syntax) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570849#M857765</link>
    <description>I am new to hpux. I am used to being able to use ps auxw (berkely syntax) primarily for&lt;BR /&gt;pulling off the %cpu column.  Does anyone know how to get this info, and I don't want to use "top".  I need to be able to gather this data from a script.&lt;BR /&gt;&lt;BR /&gt;Thanks - Jim&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Aug 2001 17:03:55 GMT</pubDate>
    <dc:creator>Jim Booker</dc:creator>
    <dc:date>2001-08-27T17:03:55Z</dc:date>
    <item>
      <title>percent cpu via ps auxw (berkely syntax)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570849#M857765</link>
      <description>I am new to hpux. I am used to being able to use ps auxw (berkely syntax) primarily for&lt;BR /&gt;pulling off the %cpu column.  Does anyone know how to get this info, and I don't want to use "top".  I need to be able to gather this data from a script.&lt;BR /&gt;&lt;BR /&gt;Thanks - Jim&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2001 17:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570849#M857765</guid>
      <dc:creator>Jim Booker</dc:creator>
      <dc:date>2001-08-27T17:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: percent cpu via ps auxw (berkely syntax)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570850#M857766</link>
      <description>I think you'll like the ps -efl command, or just ps -l.  Good luck.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 27 Aug 2001 17:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570850#M857766</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2001-08-27T17:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: percent cpu via ps auxw (berkely syntax)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570851#M857767</link>
      <description>Hi Jim:&lt;BR /&gt;&lt;BR /&gt;Try using the UNIX95 option of the 'ps' command like this:&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -e -o pcpu -o ruser -o args|sort -nr|grep -v %CPU|head -10&lt;BR /&gt;&lt;BR /&gt;This will give the top-10 highest %CPU entries.  All processes are selected; the percentage CPU; login name and command line are reported, sorted by descending CPU utilization.&lt;BR /&gt;&lt;BR /&gt;Note that there is a space (blank) after 'UNIX95' before the 'ps' command.  Thus, the UNIX95 variable is used *only* for the 'ps' command and no other.&lt;BR /&gt;&lt;BR /&gt;See the man pages for 'ps' for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2001 17:25:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570851#M857767</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-27T17:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: percent cpu via ps auxw (berkely syntax)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570852#M857768</link>
      <description>James,&lt;BR /&gt;When I run your command, I get the first 10 processes. Not the top 10 for cpu usage.</description>
      <pubDate>Tue, 28 Aug 2001 16:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570852#M857768</guid>
      <dc:creator>Michael Treadwell_1</dc:creator>
      <dc:date>2001-08-28T16:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: percent cpu via ps auxw (berkely syntax)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570853#M857769</link>
      <description>The percentage CPU usage is only measured during the most recen scheduling interval and is not a useful measurement of the cumulative percentage of CPU across all processes.  ps has no history and is a simple snapshot once through the process tables.&lt;BR /&gt;&lt;BR /&gt;A better choice is to sort the process by accumulated CPU time as in:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -eo time,ruser,args | sort | more&lt;BR /&gt;&lt;BR /&gt;To better see the relationship of all processes to each other, you can use Glance or top (Glance is much more useful). You can sort the interesting processes by CPU usage.</description>
      <pubDate>Sun, 02 Sep 2001 18:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/percent-cpu-via-ps-auxw-berkely-syntax/m-p/2570853#M857769</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-09-02T18:54:29Z</dc:date>
    </item>
  </channel>
</rss>

