Operating System - HP-UX
1833780 Members
2291 Online
110063 Solutions
New Discussion

swapon (File System Paging)

 
Akif_1
Super Advisor

swapon (File System Paging)

Hi All,

OS:HP-UX 11.11
Oracle Application Server ver 10.

Need an expert advice upon this issue.

Find below details about my swapinfo -tam , swapinfo and bdf info.

app1:/#swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 562972 3631332 13% 0 - 1 /dev/vg00/lvol2
localfs 819200 0 819200 0% 819200 0 1 /logs/paging
reserve - 4450532 -4450532
memory 6452500 5559992 892508 86%

app1:/#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 550 3546 13% 0 - 1 /dev/vg00/lvol2
localfs 800 0 800 0% 800 0 1 /logs/paging
reserve - 4346 -4346
memory 6301 5425 876 86%
total 11197 10321 876 92% - 0 -

app1:#bdf
Filesystem kbytes used avail %used Mounted on

/dev/vg00/lvol9 3588096 1384647 2071036 40% /logs
/dev/vg00/lvol10 5120000 109150 4697704 2% /app


My Question is:
===============
During peak hours iam running out of memory

var/adm/syslog/syslog.log (output)
Apr 6 10:43:04 app1 vmunix: Deferred swap reservation failure pid: 19145
Apr 6 10:43:10 app1 vmunix: Deferred swap reservation failure pid: 18453

#Now i would like to add and active File system swap /logs/paging which is 0% used.

#Is this solve the problem or need to look other areas.

# Does this build new kernel and reboot required or online possible without disturbing production environment.

I appreciate all for their support.

Regard's
T(ogether) E(very one) A(chive) M(ore)
7 REPLIES 7
Jean-Luc Oudart
Honored Contributor

Re: swapon (File System Paging)

Hi

just add more swap space. This can be done online. device swap preferred (vs fs swap).
Create a logical volume and activate with swapon
http://docs.hp.com/en/B2355-90672/ch06s03.html?btnNext=next%A0%BB

see thread http://docs.hp.com/en/B2355-60105/swapon.1M.html (many other threads on very same subject).

Regards
Jean-Luc
fiat lux
Kanagaraj
Regular Advisor

Re: swapon (File System Paging)

seems swap space 4GB and physical memory 6GB.

Please add more swap,,like swap=1.5% RAM size=10GB.

create a lv and add as swap,this can be done online.
Patrick Wallek
Honored Contributor

Re: swapon (File System Paging)

>>Now i would like to add and active File
>>system swap /logs/paging which is 0% used.

It is already active and in use.

The error you posted means that you need to add even more swap space.
Akif_1
Super Advisor

Re: swapon (File System Paging)

Hi Patrick,


Apr 10, 2010 11:32:54 GMT points for answer:
>>Now i would like to add and active File
>>system swap /logs/paging which is 0% used.

It is already active and in use.
#If it is active why not 100% usage where is swapinfo -tam show only 0% used by file system swap /logs/paging

#The /logs is consists of 3.5GB where as i used it 800MB for swap ,Now how can i increase the limit of 800 MB to 2GB. (Does it require reboot or no need).

Thanks All for their kind cooperation

The error you posted means that you need to add even more swap space.
#Need to know about increment of swap from 800 to 2GB
T(ogether) E(very one) A(chive) M(ore)
Dennis Handly
Acclaimed Contributor

Re: swapon (File System Paging)

>If it is active why not 100% usage where is swapinfo -tam show only 0% used by file system swap /logs/paging

You have only reserved it and because you still have some pseudo swap available.
But not enough during peak hours.

>Now how can I increase the limit of 800 MB to 2GB. (Does it require reboot?)

You should be able to add more file system swap without a reboot. You may have to reboot to remove that too small 800 Mb swap.
Akif_1
Super Advisor

Re: swapon (File System Paging)

Hi Dennis,


You should be able to add more file system swap without a reboot. You may have to reboot to remove that too small 800 Mb swap.

# I have enough space in /logs/paging LV which can be increased by 1GB without any problem.

Iam worried about the reboot does this create a new kernel and if yes does it harm my production.

If it is building new kernel what precautions i need to take before clicking "OK"" to build new kernel.

Regard's
T(ogether) E(very one) A(chive) M(ore)
Dennis Handly
Acclaimed Contributor

Re: swapon (File System Paging)

>I am worried about the reboot, does this create a new kernel and if yes does it harm my production.

I'm not sure if you can change filesystem swap without a reboot. It appears you can just use a different directory.

>If it is building new kernel what precautions I need to take before clicking "OK" to build new kernel.

As in all kernel changes, it is highly recommended you take an ignite backup.

You might be able to use the swapon(1m) command directly:
swapon [-m min] [-l limit] [-r reserve] [-p priority] directory ...

I'm not sure if this will last on the next reboot by adding it to /etc/fstab? Or that is something you have to do.

If you use SAM, it doesn't appear you can select the name of the directory, just the filesystem. SAM may be smart enough to increase FS swap without a reboot? Just try it and if it asks to reboot, just abort it.