Solved

AIX High Swap usage

Posted on 2013-06-03
5
7,277 Views
Last Modified: 2013-07-30
Hi,

I am getting high swap usage on one of our AIX server every now and then. How can I check what all processes are consuming high swap on the system. I am seeing the NMON but I am not able to figure out which column show the swap usage. Can anybody explain how can we check that? This is urgent.

In topas it is showing PgSp column, whether that is the column which shows the processes using high Swap? How can I analyse the swap usage using any other tool on AIX?

Thanks
Virgo
0
Comment
Question by:virgo0880
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 300 total points
ID: 39218268
nmon -> t -> 4

or:

export NMON=t4; nmon

shows process sizes and paging activity. Size (KB) is in the third column, paging I/O is in the 9th column.
Size means the total footprint of a process, i .e. memory (Res Set) + swap.

Get a quick overview of memory configuration/usage/paging under nmon by hitting "m", or by running "svmon -G" from the command line.

topas shows the total footprint of a process ( MB ) in the process section of the main panel under "PgSp", and, after hitting "P" (uppercase "P") in the process list under PAGE SPACE (in 4k pages!), You can sort by this column by positioning the cursor on it using the arrow keys.

Please note particularly for "topas" that other than "PAGING SPACE" and "PgSp" "TEXT RES" includes the executable program and shared libraries, so "TEXT RES"  might show a higher value than "PAGING SPACE".

Paging activity can be seen in the MEMORY/PAGING section of the main panel.

Finally,

svmon -P process_id

shows fine grain detail about memory and paging usage of a single process.
0
 

Author Comment

by:virgo0880
ID: 39220823
I will verify this and revert back if there are any questions. Thanks.
0
 

Author Comment

by:virgo0880
ID: 39227161
svmon -G
                          size       inuse        free         pin     virtual
memory      5767168     5171146      596022      747283     3876417
pg space    2883584      279586

                    work        pers        clnt       other
pin              536267           0           0      211016
in use          3784846     1091818      294482

The output of svmon is quite confusing. Can you explain the above output? and also what do you mean by section "pin in use" whether that is reserved for the processes?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39227319
All values are in 4K pages!

size = Total size of memory ~ 22 GB
inuse = Pages in use by a process plus persistent (file) pages from terminated processes ~ 19.7 GB
free = Pages on the free list (= size minus inuse) ~ 2.3 GB
pin = pinned (non-pageable, always resident) pages (subset of "inuse) ~ 2.9 GB

"pg space" is your paging space in 4K pages (~11 GB),
"in use" (see below) is its used portion (~ 1.1 GB).

Don't get confused by "Virtual" being smaller than "memory inuse" + "pg space inuse"!
On AIX, pages in paging space may not be released when they are read back -
to maybe save the effort of having to page them out again.

"pin" and "in use" (lower part) = Breakdown of where pinned and "inuse" pages are used for.

work - working pages
pers - persistent (file) pages
clnt - client pages (remote file pages, NFS)
0
 

Author Comment

by:virgo0880
ID: 39227378
That was a good explanation. I am digging more into this now to figure out the swap usage on my server. More to come.

Thanks
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

707 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