Re: Urgent : total memory usage

From: Khalid Benhayoune (benhayoune_k@YAHOO.FR)
Date: Tue Jan 21 2003 - 10:48:46 EST


Thank you very much.

Should I consider the value returned bu svmon -G for the "virtual" colonne
as the amount memory (RAM) used by all the system ? What's for the "free"
colonne which is always very low ?

Thanks.

-----Message d'origine-----
De : IBM AIX Discussion List [mailto:aix-l@princeton.edu]De la part de
Greenn, Simon
Envoyé : mardi 21 janvier 2003 12:22
À : aix-l@princeton.edu
Objet : Re: Urgent : total memory usage

I did see the script; I just cut it from my reply to save space.

The first command ("ps -ef|...") gives you a list of each command that is
running. No problem there per se.

The problem comes when you run svmon -C <command name>

Now, for each individual command, the "Virtual" figure at the top is
accurate. However, it is quite likely that two entirely different commands
will be sharing some parts of memory. This would normally be executables.
By adding up the figures, you are counting these shared portions of memory
multiple times.
Try running svmon -C for a couple of commands, and look at the SHARED
section at the end. The Vsid is a unique identifier and you will find
examples of some of these which are used by many different commands.

If you just want to see what one particular command is doing, then svmon -C
is OK.
If you want to look at the whole system, then you should use svmon -G.

You could sum the Virtual figure from the EXCLUSIVE stanza, but then you
wouldn't be including the shared memory at all. Unless you have some
requirement you haven't mentioned, it's pointless anyway, when svmon -G does
what you ask for in one simple command.

Simon Green
Philip Morris ITSC Europe

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l
<http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2> &r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/
<http://www.faqs.org/faqs/aix-faq/>

N.B. Unsolicited email from vendors will seldom be appreciated.

  -----Original Message-----
From: Khalid Benhayoune [mailto:benhayoune_k@YAHOO.FR]
Sent: 21 January 2003 111:56
To: aix-l@Princeton.EDU
Subject: Re: Urgent : total memory usage

Thank you for your reply.

I do not know if you saw the script or not, but I use "svmon -C" which
counts normally once the shared segments for all the processes runing the
command passed in parameter. I do that for all commands run in the system
and then I sum the "virtual" colonne obtained for each command.

what is wrong with that ? Do you have another solution ? I really need help.

K.Benhayoune
System engineer/DBA
Phone : 212-63-61-70-97
Address : Rue 76, n° 14, Bd Oum Rabia, EL OULFA - CASABLANCA

  _____

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail <http://fr.mail.yahoo.com>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:30 EDT