728x90


Question
Reducing Paging Space %Used
 
Answer

This document provides some ways to reduce the '%Used' paging space. This information applies to AIX Version 5L.

This example starts with a single paging space of 45% used.

#lsps -a
Page Space  PV     VG      Size   %Used  Active  Auto  Type
hd6         hdisk0 rootvg  128MB   45    yes     yes   lv
  1. Create a second paging space of the same size by entering:
     #mkps -s 32 -n vg00 hdisk1
     paging00
    

  2. Now, you should have two paging spaces similar to the following:
     #lsps -a
     Page Space  PV     VG      Size   %Used  Active  Auto  Type
     paging00    hdisk1 vg00    128MB   1     yes     no    lv
     hd6         hdisk0 rootvg  128MB   45    yes     yes   lv
    

  3. Turn off the original paging space.
    #swapoff /dev/hd6
    

  4. Now, it is 0% used and Active=no.
    #lsps -a
    Page Space  PV     VG     Size   %Used  Active  Auto  Type
    paging00    hdisk1 vg00   128MB   2     yes     no     lv
    hd6         hdisk0 rootvg 128MB   0     no      yes    lv
    

  5. Turn the original paging space back on by entering:
    #swapon /dev/hd6
    

  6. The second paging space can be turned off and removed by entering:
    #swapoff /dev/paging00
    #rmps paging00
    

  7. You should now be back to your original paging space, but only 2% used.
    #lsps -a
    Page Space  PV     VG     Size   %Used  Active  Auto  Type
    hd6         hdisk0 rootvg 128MB   2     yes     yes    lv
    ---------
    

Why did this work?

When the /etc/swapoff command ran, it moves pages from the hd6paging space to the paging00 paging space. However, if a page on the hd6paging device was active in physical memory (it has been paged in), the command will not move that page to paging00.h


http://www-01.ibm.com/support/docview.wss?uid=isg3T1000585

728x90

+ Recent posts