1834660 Members
2567 Online
110069 Solutions
New Discussion

root swap size

 
John_1005
Advisor

root swap size

Hi All,

I am looking for "root swap" size of this system. Is it the size of dev in swapinfo -tam?
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: root swap size

Yes

# lvdisplay /dev/vg00/lvol2
# swapinfo -tam

Regards,
Robert-Jan
A. Clay Stephenson
Acclaimed Contributor

Re: root swap size

I have no idea what "root swap" is; it's not a standard UNIX term. What you probably mean is the size of primary swap.
If it ain't broke, I can fix that.
Rick Garland
Honored Contributor

Re: root swap size

As root, execute the following command;
# swapinfo -atm

This will tell you what swaps exist (if more than 1 it will tell you so and where), what sizes, how used, etc...


Sean OB_1
Honored Contributor

Re: root swap size

swapinfo -atm
or
lvdisplay /dev/vg00/lvol2
will display the primary swap space size.

Stephen Keane
Honored Contributor

Re: root swap size

lvlnboot -v

will tell you on which logical volume and disk the primary swap is on, in case it isn't the default of /dev/vg00/lvol2.

baiju_3
Esteemed Contributor

Re: root swap size

Hi,

swapinfo -tam will list all the configured swap .

You can find the size of configured swaps in

Second column of swapinfo o/p which is "Mb Available"

If you need to find out size of primary swap then do lvlnboot -v and see whcih LV is configured as Primary swap (primary swap is the swap available to system during system booting )".

Thanks,
BL.


Good things Just Got better (Plz,not stolen from advertisement -:) )
Kent Ostby
Honored Contributor

Re: root swap size

Also, keep in mind that HP recommends that your total disk swap = 2 x RAM.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Basheer_2
Trusted Contributor

Re: root swap size

Hi Anand
swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2560 112 2448 4% 0 - 1 /dev/vg00/lvol2
reserve - 1296 -1296
memory 1533 570 963 37%
total 4093 1978 2115 48% - 0 -

From this Output Look at the first line starts with dev, this is the primary swap.
In My system PCT USED column is > 0% (4%), this means my system is swapping. This also means There is not enough RAM in the system. I can add secondary dev swap. There are 2 kinds of swap 1) dev swap 2) FS swap.
2 ways to stop swapping. 1) Add more RAM 2) Reduce Process.

Thanks
Basheer