Operating System - HP-UX
1837893 Members
2921 Online
110122 Solutions
New Discussion

Re: Top versions on HP-UX

 
Pyers Symon
Advisor

Top versions on HP-UX

I am trying to get to grips with discrepencies between versions of top on HP
boxes.

The box used runs HP-UX 11.11 Patched to July 05.


The supplied version of top gives wildly differing values for the process sizes when compared
with the version of top from the Software Porting Centre (http://hpux.connect.org.uk/hppd/hpux/Sysadmin/top-3.6alpha9/)

For instance an Oracle process:

HP supplied top:

0 ? 4600 oracle 156 24 331M 9972K sleep 7:53 0.20 0.20 ora_arc1_hpaded

Top from Software Porting Centre (SPC)

? 4600 oracle 156 4 18M 2493K sleep 7:52 0.19% oracle

I got similar results from top-3.4.1 (so it is not restricted to the alpha version)


Looking at the code the SPC version tots up the Text, Data and Stack sizes:

/* what we consider to be process size: */
#define PROCSIZE(pp) (P_TSIZE(pp) + P_DSIZE(pp) + P_SSIZE(pp))

and uses that.

Does anybody know what the HP supplied version uses?

The man page states
"SIZE Total virtual size of the process in kilobytes. This includes virtual sizes of text, data, stack, mmap regions, shared
memory regions and IO mapped regions may also include virtual memory regions shared with other processes."

Is the discrepancy between the two outputs solely due to the extra "bits" that the HP supplied version uses because it is
a massive difference (18M v 331M)

7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: Top versions on HP-UX

Hi Pyers,

You can find the version of "top" by,

#what `which top`
/usr/bin/top:
top.c $Date: 2004/01/28 15:25:27 $Revision: r11.11/11 PATCH_11.11 (PHCO_29072)
$Revision: @(#) all R11.11_BL2004_0203_1 PATCH_11.11 PHCO_29072
Tue Feb 3 08:35:29 PST 2004 $

What is your version ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Pyers Symon
Advisor

Re: Top versions on HP-UX

what /usr/bin/top
/usr/bin/top:
top.c $Date: 2004/01/28 15:25:27 $Revision: r11.11/11 PATCH_11.11 (PHCO_29072)
$Revision: @(#) all R11.11_BL2004_0203_1 PATCH_11.11 PHCO_29072
Tue Feb 3 08:35:29 PST 2004 $

How does this correlate to the SPC version?
Robert-Jan Goossens
Honored Contributor

Re: Top versions on HP-UX

Hi,

check if you have the latest top patch installed PHCO_32466.

Best regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: Top versions on HP-UX

Shalom,

Top is a very basic tool that has known problems. Depending on what you are trying to achieve, you may be better off with a different tool like glance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pyers Symon
Advisor

Re: Top versions on HP-UX

I know about the other tools. Just curious about top :-))
Arunvijai_4
Honored Contributor

Re: Top versions on HP-UX

Hello,

As Robert specified, do you have PHCO_32466 installed on your machine ?

http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_32466&context=hpux:800:11:11

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Pyers Symon
Advisor

Re: Top versions on HP-UX

I now do indeed! Seems to have the same behaviour.
what /usr/bin/top
/usr/bin/top:
top.c $Date: 2005/02/06 22:22:42 $Revision: r11.11/12 PATCH_11.11 (PHCO_32466)
$Revision: @(#) ps R11.11_BL2005_1124_1 PATCH_11.11 PHCO_32466

The HP version is measuring something very very different to to SPC version.