Operating System - HP-UX
1820547 Members
5361 Online
109626 Solutions
New Discussion юеВ

Re: How can I see the total amount of my SWAP partition?

 
Marcelo Muzilli_1
Occasional Contributor

How can I see the total amount of my SWAP partition?

Hi all,

please help me with this question: how can I see the total amount of the swap partition declared in a machine?

Best regards,

Marcelo Muzilli
5 REPLIES 5
Martin Johnson
Honored Contributor

Re: How can I see the total amount of my SWAP partition?

swapinfo -a

See man page on swapinfo.

HTH
Marty
Anu Mathew
Valued Contributor

Re: How can I see the total amount of my SWAP partition?

Hi,

swapinfo -td

Refer man swapinfo for more info.

Thanks

~AM
James R. Ferguson
Acclaimed Contributor

Re: How can I see the total amount of my SWAP partition?

Hi:

# swapinfo -tam

Regards!

...JRF...
MANOJ SRIVASTAVA
Honored Contributor

Re: How can I see the total amount of my SWAP partition?

here is a simple C program that iI got from the forums whihc can be comipled and can give o/p as :


Memory Stat total used avail %used
physical 32764.0 8058.4 24705.6 25%
active virtual 531.3 128.9 402.4 24%
active real 597.0 136.0 461.0 23%
memory swap 26522.5 3738.2 22784.3 14%
device swap 2378.0 2365.5 12.5 99%


I ahve attached the script

Manoj Srivastava
fg_1
Trusted Contributor

Re: How can I see the total amount of my SWAP partition?

Marcelo

swapinfo -tam.

This will show all your swap area's defined.

GL.