1834693 Members
2682 Online
110069 Solutions
New Discussion

free swap on HPUX

 
Amith_2
Frequent Advisor

free swap on HPUX


I would like to know the command used to find out the free swap space in the server.

I am expecting the following outputs for the command;

freeswap memory and total swap memory
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: free swap on HPUX

Hi,

# swapinfo -tam

Regards,
Robert-Jan
Michael Tully
Honored Contributor

Re: free swap on HPUX

You could use vmstat which is quite confusing, but either glance or swapinfo should do it.

# /opt/perf/bin/glance -m

or

# swapinfo -tam
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: free swap on HPUX

#swapinfo -ta

this should give the information about swap space.

One thing to note is that the reserve column which tells you the amount of Kb reserved in swap but not used.

Any process that is to execute in memory would reserve swap.
Geoff Wild
Honored Contributor

Re: free swap on HPUX

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 74 950 7% 0 - 1 /dev/vg00/lvol2
dev 20000 4 19996 0% 0 - 2 /dev/vg52/lvswap
dev 6000 5 5995 0% 0 - 2 /dev/vg62/lvswap
reserve - 7645 -7645
memory 6326 1619 4707 26%
total 33350 9347 24003 28% - 0 -

man swapinfo for more info.

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bharat Katkar
Honored Contributor

Re: free swap on HPUX

Hi There,
I think this should be sufficient:
# swapinfo -tam
Regards,



You need to know a lot to actually know how little you know