Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Added More memory but still page faulting

Status
Not open for further replies.

VAXMAN

MIS
Jul 9, 1999
4
US
I have a system that use to have 256mb of memory running AIX 4.3. I was getting quite a bit of page faults. I added enough memory to give the computer 1gb of memory. It is doing better but still having a lot of page faults. What parameters do I need to change for the system to use the extra memory for file buffer and process memory?
 
These may help....vmtune, paging space etc..... However, it may be how your app is written or if you have anything pinned in memory as well...sometimes databases grab it all up front.........so this is just general stuff...Good luck

Memory tuning:


 
1.Also can use "topas" to find out the processes using more memory.

2."vmstat 2 10" output may help - taken at a buisy time.

3.run "ps -auw | grep defunct" to find out if you have too mnay zombies left (if yes - reboot or kill their parent)

4.How much paging space is defined ?
 
5.Also,can run the following (provided on this forum by some clever man).This will display processes sorted by memory usage order:
==========================================

#!/usr/bin/ksh

# Orders and sums the real and virtual memory used by Application processes
# and writes to standard out.
#
header=" PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND"
Total=0

rm /tmp/output >/dev/null
rm /tmp/output1 >/dev/null
ps gvw | egrep -v PID\|grep\|kproc | sort -k 6rn -k 7rn|
while read line
do
if [ "$flag" != 1 ]
then
maxLine=$line
flag=1
fi
Size=`echo $line|awk '{print $6}'`
if [ ! -z "$Size" -a "$Size" != xx ]
then
((Total=Size+Total))
Program=`echo $line|awk '{print $13}'`
Program=`basename $Program`
Pid=`echo $line|awk '{print $1}'`
printf "%30s\t%6s\t%-d\n" $Program $Pid $Size >>/tmp/output
fi
done
sort +2 -rn /tmp/output >/tmp/output1
Program=`echo $maxLine|awk '{print $13}'`
ProgramMax=`echo $maxLine|awk '{print $6}'`
Program=`basename $Program`
printf "%30s\t\t%-d %s\n" Total $Total kilobytes >>/tmp/output1
echo " Program PID Kilobytes" >/tmp/output
cat /tmp/output1 >> /tmp/output
cat /tmp/output
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top