Operating System - HP-UX
1831641 Members
1901 Online
110027 Solutions
New Discussion

how much memory does he want?

 
steven Burgess_2
Honored Contributor

how much memory does he want?

Hi

I've been asked to look at the mib2agt process as it appears to be taking up a lot of memory on one of our systems.

There is a know issue (and patch)

The questions is regarding how to see how much mem the process is using

i'm running the following command to check this

UNIX95= ps -e -o ruser,vsz,state,pid,args|sed '1d'|sort -rnk2 |grep mib2agt| more

this returns

root 966952 S 853 /usr/sbin/mib2agt

the definition for vsz is

The size in kilobytes (1024 byte units) of the
core image of the process.

Am i correct in my calculation thinking this process is using almost a meg of memory
T
hanks in advance

Steve



take your time and think things through
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: how much memory does he want?

Actually it's close to 1GB. By definition, vsz is "the size of the process in virtual memory in kilobytes as a decimal integer".

steven Burgess_2
Honored Contributor

Re: how much memory does he want?

SK

Thanks for the reply, i initially looked and thought, thats nearly a gig, but though it to be unbelievably high

ok

I understand the concept of virtual memory, but, at the moment the process from the UNIX95 command
VSZ
root 68 16 11722 grep mib2agt

Then from glance

mib2agt 853 1 154 root 0.0/ 0.0 0.0 0.0/ 0.0 107.5mb


whats RSS?

Whats the difference in the 2 figures

Thanks in advance

Steve
take your time and think things through
Steven Gillard_2
Honored Contributor

Re: how much memory does he want?

RSZ = Resident set size
VSZ = Virtual set size

RSZ is a subset of VSZ - the portion of the processes memory which is 'resident' in physical memory (ie not paged out). VSZ is the total size, including resident and non-resident pages.

These values are totals, obtained by adding up the memory utilisation of the processes various memory segments (of which there can be lots). Its not uncommon for glance and ps to report slightly different results. For more detail get glance to give you a memory report for that process - you will then see a list of all the processes memory segments.

An unpatched mib2agt process is a well known memory leaker on HPUX. Once you've got the SNMP agent patch installed everything will be fine.

Regards,
Steve
harry d brown jr
Honored Contributor

Re: how much memory does he want?

Steven,

That's not a memory LEAK, that's a memory SIEVE. That warrant's an immediate patch install.

live free or die
harry
Live Free or Die