Sierp
2009-02-11 20:27:48 UTC
Hello,
I'm thinking about some very simple thing - I was assuming it would be
simple. But it's not that simple.
I'm talking about memory usage, real memory usage for PID and for all
machines PIDs.
Let's say I'm looking at nmon output, and see something like this:
Physical PageSpace
MB Used 15156 2256
MB Free 1740 3887
Total(MB) 16896 6144
Is there any command I could use to check, what exactly is consuming
this 17412MB of RAM?
I know, that some part of memory is used for filesystemcache - in this
case, 10%.
I was thinking about svmon -Pu and taking "Inuse" field, for example I have
svmon -Pu
Pid Command Inuse Pin Pgsp Virtual .....
11111 oracle 755797 65584 303066 746923
but when I add all Inuse/4/1024=something in MB, I recive something more
than 22GB. As I assumed from manual for svmon, this might be becouse of
shared memory between processes, which is every time counted separatly.
In the other hand, when I try to do something like this:
for PID in `ps -ef | awk '{ print $2}'`; do
ps v $PID | grep -v COMMAND | awk '{ print $7}';
done
which means I have all RSS outputs for all PIDs on this machine - and
when I sum all this RSS outputs - I receive value of 4835808, which
means about 4722MB used. About 1700MB is used for filesystem cache.
So this is all I know - I know what is happening with 6,5GB of my RAM,
but what about 10GB of it?
What is utilizing it?
I would be gratefull for good answer, I was googling for it and to be
honest, I couldn't find the answer except what I wrote above.
regards,
Sierp
I'm thinking about some very simple thing - I was assuming it would be
simple. But it's not that simple.
I'm talking about memory usage, real memory usage for PID and for all
machines PIDs.
Let's say I'm looking at nmon output, and see something like this:
Physical PageSpace
MB Used 15156 2256
MB Free 1740 3887
Total(MB) 16896 6144
Is there any command I could use to check, what exactly is consuming
this 17412MB of RAM?
I know, that some part of memory is used for filesystemcache - in this
case, 10%.
I was thinking about svmon -Pu and taking "Inuse" field, for example I have
svmon -Pu
Pid Command Inuse Pin Pgsp Virtual .....
11111 oracle 755797 65584 303066 746923
but when I add all Inuse/4/1024=something in MB, I recive something more
than 22GB. As I assumed from manual for svmon, this might be becouse of
shared memory between processes, which is every time counted separatly.
In the other hand, when I try to do something like this:
for PID in `ps -ef | awk '{ print $2}'`; do
ps v $PID | grep -v COMMAND | awk '{ print $7}';
done
which means I have all RSS outputs for all PIDs on this machine - and
when I sum all this RSS outputs - I receive value of 4835808, which
means about 4722MB used. About 1700MB is used for filesystem cache.
So this is all I know - I know what is happening with 6,5GB of my RAM,
but what about 10GB of it?
What is utilizing it?
I would be gratefull for good answer, I was googling for it and to be
honest, I couldn't find the answer except what I wrote above.
regards,
Sierp