Calculating Memory - Does nobody know the answer?

Calculating Memory - Does nobody know the answer?

Post by Paul Redd » Thu, 02 May 2002 21:32:13



Hi,

I have been searching 'everywhere' for the answer to the folllowing
question,
and am coming to the conclusion that there isn't an answer. But... as
a
last resort I'll try it here again (even though I have seen many
similar appends
that don't seem to have been conclusive - to me anyway).

We have some 400+ application processes, and  we would like to know
what their cumulative real memory usage is?
or put even more simply, calculate the exact real memory used by a
process from a snapshot of the live system.

I have read many Forum threads, AIX Performance Guide on ps and svmon,
and I am not convinced of an exact method/formula for this?

Please tell me I'm wrong!

Paul.

 
 
 

Calculating Memory - Does nobody know the answer?

Post by Patrick Bab » Sat, 04 May 2002 19:44:32


As far as calculating cumulative realmem usage, afaik your best bet is
vmstat. Other than this, I'm not really sure what one would do.

Sorry I can't help more,
Patrick


Quote:> Hi,

> I have been searching 'everywhere' for the answer to the folllowing
> question,
> and am coming to the conclusion that there isn't an answer. But... as
> a
> last resort I'll try it here again (even though I have seen many
> similar appends
> that don't seem to have been conclusive - to me anyway).

> We have some 400+ application processes, and  we would like to know
> what their cumulative real memory usage is?
> or put even more simply, calculate the exact real memory used by a
> process from a snapshot of the live system.

> I have read many Forum threads, AIX Performance Guide on ps and svmon,
> and I am not convinced of an exact method/formula for this?

> Please tell me I'm wrong!

> Paul.


 
 
 

Calculating Memory - Does nobody know the answer?

Post by Hans-Joachim Ehler » Sat, 04 May 2002 20:06:37


Hi Paul,
have looked at "ps" ?

Hajo



Quote:> Hi,

> I have been searching 'everywhere' for the answer to the folllowing
> question,
> and am coming to the conclusion that there isn't an answer. But... as
> a
> last resort I'll try it here again (even though I have seen many
> similar appends
> that don't seem to have been conclusive - to me anyway).

> We have some 400+ application processes, and  we would like to know
> what their cumulative real memory usage is?
> or put even more simply, calculate the exact real memory used by a
> process from a snapshot of the live system.

> I have read many Forum threads, AIX Performance Guide on ps and svmon,
> and I am not convinced of an exact method/formula for this?

> Please tell me I'm wrong!

> Paul.

 
 
 

Calculating Memory - Does nobody know the answer?

Post by Todd Moriar » Sun, 05 May 2002 03:05:12




Quote:>Hi,

>I have been searching 'everywhere' for the answer to the folllowing
>question,
>and am coming to the conclusion that there isn't an answer. But... as
>a
>last resort I'll try it here again (even though I have seen many
>similar appends
>that don't seem to have been conclusive - to me anyway).

>We have some 400+ application processes, and  we would like to know
>what their cumulative real memory usage is?
>or put even more simply, calculate the exact real memory used by a
>process from a snapshot of the live system.

>I have read many Forum threads, AIX Performance Guide on ps and svmon,
>and I am not convinced of an exact method/formula for this?

>Please tell me I'm wrong!

>Paul.

svmon -Su will show you memory utilization by segment, and svmon -Pu will
show memory utilization by process
hope this helps-
Todd
 
 
 

Calculating Memory - Does nobody know the answer?

Post by Urban A. Haa » Wed, 08 May 2002 06:56:24


Paul,

You will have to use svmon and be educated as to how the system is
allocating memory. Unfortunately there is no one easy command to run.

It sounds like you want to know how much memory collectively is used by a
set of processes. But, you'll have to capture the set of processes using
svmon, and add the regions that are unique for each process and the regions
that are shared for each process. It's not a one command thing. You'll take
the report, add all of their private segments (data heaps and program
stacks), add the shared text (code) segment once, their shared memory
segments (between your program) once and it's up to you how much of the
shared library memory segment you'll want to include, since it's used by all
processes in the system.

A complex answer, but it can be done. You just need to take the time to do
the math.

Urban

--
Urban A. Haas
CEO - Urban Technology, Inc.
Minneapolis, MN  USA
Phone: (952) 595-8810    Fax: (952) 595-8710

Web: http://www.urbantechnology.com

This e-mail was composed of 100% recycled bits.




> >Hi,

> >I have been searching 'everywhere' for the answer to the folllowing
> >question,
> >and am coming to the conclusion that there isn't an answer. But... as
> >a
> >last resort I'll try it here again (even though I have seen many
> >similar appends
> >that don't seem to have been conclusive - to me anyway).

> >We have some 400+ application processes, and  we would like to know
> >what their cumulative real memory usage is?
> >or put even more simply, calculate the exact real memory used by a
> >process from a snapshot of the live system.

> >I have read many Forum threads, AIX Performance Guide on ps and svmon,
> >and I am not convinced of an exact method/formula for this?

> >Please tell me I'm wrong!

> >Paul.

> svmon -Su will show you memory utilization by segment, and svmon -Pu will
> show memory utilization by process
> hope this helps-
> Todd

 
 
 

1. to know DOS is to know Unix?

I just met a couple people at some dinner and one guy says that if you
know DOS, you know Unix because many of the commands are similar.  I
didn't want to be rude, so I sat there mildly amused, (half-baked, of
course :).

So anyway, I figured these are just another couple of lusers.  Ever
tried to awk anything in DOS?  My find command doesn't work right
either, no grep, no su, no xargs, what the hell?  Do I have a faulty
version of DOS or something?

I suppose if all you want to do is mkdir, rmdir and cd and maybe ping
something, you're okay, but I really can't think of much more you could
do.

Just thought I'd share that - hope y'all don't mind.  The level of
luserness is reaching too high a state for me to contain myself for much
longer.

Whew - I just found a really great Unix command that works at the DOS
prompt.  exit.  That's much better.

2. Samba "unable to open passdb database"

3. my routers broadcasts an arp request and nobody answers?

4. HELP: Trying to run apache

5. Nobody can answer me this one. help.

6. FIPSing NT?

7. Nobody has answered my question

8. G200 is supported by Xfree86

9. FTP-It must be a big problem since nobody is answering my plea

10. NNTP News probs. Nobody seems to know...

11. Can't believe nobody knows how to remove the taskbar!!

12. Nobody knows you when you're down & out

13. so nobody knows how to install a sound card?