Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

UNIX95=1 command concern

Regular Advisor

UNIX95=1 command concern

Hello Folks,

I have two Doubt

1)I used the below command for find out the high process (24889).
In UNIX95 command it showing 20.53 but in TOP 45.84% showing for same PID 24889
is there any differences on that.

UNIX95=1 ps -e -o pcpu,pid,ppid,user,args | sort -rn | head -20
20.53 24889 24880 oracle oracleagentdb (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
10.46 9312 1 oracle /u01/app/oracle/product/9.2/bin/tnslsnr LISTENER -inherit
5.21 6162 1 oracle oracleagentdb (LOCAL=NO)
1.27 4671 4670 root /opt/ignite/bin/print_manifest


1 ? 24889 aspire 233 22 2440M 34168K run 5:30 45.92 45.84 oracleagentdb
2 ? 9312 oracle 154 20 1610M 1591M sleep 37167:15 10.60 10.58 tnslsnr
4 ? 15246 oracle 154 20 2407M 4100K sleep 0:00 24.37 3.39 oracleagentdb
5 ? 43 root 152 20 7456K 7456K run 12346:24 1.64 1.63 vxfsd
1 ? 15050 aspire 149 22 32K 32K zomb 0:00 1.19 0.73 ssh
2 ? 7881 root 127 20 48180K 16604K sleep 2683:45 0.66 0.66 scopeux
3 ? 7795 root -16 20 40572K 18808K run 22759:32 0.61 0.61 midaemon


2).For the memory usage is used the below command, but the thing is what is 1592700and 9312 in the first and second column

$ UNIX95=1 ps -e -o vsz,pid,ppid,user,args | sort -rn | head -20
1592700 9312 1 oracle /u01/app/oracle/product/9.2/bin/tnslsnr LISTENER -inherit
906540 21807 1 root /opt/tivoli/tsm/client/ba/bin/dsmc sched
531048 7544 1 root /usr/sbin/snmpdm
476800 8014 1 root /opt/VRTSsal/bin/vxsald
121152 16861 1 oracle ora_dbw0_dm2c2hdb
119872 16879 1 oracle ora_mmon_dm2c2hdb
119360 16881 1 oracle ora_mmnl_dm2c2hdb

Can any body clarrify this one, Thanks in advance!!!!!!!
James R. Ferguson
Acclaimed Contributor

Re: UNIX95=1 command concern


There will always be differences between tools like this. For HP-UX, probably the best performance measurement tool is 'glance' since it is specifically architected for the HP-UX kernel.

In particular, for memory, measurement of a process's memory footprint needs to account (or not) for shared memory segments and/or shared library components. Consider: do you count, or not, shared objects for one or for all processes sharing them (?).

You are best if you choose one tool and profile your measurements with that tool. Don't try to cross-compare what two tools report for the same process.



Honored Contributor

Re: UNIX95=1 command concern

Re: 2)

according to your criteria selected by command:
1592700 = vsz (virtual size)
9312 = pid (process id)

I view virtual size is the footprint of everything being used by memory for that process. Example, even if another process instantiated a call to a program block segment, and you're just getting a free ride on that code block because it was already in memory, the virtual size would still count it in that calculation. Other examples would included shared memory, etc. However, that is the conclusion I've come to by observation, and is not comprehensive, and possibly not even correct. Others may have a clearer definition of what this entails.
We are the people our parents warned us about --Jimmy Buffett
Dennis Handly
Acclaimed Contributor

Re: UNIX95=1 command concern

(It would help if you had a better subject. Your question is about ps(1), not the UNIX95 environment variable.)