Operating System - HP-UX
1832857 Members
3414 Online
110047 Solutions
New Discussion

Re: Secondary swap not active

 
Venky_1
Frequent Advisor

Secondary swap not active

Hi ,

On HP 11i server, 24GB of secondary swap is defined but there is no activity on these lvols. I tried to start auxiliary swap explicitly as well but no luck.

Server has latest patch bundles of Dec'2003
Any suggestions.

Thanks
Venky
Winners never quit and quitters never win
18 REPLIES 18
Ivajlo Yanakiev
Respected Contributor

Re: Secondary swap not active

did you swapon your secondary swap ?
Stf
Esteemed Contributor

Re: Secondary swap not active

Hello,

# swapinfo -d

if you don't see your secondary swap swapon it...

Stf ;-)

Venky_1
Frequent Advisor

Re: Secondary swap not active

secondary swap is available ( 24GB in multiples of 4GB ) but it is not being used.

Thanks
Venky
Winners never quit and quitters never win
bhavin asokan
Honored Contributor

Re: Secondary swap not active

hi,
can you post the

swapinfo -tam output.

regds,
Ivajlo Yanakiev
Respected Contributor

Re: Secondary swap not active

Sec swap is useing only if primary swap is full :)

Massimo Bianchi
Honored Contributor

Re: Secondary swap not active

Hi,
what are you kernel parameters ?

please post "kmtune | grep swap"
and
"swapinfo -ma"


HTH,
Massimo


Ralph Grothe
Honored Contributor

Re: Secondary swap not active

I'd say you're lucky if there's no activity on your secondary device swap.
As someone already said it should only be used after the primary device has been used up.
Or did you intend some sort of interleaving operation by assigning it the same priority?
Madness, thy name is system administration
Nguyen Anh Tien
Honored Contributor

Re: Secondary swap not active

Swap size ti limited by 3 parameter:
maxswapchunks, swchunk and DEV_BSIZE
The formular is
Swap size: swapchunks x swchunk x DEV_BSIZE
(default DEV_BSIZE:1024bytes).
For Example:
You create 1GB for swap space. and you set:
swapchunks:256
swchunk:2048
then
Swap size=256x2048x1024=512MB
Because of setting, only 512MB swap space can used. If you want to use the other 512MB
swapchunks need to be increased to 521

(you can read "HP_UX Performance and Tuning H4262S A.00" at page 8-17)
HP is simple
Venky_1
Frequent Advisor

Re: Secondary swap not active

Hi ,

Please find attached txt file for requested details.

Thanks
Winners never quit and quitters never win
Ralph Grothe
Honored Contributor

Re: Secondary swap not active

I'm not sure, but how come that all the other swap devices have got priority 0.
I think you should change the attribute pri= in your fstab to something meaningful.
But I'm afraid to release your swap you need to reboot.
Madness, thy name is system administration
Pete Randall
Outstanding Contributor

Re: Secondary swap not active

It's obvious from your swapinfo output that none of your swap space is being used. This is a good thing. It means that you're using memory instead of slow, inefficient swap disk space.


Pete

Pete
Massimo Bianchi
Honored Contributor

Re: Secondary swap not active

Hi,
looks like you are all right.

swap is not used because you do not need it.

Probably you are working in memory, and that's good.


WHat are your applications ?

And WHY do you think that you have to use the swap ? They are avaiable (cfr in swapinfo output), but not in use, since you are not requesting very much RAM.


HTH,
Massimo
Ralph Grothe
Honored Contributor

Re: Secondary swap not active

Besides, Pete is totally to agree to.
You *don't* want to see any swap usage.
Madness, thy name is system administration
Venky_1
Frequent Advisor

Re: Secondary swap not active

As swap lvols are not in use, server is getting stuck due to physical memory ( 12 GB ) exhaustion as it is hitting 100%.
Winners never quit and quitters never win
SupraTeam
Advisor

Re: Secondary swap not active

Hello,
did you defin kernel parameter :
swapmem_on


Venky_1
Frequent Advisor

Re: Secondary swap not active

Yes, it is already defined as mentioned earlier through attached txt file.
Winners never quit and quitters never win
Bill Hassell
Honored Contributor

Re: Secondary swap not active

"As swap lvols are not in use, server is getting stuck due to physical memory ( 12 GB ) exhaustion as it is hitting 100%."

HP-UX is a virtual memory system so using all of physical memory is never a problem. Processes will be deactivated and then rolled out to the swap area as needed. 24Gb is an enormous amount of swap space and will likely never be used. Since nothing is rolling out to the swap area, processes that are failing with memory problems are most likely failing because they are only 32bit programs that need more memory than they can possibly address, or due to shared memory fragmentation in 32bit shared memory. These will help a lot in understanding the limitations of 32bit programs:

ftp://eh:spear9@hprc.external.hp.com/memory.htm

http://docs.hp.com/hpux/onlinedocs/os/memwn1_4.pdf


http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/os/11i/mem_mgt.html&searchterms=5965-4641&queryid=20030128-153709

http://www1.itrc.hp.com/service/cki/search.do?category=c0&docType=EngineerNotes&searchString=RCMEMKBAN00000027&search.y=12&search.x=20&mode=id&admit=-682735245+1102701301380+28353475&searchCrit=allwords

The last reference (shared memory) may require a software support contract in order to access.


Bill Hassell, sysadmin
Sridhar Bhaskarla
Honored Contributor

Re: Secondary swap not active

Venky,

How did you determine that your memory was exhausted?. What tool did you use?. Post your 'vmstat 2 2' output. Look at the 'free' column and multiply it with 4 to get the free mem in KB.

I believe you are getting confused with the 'memory' line in your 'swapinfo' output. It's not to be confused with the memory used. Most likely you haven't changed your dbc_max_pct value. So, there is a good chance 50% of your memory is now used as buffer cache which you don't need.

I suggest you change dbc_max_pct to around 4-6% and min_pct at 2%.

If the above is not the case and if your programs are failing with 'insufficient memory' messages, then anyone of your max*siz(_64bit) parameters are insufficient.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try