01-03-2008
aix memory breakdown
Hi,
Stats:
AIX 5.3, P590 series. 8 CPUs, 27GB RAM. DB SGA 4GB
MAXCLIENT=MAXPERM% = 20% (MIN IS 10%)
lru_file_repage =1
strict value for maxperm and for maxclient both set to 1.
File system=jfs2.
paging = 1% all the time (means no paging)
Consider the following at point in time:
From vmstat -v, it is clear the file cache is at 19.8% meaning almost all of 20% of 27gb = 5.4gb is in used by cache.
From svmon and vmstat , free memory is 6gb.
From nmon also it says total mem=27gb, free=6gb and used=21gb and file cache used is 5.4 gb.
I would like to know where i am doing wrong below:
Objective:
Try to add the elements/processes and sum it upto 27gb.
Tot_memory = File_cache + unixprocess + shared segment memory +freemem
27gb = 5.4 gb + 9gb + 4gb +6g (as you see i am missing 2.4gb uncounted for)
Running the above at different times more or less am short of 2-2.4 gb always. Where is this 2.4 gb used by???
Filecache, freemem and shared segment calcualtion is pretty much straight forward, and i think you all know how it is to be calcualted. (I even checked ipcs -b and i do not have a memory segment orphan etc).
How I comeup with 9gb is simple.
Running ps vg command and adding (rss-trs)/1024 (mb) to sum for those process ids where PID is also available in (select pid from v$process).
To this i add sum of rss for rest of the remaining process(oracle lile listener, dbconsole) and root processes and all ther processs).
Oracle processs adds upto major like 8gb, rest 1gb is for all remaining processes.
So am sure am doing wrong in calcualting memory from ps vg output. Or is there any other type of mem i misses?
What about jave heap, is this a seperate memory that wont come in ps vg and also in ipcs -b?? Am at a loss.
My only obj for now is to find ways to add all process memory + shared segments + free + file cache and this should sum to 27gb or atleast the difference should not be so high as 2.4 gb missing.
I checked i dont have a leaking unless u tell me how to check??
Cheers
Last edited by shahidsa; 01-03-2008 at 01:00 PM..
Reason: email notify added
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
sed -n '/\{10\}E/p' $filename | sort >> $filename.sorted
Could somebody please give me a breakdown of what exactly each part of this sed statement does, I have inherited a production script, and know that basically it sorts a file that looks like this
(20 spaces here) ... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
2. UNIX for Dummies Questions & Answers
I am using AIX 5.5
I have researched your site and found a few commands to try to check how much physical memory I have but the ones I found are not working. I was wondering does my system have a different command?
I also checked the MAN pages could not find it there.
Could somebody help?
I... (2 Replies)
Discussion started by: rocker40
2 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I have a question, can you guys please help me by giving your valuable suggestons:
I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (1 Reply)
Discussion started by: kollam68
1 Replies
4. AIX
Hi All,
I have a question, can you guys please help me by giving your valuable suggestons:
I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (3 Replies)
Discussion started by: kollam68
3 Replies
5. Shell Programming and Scripting
hey, somebody can help me on this broken script?
for i in `find . -name index.html`;do
echo "$i"
awk '{print $0}' $i
done
the path to index.html has space in it. For example,
./10 October/index.html
then echo "$i" will gives two lines instead of one:
./10
October/index.html
how do... (3 Replies)
Discussion started by: patiobarbecue
3 Replies
6. AIX
Hi,
I want to know how to find out free physical memory in aix, (11 Replies)
Discussion started by: manoj.solaris
11 Replies
7. UNIX for Advanced & Expert Users
I have 2 boxes one running AIX 5.3 and the other running HP 11.31. Both systems have the same application running but HP seems to be using more memory than AIX by almost double. I have to use 2 different methods because both machines have different backend software to look at memory. What is the... (2 Replies)
Discussion started by: kfdalton
2 Replies
8. Solaris
Hello,
I am trying to breakdown the cXtXdX (specifically tX) part of an iscsi device.
I know in the fibre SAN world, this tX will usually be a combination of the path to device/device WWN.
From what I understand in iscsi world it is similar, breaking down into... (0 Replies)
Discussion started by: Bashful
0 Replies
9. AIX
Currently server have load while there is no heavy things running, just oracle database/ application server oracle. I don't understand why server have heavy load, 22GB is under buffer, how to clean buffer/memory in AIX
load averages: 9.42, 9.43, 9.68; 05:25:08
141 processes: 125 idle, 16... (12 Replies)
Discussion started by: learnbash
12 Replies
10. AIX
i am facing issue in AIX 6.1 when i was running below command i face issued as show attached screenshot
cat /audit/bin1 /audit/bin2 /audit/trail | auditpr -t 0 -v -h l,r,R,t,c,p,P |\
awk '/\s*audit object write event detected/ {print ll $6} { ll = $0}'
Please use code tags next time... (1 Reply)
Discussion started by: aforabad
1 Replies
ipcs(1) General Commands Manual ipcs(1)
NAME
ipcs - report status of interprocess communication facilities
SYNOPSIS
core] namelist]
DESCRIPTION
displays certain information about active interprocess communication facilities. With no options, displays information in short format for
the message queues, shared memory segments, and semaphores that are currently active in the system.
Options
The following options restrict the display to the corresponding facilities.
(none) This is equivalent to
Display information about active shared memory segments.
Display information about active message queues.
Display information about active semaphores.
The following options add columns of data to the display. See "Column Description" below.
(none) Display default columns: for all facilities:
Display all columns, as appropriate.
This is equivalent to
Display largest-allowable-size information:
for message queues: for shared memory segments: for semaphores:
Display creator's login name and group name:
for all facilities:
Display information on outstanding usage:
for message queues: for shared memory segments:
Display process number information:
for message queues: for shared memory segments:
Display time information:
for all facilities: for message queues: for shared memory segments: for semaphores:
The following options redefine the sources of information.
Use core in place of core can be a core file or a directory created by or
Use file namelist or the namelist within core in place of It opens a crash dump for reading. Please refer to cr_open(3) for
more details.
Column Descriptions
The column headings and the meaning of the columns in an listing are given below. The columns are printed from left to right in the order
shown below.
Facility type:
Shared memory segment
Message queue
Semaphore
The identifier for the facility entry.
The key used as an argument to
or to create the facility entry. (Note: The key of a shared memory segment is changed to when the segment has been removed until
all processes attached to the segment detach it.)
The facility access modes and flags:
The mode consists of 11 characters that are interpreted as follows:
The first two characters can be:
A process is waiting on a
A process is waiting on a
The associated shared memory segment has been removed.
It will disappear when the last process attached to the segment detaches it.
The associated shared memory segment is to be cleared when the
first attach is executed.
The corresponding special flag is not set.
The next 9 characters are interpreted as three sets of three characters each. The first set refers to the owner's permissions, the
next to permissions of others in the group of the facility entry, and the last to all others.
Within each set, the first character indicates permission to read, the second character indicates permission to write or alter the
facility entry, and the last character is currently unused.
Read permission is granted.
Write permission is granted.
Alter permission is granted.
The indicated permission is not granted.
The login name of the owner of the facility entry.
The group name of the group of the owner of the facility entry.
The login name of the creator of the facility entry.
The group name of the group of the creator of the facility entry.
The number of bytes in messages
currently outstanding on the associated message queue.
The number of messages currently outstanding
on the associated message queue.
The maximum number of bytes allowed
in messages outstanding on the associated message queue.
The process ID of the last process to send a message
to the associated message queue.
The process ID of the last process to receive a message
from the associated message queue.
The time the last
message was sent to the associated message queue.
The time the last
message was received from the associated message queue.
The time when the associated facility entry was created or changed.
The number of processes attached to the associated shared memory segment.
The size of the associated shared memory segment.
The process ID of the creating process of the shared memory segment.
The process ID of the last process
to attach or detach the shared memory segment.
The time the last
attach was completed to the associated shared memory segment.
The time the last
detach was completed on the associated shared memory segment.
The number of semaphores in the set associated with the semaphore entry.
The time the last
semaphore operation was completed on the set associated with the semaphore entry.
WARNINGS
produces only an approximate indication of actual system status because system processes are continually changing while is acquiring the
requested information.
Do not rely on the exact field widths and spacing of the output, as these will vary depending on the system, the release of HP-UX, and the
data to be displayed.
FILES
Kernel virtual memory
Group names
User names
System namelist
SEE ALSO
msgop(2), semop(2), shmop(2).
STANDARDS CONFORMANCE
ipcs(1)