<?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: ps command and %CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475653#M212522</link>
    <description>Hi Oliva&lt;BR /&gt;&lt;BR /&gt;You will have more than 100% CPU depending on how many CPUs you have.  If you have 8 CPUs, you can run up to 800%.&lt;BR /&gt;&lt;BR /&gt;The UNIX95 variable is set to enable XPG4 compatibility with certain commands.  See 'man ps' for more information&lt;BR /&gt;&lt;BR /&gt;Keith</description>
    <pubDate>Tue, 01 Feb 2005 09:09:41 GMT</pubDate>
    <dc:creator>Keith Bryson</dc:creator>
    <dc:date>2005-02-01T09:09:41Z</dc:date>
    <item>
      <title>ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475645#M212514</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like monitoring some proceses and I need to know the %CPU used.&lt;BR /&gt;With Solaris I can used the ps -aux command but it doesn't display %CPU field on HP-UX...&lt;BR /&gt;&lt;BR /&gt;Someone can help me ?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 01 Feb 2005 08:29:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475645#M212514</guid>
      <dc:creator>OLIVA_1</dc:creator>
      <dc:date>2005-02-01T08:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475646#M212515</link>
      <description># /usr/ucb/ps -aux | more&lt;BR /&gt;USER       PID %CPU %MEM   SZ  RSS TT       S    START  TIME COMMAND&lt;BR /&gt;root      1617  2.1 22.8926424916624 ?        S   Jan 26 1949:14 /opt/eh55/bin/sys/&lt;BR /&gt;root      5252  0.1  0.1 1816 1344 pts/1    O 13:30:28  0:00 /usr/ucb/ps -aux&lt;BR /&gt;root         3  0.1  0.0    0    0 ?        S   Jan 26 15:20 fsflush&lt;BR /&gt;eh        1618  0.1  2.310068892960 ?        S   Jan 26 12:15 /opt/eh55/bin/sys/&lt;BR /&gt;root       463  0.0  0.312944 8992 ?        S   Jan 26  5:50 /opt/VRTSvmsa/jre/&lt;BR /&gt;root      2841  0.0  0.1 5840 2336 ?        S 13:08:40  0:00 /usr/local/sbin/ss&lt;BR /&gt;root      5251  0.0  0.1 1248  992 pts/1    S 13:30:28  0:00 more&lt;BR /&gt;root         0  0.0  0.0    0    0 ?        T   Jan 26  0:00 sched&lt;BR /&gt;root         1  0.0  0.0  888  368 ?        S   Jan 26  2:26 /etc/init -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like the field %CPU&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 01 Feb 2005 08:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475646#M212515</guid>
      <dc:creator>OLIVA_1</dc:creator>
      <dc:date>2005-02-01T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475647#M212516</link>
      <description>Use top instead.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 08:35:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475647#M212516</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-01T08:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475648#M212517</link>
      <description>Hi,&lt;BR /&gt;the top command in hpux can tell you the % usage of a process.&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Tue, 01 Feb 2005 08:35:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475648#M212517</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-02-01T08:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475649#M212518</link>
      <description>I know top command displays %CPU... but I need a command which could be used in a shell script. Indeed I need to follow a process for a week.</description>
      <pubDate>Tue, 01 Feb 2005 08:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475649#M212518</guid>
      <dc:creator>OLIVA_1</dc:creator>
      <dc:date>2005-02-01T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475650#M212519</link>
      <description>Hi again,&lt;BR /&gt;then try customizing, e.g.:&lt;BR /&gt;# UNIX95= ps -eo comm -o pcpu&lt;BR /&gt;&lt;BR /&gt;notice the space before the ps comand. Consult the man page for ps.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Tue, 01 Feb 2005 08:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475650#M212519</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-02-01T08:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475651#M212520</link>
      <description>Thanks John !!!&lt;BR /&gt;&lt;BR /&gt;It works properly.&lt;BR /&gt;Could you please explain me what does ti mean "UNIX95="  ?&lt;BR /&gt;&lt;BR /&gt;And what I have some results up to 100%... for instanca I have a process which used 201.5 % of CPU ?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 01 Feb 2005 08:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475651#M212520</guid>
      <dc:creator>OLIVA_1</dc:creator>
      <dc:date>2005-02-01T08:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475652#M212521</link>
      <description>Oliva --&lt;BR /&gt;&lt;BR /&gt;I use the following:&lt;BR /&gt;&lt;BR /&gt;ps -ef | cut -c42-80 | sort -nr | head&lt;BR /&gt;&lt;BR /&gt;This will list the top 10 processes by CPU from the PS command.&lt;BR /&gt;&lt;BR /&gt;I'll use it a few times in a row to see what's eating the CPU right now.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 09:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475652#M212521</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-02-01T09:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475653#M212522</link>
      <description>Hi Oliva&lt;BR /&gt;&lt;BR /&gt;You will have more than 100% CPU depending on how many CPUs you have.  If you have 8 CPUs, you can run up to 800%.&lt;BR /&gt;&lt;BR /&gt;The UNIX95 variable is set to enable XPG4 compatibility with certain commands.  See 'man ps' for more information&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Tue, 01 Feb 2005 09:09:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475653#M212522</guid>
      <dc:creator>Keith Bryson</dc:creator>
      <dc:date>2005-02-01T09:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: ps command and %CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475654#M212523</link>
      <description>Hi,&lt;BR /&gt;In this case, when UNIX95 is not set, the ps command behaves in hpux as laid down for hpux.&lt;BR /&gt;Setting UNIX95 means using standard features of various unix flavours enabled by a group of persons referred to as the Xopen Posix Group. This means changing the whole behaviour of the ps command, gaining   access to non-hp standard features.&lt;BR /&gt;However, setting UNIX95 may influence  other commands then just ps, so I would recommend that you execute it only as specified with the space after the equal sign - if not, it is difficult to describe the influence on other commands.&lt;BR /&gt;I am sorry to say that I cannot explain  why some commands use 200% cpu: is it a  multiprocessor system where commands may take resources from more than a single cpu?&lt;BR /&gt;Perhaps others har better explanations.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 09:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-command-and-cpu/m-p/3475654#M212523</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-02-01T09:26:04Z</dc:date>
    </item>
  </channel>
</rss>

