1855852 Members
4045 Online
104107 Solutions
New Discussion

Re: swap menory

 
SOLVED
Go to solution
Cheung_2
Frequent Advisor

swap menory

I have checked ( by the command ???swap??? ) the swap memory is running so high , how can I increase the swapinfo memory ? Is there any pitfall if I increase it? Thx.
Andy
7 REPLIES 7
Rajeev  Shukla
Honored Contributor
Solution

Re: swap menory

You need to extend the swap size by adding one more device swap.
create a logical volume with contageous space and then add it in /etc/fstab and use swapon to activate the swap. You may even use sam for ease if you want so

Cheers
Rajeev
Niraj Kumar Verma
Trusted Contributor

Re: swap menory

Hi,

to the swap
# swapinfo -t

you can increas this using SAM --> Disk and File system --> Swap

-Niraj
Niraj.Verma@philips.com
Ravi_8
Honored Contributor

Re: swap menory

Hi,

you need to increase the swap

sam-->disk and file system -->logical volumes -->action, create, in file system field choose swap and priority as 1
never give up
T G Manikandan
Honored Contributor

Re: swap menory

#lvcreate -L size -n swap vgxx

vgxx--name of the volume group
L--size of the logical volume
n--logical volume name
vgxx is the volume group where you have enough space.
Edit the /etc/fstab file and add
/dev/vgxx/swap ... swap defaults 0 0
Activate the swap

#swapon -a
T G Manikandan
Honored Contributor

Re: swap menory

Cheung,

just to remind your profile has a very low average in the points system.

Assign points with bunnies.This should make the forums page look great!

Thanks
Cheung_2
Frequent Advisor

Re: swap menory

I would like to increase the swap , can i specify the swap on a path eg. /usr/swap instead of a whole volumn ? thx.
Andy
T G Manikandan
Honored Contributor

Re: swap menory

You can use swapon for that.
check the man pages of swapon.


YOu can do that like

#/usr/sbin/swapon -r 10000 -p 2 /paging