• show top memory consumption processes in AIX

    From Marco Moock@21:1/5 to All on Wed Jul 9 11:32:24 2025
    Hello!

    I administer AIX machines without top/htop and I cannot install any
    software on them, so I would like to only use AIX own tools.

    Is there a way to get all processes sorted by their memory consumption?

    I can do that for CPU usage in nmon, but don't see any way to sort it
    for memory.

    --
    kind regards
    Marco

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John McCue@21:1/5 to Marco Moock on Wed Jul 9 18:11:21 2025
    Marco Moock <mm@dorfdsl.de> wrote:
    Hello!

    I administer AIX machines without top/htop and I cannot install any
    software on them, so I would like to only use AIX own tools.

    Is there a way to get all processes sorted by their memory consumption?

    I have been away from AIX for a couple of years :(

    But you can try something like this:

    ps -wwwxo %mem,pid,command | sort

    Instead of '%mem' you can try 'mem'.

    That is from memory, the AIX ps(1) manual is available
    on-line but what I have here should be close to what
    you need.


    I can do that for CPU usage in nmon, but don't see any way to sort it
    for memory.


    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John McCue@21:1/5 to John McCue on Wed Jul 9 18:15:30 2025
    John McCue <jmclnx@gmail.com.invalid> wrote:
    Marco Moock <mm@dorfdsl.de> wrote:
    Hello!

    <snip>

    I have been away from AIX for a couple of years :(

    But you can try something like this:

    ps -wwwxo %mem,pid,command | sort

    Found my old notes :), try this:

    ps -Af -o mem,pid,user,args:w | sort

    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)