1832651 Members
2651 Online
110043 Solutions
New Discussion

swap problem.

 
sandeepbodkhe_1
Advisor

swap problem.

Hi,

I have HpUX 11.11. just now i have added a new swap device from rotvg. i created /dev/vg00/swaplv but forgot to use -C flag for contigeous allocation. and did swapon on that lv.
now in swapinfo -tam , i can see the swaplv with priority 0 but it is not being utlized at all.

waht can be done now , either to remove or to use it.

pls. help

10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: swap problem.

>but it is not being utilized at all.

That's good. What does "swapinfo -tam" show?
sandeepbodkhe_1
Advisor

Re: swap problem.

Hi, Thanks for Response

Actualy swapinfo -tam shows
gjprod # swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 6 8186 0% 0 - 1 /dev/vg00/lvol2
dev 8192 6 8186 0% 0 - 1 /dev/vg00/lvol9
dev 8192 1522 6670 19% 0 - 0 /dev/vg00/swap3
dev 16384 0 16384 0% 0 - 0 /dev/vg00/swaplv
reserve - 5934 -5934
memory 9442 4524 4918 48%
total 50402 11992 38410 24% - 0 -
gjprod #

Dennis Handly
Acclaimed Contributor

Re: swap problem.

dev 08192 1522 06670 19% 0 - 0 /dev/vg00/swap3
dev 16384 0000 16384 00% 0 - 0 /dev/vg00/swaplv
reserve --- 05934 -5934
memory 9442 04524 04918 48%
total 50402 11992 38410 24%

Everything is fine. All of your device swap is on swap3, 1522. (I'm not sure why it isn't spread out on swaplv too?)

You may just have to have more swap pressure to see if it gets used.
Steve Steel
Honored Contributor

Re: swap problem.

Hi


I am not sure you needed more swap

look at
http://docs.google.com/View?docid=dc7s6mzr_56cgsg9g

swapinfo description and example...
Try
swapmem_on kernel paraemter set to 0

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Dennis Handly
Acclaimed Contributor

Re: swap problem.

>Steve: Try swapmem_on kernel parm set to 0

Why would you ever want to do this? On 11.31, the only color you can get is black. Why go against this on 11.11?
Steven E. Protter
Exalted Contributor

Re: swap problem.

Shalom,

You need to activate swap as usable on your system.

What should be happening is that swap is reserved when a process starts.

This is not happening, making your system potentially very unstable.

You have no data on swap use and therefore should not be creating new swap areas.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: swap problem.

> dev 8192 1522 6670 19% 0 - 0 /dev/vg00/swap3
> dev 16384 0 16384 0% 0 - 0 /dev/vg00/swaplv

The swap priority of these two devices is 0 while the other swap areas use a priority of 1. Therefore, all swap space on swap3 and swaplv will be used first, and when full, the other swap areas will be used. Note that your swap usage may only be associated with memory mapped files and no swap space is used at all for paging (which is good for performance).


Bill Hassell, sysadmin
sandeepbodkhe_1
Advisor

Re: swap problem.

Hi All,

Thnks for your responses !.

1) I know i have misconfigured a swaplv which is not a contigeous lv as required by swap

2)Later by Swapon command i attached to kernel for interleaving.

3) All swap devices are not listed under lvlnboot command. this is one way i am ensuring that it is misconfigured.

Now I need focus you guys for the procedure

1)to remove this swaplv
2)to add new swaplv.
Tim Nelson
Honored Contributor

Re: swap problem.

>>3) All swap devices are not listed under lvlnboot command. this is one way i am ensuring that it is misconfigured.

Only the primary swap ( typically small %, is configured/shows in lvlvboot -v)

>Now I need focus you guys for the procedure

>1)to remove this swaplv
comment out this lvol from /etc/fstab and reboot. Then cleanup this area.
>2)to add new swaplv.

BTW, how much RAM do you have ? 40GB of swap seems a waste in this configuration.

SKR_1
Trusted Contributor

Re: swap problem.

You should have swap Space double then that of physical Memory. So i think you should not need more swap space.


Thanks

SKR