Aix 5.2 increasing the paging space - How to?

Posted on 2009-05-19
Last Modified: 2013-12-16
Hi all  - I'm having some memory issues where I'm running out of paging space.  I'm not sure if I need to add more ram to the server.  Or if I can get by, by increasing the paging space. I'm hoping I can increase the paging space.   I know I can do this using SMIT.  But I'm not sure if I need to add allocate some space to a logical volume group first.  I have a lot of unallocated free space that can be added if need be. Or if I can simply plug in a number using smitty mkps.  I have a 1 gb ram module in the system,  but it looks like the system only recognizes 900 mb based on the number the bootinfo -r command returns. And it looks like I've got 1.5 gb of paging space.  I have a pair of 72 gb drives that are mirrored.

Based on the output of the commands I've ran below,  what can I safely increase my paging space to, and what number do I need to plug in via smitty mkps?
Or do I need to add ram the system and then increase the paging space?


# lsvg -l rootvg
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     2     2    closed/syncd  N/A
hd6                 paging     12    24    2    open/syncd    N/A
hd8                 jfslog     1     2     2    open/syncd    N/A
hd4                 jfs        2     4     2    open/syncd    /
hd2                 jfs        29    58    2    open/syncd    /usr
hd9var              jfs        4     8     2    open/syncd    /var
hd3                 jfs        13    26    2    open/syncd    /tmp
hd1                 jfs        10    20    2    open/syncd    /home
hd10opt             jfs        6     12    2    open/syncd    /opt
fwdump              jfs        2     4     2    open/syncd    /var/adm/ras/platf
exportlv            jfs2       80    80    1    open/syncd    /export
lv00                jfs        42    42    1    closed/syncd  N/A
loglv00             jfs2log    1     1     1    open/syncd    N/A

# lsvg rootvg
VOLUME GROUP:   rootvg                   VG IDENTIFIER:  00c011fa00004c000000010
VG STATE:       active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:  read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:        256                      FREE PPs:       809 (103552 megabytes)
LVs:            13                       USED PPs:       283 (36224 megabytes)
OPEN LVs:       11                       QUORUM:         1
TOTAL PVs:      2                        VG DESCRIPTORS: 3
STALE PVs:      0                        STALE PPs:      0
ACTIVE PVs:     2                        AUTO ON:        yes
MAX PPs per PV: 1016                     MAX PVs:        32
LTG size:       128 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:      no                       BB POLICY:      relocatable

# bootinfo -r

# lsattr -El sys0 | grep realmem
realmem         901120             Amount of usable physical memory in Kbytes

# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
hd6             hdisk3            rootvg        1536MB    86     yes   yes    lv

# lsps -s
Total Paging Space   Percent Used
      1536MB              86%
Question by:mobot
LVL 68

Accepted Solution

woolmilkporc earned 500 total points
ID: 24429258
1) It seems that you really need some more RAM.
2) Independently from the above, you should increase the paging space also. A rule of thumb says that one should have three to four times the amount of memory as paging space.
3) There is way enough room in the rootvg to increase the paging space. And there is no need to create a new paging volume. Just enlarge hd6. I would recommend using 4 GB, which would mean having 32 logical partitions instead of now 12. Keep in mind that your rootvg volumes (including the page space) are mirrored, so the increase will cost you 40 additional physical partitions. That's no problem, however, as your rootvg is big enough.
4) To accomplish this, either do
smitty chps -> hd6 -> NUMBER of additional logical partitions -> 20 -> <Enter>       OR
chps -s 20 hd6
smitty or chps will do all what's needed, so you don't have to do anything more.
5) As for the "realmem         901120"  - this sounds a bit strange, indeed.
Run diagnostics on your RAM by doing the following -
smitty diag -> Current Shell Diagnostics -> <Enter> -> Diagnostic Routines -> System Verification -->
Move the cursor to mem0 -> <Enter> -> <F7>
If the result is a message other than "No trouble was found." you should contact your hardware support people to perform additional checks.
Good luck!

Author Closing Comment

ID: 31583291
Thanks a bunch wmp.  chps -s 20 hd6  worked like a charm.  I ran diags against the mem as you suggested and it did report back that "No Trouble was found."   I'll be contacting our hardware support people.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question