Memory Utilization

Hi,

Is it possible to obtain physical memory and swap memory available in HP-UX server.

I tried using "top" command but i'm not able to grep the memory part exclusively...

Thanks....

ant:/home/vbe $ cat /var/adm/syslog/syslog.log|grep Physi
Apr 29 19:05:34 2A:ant vmunix:     Physical: 8388608 Kbytes, lockable: 6464976 Kbytes, available: 7426824 Kbytes
ant:/home/vbe $ swapinfo -tam
             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        4000       0    4000    0%       0       -    1  /dev/vg00/lvol2
dev        4096       0    4096    0%       0       -    1  /dev/vg00/swap3
dev        4096       0    4096    0%       0       -    0  /dev/esvg01/lvol2
reserve       -    1257   -1257
memory     6326    1376    4950   22%
total     18518    2633   15885   14%       -       0    -

If you have "HP glance", there are command line options to find all this information and output to file.

Thanks for the help.

Will it be posible to have the disk usage of individual directories also under a file system, ??

An example of individual directory size of filesystem "/usr" sorted to reverse order of size in kilobytes.

find /usr/ -xdev -type d -exec du -kxs {} \;|sort -n -r |pg

The "-xdev" switch to "find" and the "-x" switch to "du" confine the figures to the current filesystem.

There is usually a slight discrepancy between the figures from "bdf" and "du".