How much Swap memory do i have ?

here is the output of swapinfo command

==> swapinfo
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev     8192000       0 8184000    0%       0       -    1  /dev/vg00/swap
reserve       - 8184000 -8184000
memory  63284056 56268872 7015184   89%


==> swapinfo -tam
             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        8000       0    7992    0%       0       -    1  /dev/vg00/swap
reserve       -    7992   -7992
memory    61801   54960    6841   89%
total     69801   62952    6841   90%       -       0    -


Can you tell me how much FREE swap memory do i have and how do we calculate it ?

See free column under swapinfo -tam

Regards
Peasant.

I don't understand those numbers can you tell me in % and in KB or MBs

It says on the header mb and PCT
Those mean megabytes and %, respectively.

Regards
Peasant.

What is dev,, reserve, memory and total ? how are they different.

I need swap memory so which one of them has the swap info ?

If you are having issues, it is because you need to configure at least 1x RAM to swap space (or even more, depending).

It is because HPUX reserves swap space for every memory allocation.

This is a nice article explaining why and how to configure swap space on HPUX, it for SAP but can be applied in general.
SAP on HP-UX: Recommendations for swap and pseudo swap

And some further information about swapinfo command itself and it's output, and general HPUX memory handling.
HP-UX-Admin: [HPADM] RE: -SUMMARY- Clarification on swapinfo/glance output

Hope that helps
Regards
Peasant.

1 Like