Pages

Monday, November 28, 2011

Available, used and free memory in HP UX

To see how much memory is consumed in HP UX use swapinfo:

# swapinfo -tam
            Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev       16368    1252   15116    8%       0       -    1  /dev/vg00/lvol2
reserve       -   15116  -15116
memory    16354   15707     647   96%
total     32722   32075     647   98%       -       0    -

The example above shows all devices (-a) in MB (-m) and adds a total (-t) line at the end with the sum of all memory devices. It shows a pretty heavy memory usage.