cancel
Showing results for 
Search instead for 
Did you mean: 

Swap control at system

SOLVED
Go to solution
Carme Torca
Super Advisor

Swap control at system

Hi,

I want to control de swap at one system. What I have to see exactly in sar -w output to know if the server is swapping?

#sar -w 1 100

HP-UX hpit60 B.11.23 U ia64 03/12/10

10:15:37 swpin/s bswin/s swpot/s bswot/s pswch/s
10:15:38 0.00 0.0 0.00 0.0 4158
10:15:39 0.00 0.0 0.00 0.0 5296
10:15:40 0.00 0.0 0.00 0.0 3664
10:15:41 0.00 0.0 0.00 0.0 3425
10:15:42 0.00 0.0 0.00 0.0 2913
10:15:43 0.00 0.0 0.00 0.0 4932

And what number in each column is the limit to known if the systems is correct o no?

Thanks a lot of!
Carmen.
Users are not too bad ;-)
4 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: Swap control at system

>>What I have to see exactly in sar -w output to know if the server is swapping?<<

would like to use "glance" for

also pls. post

#swapinfo -tam
Problems are common to all, but attitude makes the difference
Michal Kapalka (mikap)
Honored Contributor

Re: Swap control at system

hi,

and if you like to use graphical glance use

"gpm"


mikap
Suraj K Sankari
Honored Contributor

Re: Swap control at system

HI,
To see the swapmemory utilization you need to do

#swapinfo -tam
or
#glance -m


Suraj
Matti_Kurkela
Honored Contributor
Solution

Re: Swap control at system

Swapping is moving entire processes at a time to swap, which is the obsolete way to manage memory.

Modern operating systems use paging instead, so it's possible that the first four data columns in "sar -w" output will always be zeroes.

You should look at the output of "vmstat" instead.

In particular, the number of page-outs (the po column of vmstat) is important: occasional non-zero values (e.g. when large applications are being started) are fine, but if the po column _frequently_ or _always_ has non-zero values, your system is thrashing and will perform badly.

MK
MK