How to increase swap or paging space in AIX ?

Increase Paging Space in AIX

In Short

  • extendlv hd6 10G
  • chps -s 1 hd6  (-s for increase -d for decrease)
  • smit pgsp
All three commands can be used to extend the paging space.

Detailed Explanation

Paging Space is part of Physical Disk used to store the virtual memory data that is not currently accessed by a program. Partitioning a Physical Disk into smaller volumes we call it as Logical Volume, paging space is also a type of Logical Volume.

There are three commands to change the Paging Space size

extendlv - This command extends the logical volume size based on the size user specifies, below is the usage

#
# lsps -a| grep paging00
paging00        hdisk0            rootvg        9664MB   
paging00        hdisk1            rootvg            64MB 
#
#
# extendlv paging00 5G
#
# lsps -a| grep paging00
paging00        hdisk0            rootvg        9664MB  
paging00        hdisk1            rootvg        5184MB   
#

chps - Extends the Logical Volume size based on the disk partiton size, below is the example to extend logical volume with partition size of 1024MB

# lsps -a
Page Space      Physical Volume   Volume Group    Size
hd6                     hdisk0                   rootvg                1024MB   
#
# chps -s 1 hd6
#
# lsps -a
Page Space      Physical Volume   Volume Group    Size
hd6                     hdisk0                   rootvg                 1024MB   
hd6                     hdisk1                   rootvg                 2048MB 
#

smit pgsp - smit is command that manages almost all the resources of AIX, smit can be thought as AIX database that manages CPU, Memory, I/O Operations. To increase the paging space follow below steps

smit pgsp >> Change / Show Characteristics of a Paging Space >> NUMBER of additional logical partitions >> Provide the number of Partition Should be Increased and click enter >> The interface will display OK upon Success and failed upon failure.

lsps -a - List down all the Paging Space available in AIX Operating System

# lsps -a
Page Space      Physical Volume   Volume Group    Size
paging01          hdisk0                     rootvg                 12544MB 
paging01          hdisk1                     rootvg                 14144MB 
paging00          hdisk0                     rootvg                 9664MB 
paging00          hdisk1                     rootvg                 17024MB 
paging00          hdisk3                     rootvg                 5184MB 
hd6                    hdisk0                     rootvg                 10176MB 
hd6                    hdisk1                     rootvg                 17152MB 
hd6                    hdisk3                     rootvg                1792MB 
#
# lsps -s
Total Paging Space   Percent Used
      82560MB              13%
#

lsps -a will display the percentage of paging space usage by the Operating System.