AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  How to determine memory used by each process?

    Posted 07/23/08 12:50 PM

    Originally posted by: SystemAdmin


    Using some variation of "topas" or "ps" or anything else, how do I determine the amount of OS memory allocated to each process? "topas" is pretty useless because it only shows the first few characters of the process name, which is almost always ambiguous.

    I see in the "ps" man page the "RSS" column, which I think is what I want, but I can't figure out how to make "ps" give me that (perhaps because I can't figure out the "Berkeley" vs. "System V" option).
    #AIX-Forum


  • 2.  Re: How to determine memory used by each process?

    Posted 07/23/08 01:16 PM

    Originally posted by: orphy


    If you are mainly interested in process memory, try "svmon -P".

    As for ps, take another look at the man page. The Syntax section at the beginning tells you how to use the SysV ps (using "-"'s) and the BSD ps (no "-"'s). If you man ps and search for RSS, it will tell you which options will show you RSS.

    ps is a very powerful command so have fun.
    Orphy
    #AIX-Forum


  • 3.  Re: How to determine memory used by each process?

    Posted 07/23/08 07:25 PM

    Originally posted by: SystemAdmin


    The "-" vs. "" reminder was helpful. I had known that before, but it slipped my mind. Piping Berkeley ps output into sort will do for now.

    Running "svmon" gave me an odd error. I can't find it in my path ("which svmon"), but running it fails immediately with "permission denied". No big deal, "ps" gives me what I need, I think.
    #AIX-Forum


  • 4.  Re: How to determine memory used by each process?

    Posted 07/23/08 01:43 PM

    Originally posted by: alethad


    Have you taken a look at nmon? It will give you the top ten processes but I believe you can adjust that.
    It may be more info than you want but it's free and so is the analyser that goes with it. Well worth checking into.
    #AIX-Forum


  • 5.  Re: How to determine memory used by each process?

    Posted 07/23/08 01:44 PM

    Originally posted by: hwyguy


    'ps aug' will give you RSS in column 6.

    Hope this helps!
    #AIX-Forum