1752794 Members
5866 Online
108789 Solutions
New Discussion юеВ

SWAP 100% FULL

 
SOLVED
Go to solution
Ritter Philippe
Advisor

SWAP 100% FULL

Hello,
I need help because my SWAP Space is now full, and I don't which process make this. This system is up since many months without any problem. Now, when i make swapinfo -ta,, I get this :
savigny:~# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 4075 -4075
memory 6238 6238 0 100%
total 10334 10313 21 100% - 0 -

How can I handle this problem. The system has 8Gb memory and run Sybase Datasever. Sybase has only 6 Gb allocated.

Thanks for any Help !
Regards
Philippe RITTER
12 REPLIES 12
Keith Bryson
Honored Contributor

Re: SWAP 100% FULL

Hi there

Your swap space should be at least 1xRAM (therefore 8Gb), so you will need to add another swap logical volume (using lvcreate) and then use swapon to add the new swap to the system. Modifications need to be made to the /etc/fstab too. If you need further clarification, let us know.

Keith
Arse-cover at all costs
Keith Bryson
Honored Contributor

Re: SWAP 100% FULL

Hi again

If you are not too familiar with HP-UX, you can use sam to add swap (sam will inform you if the kernel needs modification, will modify the /etc/fstab file for you and enable swap):

- Run sam and select menu options:
Disks and Filesystems -> Logical Volumes -> Actions ->> Create

- Add an 'LV Name' for swap
- Specify the 'LV Size'
- Alter the 'Usage' field to 'Swap Device'
- Ensure the 'Enable Swap' option says 'Now and At Boot'.

Hopefully you have some disk space!!

Hope that helps - Keith
Arse-cover at all costs
Ritter Philippe
Advisor

Re: SWAP 100% FULL

Thank you for your help. I know I can had swap to my system, but what I want to know is WHY my system is using so much SWAP. The system was running fine for some months with 4Gb ! I rebooted the server and now i have only 61 % used. I will check today if this goes up, and then had swap or not. Does it exist a tool to see wich process use swap ? Or for what the swap is used ?

Thanks
Keith Bryson
Honored Contributor

Re: SWAP 100% FULL

Hi there

Be aware that the system will 'reserve' swap as it uses RAM. The potential is that if you are using 6Gb RAM, 6Gb of swap will be reserved. That is why you should really be running at least 1xRAM for swap. For your system I would recommend that you go 2xRAM.

Keith
Arse-cover at all costs
Mark Nieuwboer
Esteemed Contributor

Re: SWAP 100% FULL

Hi,

Did you try to use glance to get the proces wich make the swap full

grtz Mark
Ritter Philippe
Advisor

Re: SWAP 100% FULL

Ok, I will try to add 4Gb more to the SWAP. I don't know how to use glance to find the process using the max swap. Can you help me please ?

thanks
Philippe RITTER
Keith Bryson
Honored Contributor

Re: SWAP 100% FULL

Hi

Somethings you may want to check:

If you have glance, hit 'm' and this will detail memory usage. You may be using a lot of RAM if your buffer cache is set too high. This should really be 200-800Mb, but may be smaller.

Keith
Arse-cover at all costs
bhavin asokan
Honored Contributor

Re: SWAP 100% FULL

hi,

how you says swap is full

from your swapinfo

type =dev
available =4096MB
used = 0MB
free =4096MB
used % =0%

(on my systems it is showing minimum 10%)
check on your kernel for swapmem_on is 0 or 1.

if it is 0 ,change it to 1 and rebulit the kernel.

also post the vaules showing against the dbc_min_pct & dbc_max_pct variables when you are using sysdef command.

regds,
Mark Nieuwboer
Esteemed Contributor

Re: SWAP 100% FULL

Hi Phillippe,

With glance -m you see how much memery is used.
With gpm you can see the history of the memory use.

I can make the swap space bigger but it doen't change the problem.

grtz. Mark