UnixPedia : HPUX / LINUX / SOLARIS: HPUX : SWAP CALCULATION

Tuesday, January 28, 2014

HPUX : SWAP CALCULATION

The formula for maximum usable swap is maxswapchunks * swchunk * 1024 bytes 
 
maxswapchunks =16384 (maximum Value)
swchunk =2048 (which is default)
 
Since maxswapchunk value is set to the max you can increase the swchunk value, the total configured swap can be increased.
The maximum can be increased to 65536. But your we recommend that will be too high, so you can tune it to 4096 or 6144 (multiples of 4096).  

man swchunk 



Jackal /.root# kmtune |grep -i swchunk
swchunk                  4096  -  2048
Jackal /.root# uptime
  2:24am  up 1 day,  6:52,  4 users,  load average: 0.03, 0.05, 0.06
Jackal /.root# uname -a
HP-UX Jackal B.11.11 U 9000/800 3256426090 unlimited-user license
Jackal /.root# kmtune |grep -i maxswapchunks
maxswapchunks           16384  -  16384
Jackal /.root# kmtune |grep -i swchunk
swchunk                  4096  -  2048
Jackal /.root#

Jackal /.root# swapinfo -tam
             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        4000       0    4000    0%       0       -    1  /dev/vg00/lvol2
dev        5008       0    5008    0%       0       -    1  /dev/vg00/lv_swap1
dev       32704       0   32704    0%       0       -    1  /dev/vgswap/lv_swap2
reserve       -    7972   -7972
memory    13304    1856   11448   14%
total     55016    9828   45188   18%       -       0    -

No comments:

Post a Comment