1833734 Members
2891 Online
110063 Solutions
New Discussion

Re: swap/vmstat

 
M.Thomas
Frequent Advisor

swap/vmstat

Please find this swap and vmstat info. i put the lvswap3 yesterday. it shows 93%. what does that mean? cant it use the other swap also? sr on vmstat is showing up also

# swapinfo -atm
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
dev 8192 0 8192 0% 0 - 1 /dev/vg00/lvswap1
dev 8192 4760 3432 58% 0 - 0 /dev/vg00/lvswap2
dev 5120 4747 373 93% 0 - 0 /dev/vg00/lvswap3
reserve - 15599 -15599
memory 19222 7073 12149 37%
total 44822 32179 12643 72% - 0 -
# vmstat 2 20
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
4 3 0 3537879 24591 48 10 11 17 1 0 452 10142 37684 4892 23 4 73
4 3 0 3537879 24535 53 8 7 0 0 0 0 3425 30090 4097 51 3 46
4 3 0 3537879 24535 34 4 5 0 0 0 0 3286 29234 3901 45 2 54
4 3 0 3537879 24457 22 2 16 0 0 0 0 3233 28130 3822 35 1 64
3 1 0 3567016 24457 15 0 10 0 0 0 0 3013 23097 3079 27 2 71
3 1 0 3567016 24457 72 12 8 0 0 0 0 2690 20586 2619 37 1 61
3 1 0 3567016 24457 46 7 5 0 0 0 0 2571 18088 2396 50 3 47
3 1 0 3567016 23208 29 4 271 51 0 0 6 2555 17981 2556 54 4 42
3 1 0 3567016 23817 19 2 208 150 0 0 169 2534 19020 2768 56 2 41
6 1 0 3841907 23785 12 0 135 96 0 0 108 2494 19263 2749 60 6 34
6 1 0 3841907 24105 70 12 88 112 0 0 119 2310 22146 2894 61 1 38
6 1 0 3841907 23871 45 7 94 71 0 0 76 2317 21807 2775 68 3 29
6 1 0 3841907 23858 28 4 63 44 0 0 48 2398 21711 2795 61 5 34
6 1 0 3841907 23858 18 2 40 28 0 0 30 2457 19166 2547 60 1 39
5 1 0 3960655 23855 12 0 26 17 0 0 19 2513 18758 2541 51 4 45
5 1 0 3960655 23867 70 12 18 12 0 0 12 2427 17714 2286 55 2 42
5 1 0 3960655 23867 45 7 12 7 0 0 7 2302 12094 1633 41 0 59
5 1 0 3960655 23867 36 5 10 5 0 0 5 2316 10208 1469 41 1 58
5 1 0 3960655 23866 22 3 7 3 0 0 3 2264 8155 1306 39 1 60
4 1 0 3707361 23866 15 1 4 1 0 0 1 2237 7287 1205 39 2 59
#
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: swap/vmstat

Hi:

The utilization of lvswap2 and lvswap3 is due to the numerically lower value for their priority than that for either the primary swap or 'lvswap1'. A lower value for swap priority means a preference for that space. See the manpages for 'swapon(1M)' for more information.

Your page-outs ('po') indicate memory pressure. Values higher than single digits are significant.

Regards!

...JRF...
Jaime Bolanos Rojas.
Honored Contributor

Re: swap/vmstat

M.Thomas,

According to your po value in vmstat looks like you are paging out already ( not a good thing ).

According to the total line you have reserved 72% of you total swap, ( high value already).

Setting the priority of lvswap3 and lvswap3 to 1 is not really going to help much with your memory presure, since you are already using 72%.

The real solution here is to buy more memory ( memory is cheap, not for me but is cheap ).

Remember once you reach your 100% reserved space in the total line your system is not going to work anymore and is going to go out of wack.

My best advice, buy some memory.

Regards,

Jaime.
Work hard when the need comes out.