Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Releasing SWAP space

SR Rao
Advisor

Releasing SWAP space

Right now the swap space on my system is running at 10% and sometimes falls below it. The system is been up since 550 days. I cannot add any more swap space. Is there any way by which I can release the swap space without any impact and downtime???
6 REPLIES
Venkatesh BL
Honored Contributor

Re: Releasing SWAP space

No. That is not possible :(
Ivan Ferreira
Honored Contributor

Re: Releasing SWAP space

The only way to reduce swap space usage is by reducing memory usage. You should run less applications or reconfigure the application to use less memory. Also you can change the kernel parameteres but you will need to reboot the system. Please post the results of swapon -s.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SR Rao
Advisor

Re: Releasing SWAP space

Here below is the swapon -s output and also the output of vmstat -P.

swapon -s:

Swap partition /dev/rz8b (default swap):
Allocated space: 393216 pages (3072MB)
In-use space: 66758 pages ( 16%)
Free space: 326458 pages ( 83%)

Swap partition /dev/rz11a:
Allocated space: 24 pages (192KB)
In-use space: 24 pages (102%)
Free space: 0 pages ( 2%)

Swap partition /dev/rz11b:
Allocated space: 25344 pages (198MB)
In-use space: 12004 pages ( 47%)
Free space: 13340 pages ( 52%)

Swap partition /dev/rz11d:
Allocated space: 64000 pages (500MB)
In-use space: 6094 pages ( 9%)
Free space: 57906 pages ( 90%)


Total swap allocation:
Allocated space: 482584 pages (3770MB)
Reserved space: 380879 pages ( 78%)
In-use space: 84880 pages ( 17%)
Available space: 101705 pages ( 21%)


vmstat -P:


Total Physical Memory = 1024.00 M
= 131072 pages


Physical Memory Clusters:

start_pfn end_pfn type size_pages / size_bytes
0 256 pal 256 / 2.00M
256 131003 os 130747 / 1021.46M
131003 131072 pal 69 / 552.00k

Physical Memory Use:

start_pfn end_pfn type size_pages / size_bytes
256 280 unixtable 24 / 192.00k
280 284 scavenge 4 / 32.00k
284 730 text 446 / 3.48M
730 824 data 94 / 752.00k
824 949 bss 125 / 1000.00k
949 1083 kdebug 134 / 1.05M
1083 1091 cfgmgmt 8 / 64.00k
1091 1461 unixtable 370 / 2.89M
1461 1474 pmap 13 / 104.00k
1474 3531 vmtables 2057 / 16.07M
3531 131003 managed 127472 / 995.87M
============================
Total Physical Memory Use: 130747 / 1021.46M

Managed Pages Break Down:

free pages = 44918
active pages = 10791
inactive pages = 8154
wired pages = 17164
ubc pages = 46472
==================
Total = 127499

WIRED Pages Break Down:

vm wired pages = 2302
ubc wired pages = 5115
meta data pages = 3922
malloc pages = 2958
contig pages = 296
user ptepages = 2461
kernel ptepages = 72
free ptepages = 15
==================
Total = 17141
Venkatesh BL
Honored Contributor

Re: Releasing SWAP space

Look into the types of processes running on the system. See if you can safely get rid of some 'high-memory-consuming' processes.
Ivan Ferreira
Honored Contributor

Re: Releasing SWAP space

You can reduce the swap space usage by setting in /etc/sysconfigtab:


vm_swap_eager = 0

You have too much reserved space.

Create a file named /tmp/vm.stanza

vm:

vm_swap_eager = 0

Run

sysconfigdb -m -f /tmp/vm.stanza

You must reboot.

Points are welcomed for all of us.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SR Rao
Advisor

Re: Releasing SWAP space

Sorte dout