Operating System - HP-UX
1753481 Members
5049 Online
108794 Solutions
New Discussion юеВ

swapinfo tells the real swap being utilizied?

 
SOLVED
Go to solution
stephen peng
Valued Contributor

swapinfo tells the real swap being utilizied?

dear all,
swapinfo -atm tells:
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
dev 11264 0 11264 0% 0 - 0 /dev/vg00/swap
dev 26000 0 20480 0% 0 - 2 /dev/vgswap/swap1
reserve - 15592 -15592
memory 19334 13491 5843 70%
total 57622 29083 23019 50% - 0 -
and kutune tells:
maxswapchunks 16384 - 16384
swchunk 2048 - 2048
it means the total swap the os could utilize is 16384*2048*1k=33554432k,33G,and swapinfo tells that os is utilizing 37G swap, though when I run swapon -a, I was told:
swapon: The kernel tunable parameter "maxswapchunks" needs to be increased to completely enable paging on device /dev/vgswap/swap1.
so swapinfo doesn't tell the swap it was utilizing but configurating?

could you please explain this to me?
thanks a lot
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: swapinfo tells the real swap being utilizied?

>kutune tells:

kctune or kmtune? What HP-UX version?

>so swapinfo doesn't tell the swap it was utilizing but configured?

It sure seems like that. It gives you how much you are using and the max disk space configured.
Don Morris_1
Honored Contributor
Solution

Re: swapinfo tells the real swap being utilizied?

Note the third device. 26000Mb are Available (the size of the swap configured), none is used -- but only 20480Mb are free. This is the indication that the OS could not consider some of the available space free [because it couldn't represent it with the values of the tunable you have].

If you sum up the FREE column on the devices: 1024+11264+20480 = 32768Mb. (32Gb exactly). And 32768*1024 = 33554432kb... so the kernel and swapinfo are entirely in agreement. If you want the last 5520Mb of the swap device, you need to increase swchunk [as maxswapchunks is already at the maximum for 11.11, which I assume this is - as maxswapchunks was gone by 11.23]. With a swchunk of 4096, maxswapchunks of 3328 would suffice here.
stephen peng
Valued Contributor

Re: swapinfo tells the real swap being utilizied?

Don,
thank you for your reply, I do consider you fully explain this to me.