Why using "%" of Paging size increases & how to decrease this percentage?


 
Thread Tools Search this Thread
Operating Systems AIX Why using "%" of Paging size increases & how to decrease this percentage?
# 1  
Old 06-15-2010
Why using "%" of Paging size increases & how to decrease this percentage?

Hi

I have found a problem on my AIX 5.1 server. day by day the paging size is increasing,what is the reason behind it and if percentage is at 100 what will happen. Oracle 9i is running on my server.

PAGING SPACE
Code:
size,mb  5632
% used  14.6
% free   85.3

How can i decrease the using percentage?

Moderator's Comments:
Mod Comment Use code tags please, ty.

Last edited by zaxxon; 06-15-2010 at 07:39 AM.. Reason: code tags
# 2  
Old 06-15-2010
It can be a problem, but doesn't necessarily have to be one. It would me more interessting if you see any paging occures. You can run for example
Code:
vmstat -w -I 1 10

at peak times when the box is busy and post it here. Use [code] and [/code] tags when doing so, ty.

Also it would be interessting what kind of application is running on that box (database? webserver?...?) and what a
Code:
vmstat -vs

shows.

EDIT:
Of course as funksen states it would be a disaster if the used Paging Space size would reach 100%.

Last edited by zaxxon; 06-15-2010 at 10:26 AM.. Reason: typo, update
# 3  
Old 06-15-2010
Quote:
and if percentage is at 100 what will happen
this is worst case, it's hard to kill an AIX-System with an application, but this is one of a few ways to accomplish this

AIX starts killing processes to free up paging space, first user processes with low priority, and then root processes, daemons for remote logins too

you can see this in errpt


use svmon -P to see memory statistics for each process
# 4  
Old 06-15-2010
On my AIX 6.1 boxes, after DLPARing more memory to the LPAR, I like to have the paging space shrunk back down so I can see if it continues to page more. Instead of taking an outage and rebooting the box to shrink the paging space, assuming there is only one paging space on the box named hd6, I do it like this:

First find how many LPs are being used by your current paging space:
Code:
host:/:$ lslv hd6 | grep PPs
LPs:                64                     PPs:            64
STALE PPs:          0                      BB POLICY:      non-relocatable
host:/:$

Make a new temporary paging space:
Code:
mkps -s 64 -n rootvg

Turn off the primary paging space. All the necessary paging space entries will be moved to the new paging space previous created:
Code:
swapoff /dev/hd6

Turn the original paging space back on:
Code:
swapon  /dev/hd6

Turn off the temporary paging space. It should have been named "paging00" by default (verify the name with "lsps -a"):
Code:
swapoff /dev/paging00

Remove the temporary paging space
Code:
rmps    paging00

Run the "lsps -a" afterward to see the new size. This usually drops my paging space back down to around 3%-ish. I'm not 100% sure this will work on an AIX 5.1 box though.
# 5  
Old 06-16-2010
Indeed, rebooting will only help temporary but adding another paging space is also just temporary.
To get rid of the problem you usually have to tune the box and try again and if this is still not working, additional memory could be helpful.
Another problem could be a memory leak that is filling up memory over time, but this would have to be examined closer. Funken's hint with the svmon -P to check which processes are using how much paging space might help in a first step.
# 6  
Old 06-16-2010
If the paging space is increasing day on day then it's usually an error in the way one of your applications is coded. Look for processes that have multiple day run times and see if you can restart them.

If ts a self-written c program then things like malloc are often the problem. Not clearing up pointers in other languages can also be he problem. It is possible that the problem is cause by a spiralling data set but that's fairly unusual.

So first step - what apps are the the system is question running and which processes are wasting the memory.
# 7  
Old 06-17-2010
ross.mather is of course correct. The bottom line of all this is:

Watch the swap consumption over time. If it is rather static you simply have not enough physical memory and your system needs virtual memory (aka swapspace) to compensate for this.

If the swap consumption increases over time one (or several) of your running processes are likely to have a memory leak. That is: they allocate memory without giving it back once they don't use it any more. Giving the system more memory (or swapspace or both) will only increase the time until which the memory is exhausted.

To find out which process(es) use how much memory do the following:

Code:
ps -Alo vsz,pcpu,pid,args | sort -rn

This lists all processes, sorted by their allocated memory, their CPU comsumption, PID and commandline used to invoke them. Repeat this in intervals and compare the output to find the memory hogs.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Web Development

How would I mod_rewrite "/~a1Pha" and "/=a1Pha" to "/paste/a1Pha.htm"? (internally & externally)

Basically I want to shorten URLs on my html pasting site (pasteht.ml), by using "/~a1Pha" instead of "/paste/a1Pha". The ID is 5 numbers and letters, both cases. For example: /~idnum serves /paste/idnum.htm /=idnum serves /paste/idnum.htm /paste/idnum redirects to /~idnum (to update any old... (0 Replies)
Discussion started by: phillips1012
0 Replies

3. Shell Programming and Scripting

finding the strings beween 2 characters "/" & "/" in .txt file

Hi all. I have a .txt file that I need to sort it My file is like: 1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO) 2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies

4. UNIX for Dummies Questions & Answers

"Universal" sar option to check for paging issues?

Hi, Can anyone please advise a universal command option for using sar to check for paging/memory issues. For Linux, I used sar -B and check on the majflt/s column and a high number is supposed to indicate paging issues, is that correct? Unfortunately, on a Solaris server, sar -B does not... (1 Reply)
Discussion started by: newbie_01
1 Replies

5. Red Hat

files having Script which works behind "who" & "w" commands

Dear All, plz print the path of files which have the script of "who" & "w" commands. thnx in advance. (6 Replies)
Discussion started by: saqlain.bashir
6 Replies

6. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

7. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

10. Shell Programming and Scripting

"sed" to check file size & echo " " to destination file

Hi, I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies
Login or Register to Ask a Question