Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Aix 5.2 increasing the paging space - How to?

Posted on 2009-05-19
Medium Priority
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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

564 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