Agrandar swap en host aix
Agrandar el área de intercambio en host AIX
1- Verificar el tamaño actual.
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk0 rootvg 512MB 2 yes yes lv 0
2- Verificar el tamaño de las PPs dentro del volume group donde esta el swap.
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00f6586400004c00000001384de04d2d
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 799 (51136 megabytes)
MAX LVs: 256 FREE PPs: 387 (24768 megabytes)
LVs: 12 USED PPs: 412 (26368 megabytes)
OPEN LVs: 11 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
3- Asignar el tamaño deseado:
En este ejemplo queríamos llegar a 6GB de Swap, entonces realizamos la siguiente cuenta:
Donde queremos llegar:
1024 * 6 = 6144
Resto a lo que ya tenia:
6144 - 512 = 5632
Calculo las cantidad de PPs (64 MB, dato del paso 2) que tengo que agrear:
5632 / 64 = 88
4- Aplico el cambio:
# chps -s 88 hd6
5- Verifico que el cambio se implente correctamente.
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk0 rootvg 6144MB 1 yes yes lv 0
ó bien:
+-topas_nmon--#=PURR Stats-------Host=aix-test-------Refresh=2 secs---14:34.39----+
¦ Memory -------------------------------------------------------------------------¦
¦ Physical PageSpace | pages/sec In Out | FileSystemCache ¦
¦% Used 27.6% 0.1% | to Paging Space 0.0 0.0 | (numperm) 3.5% ¦
¦% Free 72.4% 99.9% | to File System 0.0 0.0 | Process 11.0% ¦
¦MB Used 1695.3MB 8.2MB | Page Scans 0.0 | System 13.1% ¦
¦MB Free 4448.6MB 6135.8MB | Page Cycles 0.0 | Free 72.4% ¦
¦Total(MB) 6143.9MB 6144.0MB | Page Steals 0.0 | ------ ¦
¦ | Page Faults 1.0 | Total 100.0% ¦
¦------------------------------------------------------------ | numclient 3.5% ¦
¦Min/Maxperm 176MB( 3%) 5276MB( 86%) <--% of RAM | maxclient 85.9% ¦
¦Min/Maxfree 960 1088 Total Virtual 12.0GB | User 11.3% ¦
¦Min/Maxpgahead 2 8 Accessed Virtual 1.4GB 11.9%| Pinned 12.3% ¦
¦---------------------------------------------------------------------------------+
Nota: No es necesario reinicio de la LPAR