Solved

AIX High Swap usage

Posted on 2013-06-03
5
6,459 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
  • 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now