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
How can i decrease the using percentage?
Moderator's Comments:
Use code tags please, ty.
Last edited by zaxxon; 06-15-2010 at 07:39 AM..
Reason: code tags
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
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
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
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:
Make a new temporary paging space:
Turn off the primary paging space. All the necessary paging space entries will be moved to the new paging space previous created:
Turn the original paging space back on:
Turn off the temporary paging space. It should have been named "paging00" by default (verify the name with "lsps -a"):
Remove the temporary paging space
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.
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.
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.
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:
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.
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)
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)
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)
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)
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)
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)