<?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 Top process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368943#M867579</link>
    <description>Hey,&lt;BR /&gt;&lt;BR /&gt;In my application, I have to get a list of the top 10 processes and their following values:-&lt;BR /&gt;NAME,PID,PPID,%CPU,REAL UID,PRI,STARTTIME,USERTIME,EFF.UID,EFF.GID,STATUS,SOCK.REQ.RECVD,SOCK.REQ.SENT,SIG.RECVD,RPAGES FOR MM,VPAGES FOR MM,RPAGES FOR IO,VPAGES FOR IO&lt;BR /&gt;&lt;BR /&gt;Anybody know how to retrieve these values in a simple manner(i.e. using the command top with any options) ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sathish&lt;BR /&gt;</description>
    <pubDate>Tue, 31 Aug 2004 08:39:23 GMT</pubDate>
    <dc:creator>Sathish_3</dc:creator>
    <dc:date>2004-08-31T08:39:23Z</dc:date>
    <item>
      <title>Top process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368943#M867579</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;In my application, I have to get a list of the top 10 processes and their following values:-&lt;BR /&gt;NAME,PID,PPID,%CPU,REAL UID,PRI,STARTTIME,USERTIME,EFF.UID,EFF.GID,STATUS,SOCK.REQ.RECVD,SOCK.REQ.SENT,SIG.RECVD,RPAGES FOR MM,VPAGES FOR MM,RPAGES FOR IO,VPAGES FOR IO&lt;BR /&gt;&lt;BR /&gt;Anybody know how to retrieve these values in a simple manner(i.e. using the command top with any options) ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sathish&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Aug 2004 08:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368943#M867579</guid>
      <dc:creator>Sathish_3</dc:creator>
      <dc:date>2004-08-31T08:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Top process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368944#M867580</link>
      <description>This might help a bit:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# memtop - show top memory users and pid&lt;BR /&gt;# VSZ is in KB&lt;BR /&gt;echo "VSZ(KB)   PID RUSER    COMMAND"&lt;BR /&gt;UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 31 Aug 2004 08:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368944#M867580</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-08-31T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Top process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368945#M867581</link>
      <description>The XPG4 conformance - UNIX95 can get some values. Also ps -efl|grep process will also give information required.&lt;BR /&gt;&lt;BR /&gt;man ps, checl XPG4 conformance details.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -ef -C "process_name" -o "vsz,arg,ruser,stime,time" Will give&lt;BR /&gt;memory used by process - vsz&lt;BR /&gt;Arguments - arg&lt;BR /&gt;ruser - owner of the process&lt;BR /&gt;stime - start time(if more than 24 hrs, just the date)&lt;BR /&gt;time - time used. There are lot of options. check man page of ps&lt;BR /&gt;&lt;BR /&gt;For information on syscalls made by process, sockets, you may use tusc tool(trace unix system calls)&lt;BR /&gt;You can get tusc at &lt;A href="http://hpux.connect.uk.of" target="_blank"&gt;http://hpux.connect.uk.of&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;tusc -vfp "process_id"&lt;BR /&gt;lsof tool(list open files) will also give some details. &lt;BR /&gt;&lt;BR /&gt;lsof "process_id"&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Tue, 31 Aug 2004 08:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368945#M867581</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-08-31T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Top process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368946#M867582</link>
      <description>Hi Sathish,&lt;BR /&gt;&lt;BR /&gt;With 'top' you can use -n option to display the number of processes you want them to appear. Use -f option to redirect it to a file. However, you will not be able to get all these stats with top.&lt;BR /&gt;&lt;BR /&gt;You can use XPG4 version of 'ps' to get some more of the ones you want.&lt;BR /&gt;&lt;BR /&gt;For ex.,&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o 'pcpu pid ppid args' |sort -n&lt;BR /&gt;&lt;BR /&gt;will sort the output by percentage CPU. change the first field to whatever you want to get sorted. Again, you may not get all the stats that you need from ps.&lt;BR /&gt;&lt;BR /&gt;Look at the man pages of top and ps on what you can do with them.&lt;BR /&gt;&lt;BR /&gt;Stats related to SOCKETS are to be obtained from netstat which may have to be done seperately but you won't get them on per process basis. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 31 Aug 2004 08:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368946#M867582</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-08-31T08:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Top process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368947#M867583</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the "top" command implies the -n option for displaying only n lines &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Tue, 31 Aug 2004 08:59:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368947#M867583</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-08-31T08:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Top process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368948#M867584</link>
      <description>&lt;BR /&gt;Thanks for ur suggestions Sri, Franky, Rac and Geoff&lt;BR /&gt;&lt;BR /&gt;I've got all but the below information:&lt;BR /&gt;USERTIME &lt;BR /&gt;STATUS  &lt;BR /&gt;SOCK.REQ.RECVD  &lt;BR /&gt;SOCK.REQ.SENT  &lt;BR /&gt;SIG.RECVD  &lt;BR /&gt;RPAGES FOR MM  &lt;BR /&gt;VPAGES FOR MM  &lt;BR /&gt;RPAGES FOR IO  &lt;BR /&gt;VPAGES FOR IO&lt;BR /&gt;&lt;BR /&gt;Kindly share from your knowledge.&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;Sathish&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Aug 2004 09:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-process/m-p/3368948#M867584</guid>
      <dc:creator>Sathish_3</dc:creator>
      <dc:date>2004-08-31T09:41:18Z</dc:date>
    </item>
  </channel>
</rss>

