OV Performance Management Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

GLANCE

SOLVED
Go to Solution
Occasional Advisor

GLANCE

Hi All,

I am new to GLANCE, could somebody explain to me on this memory RSS/VSS.

What is RSS and VSS, how do I read between those two and what are the differences.

I will appreciate your feedback on this. Thanks a million.




1 REPLY
Highlighted
Honored Contributor [Founder]

Re: GLANCE

VSS - Virtual Segment Size (Virtual Memory)
RSS - Resident Size (real memory)

Glance's RSS includes shared memory.

The VSS value is more an estimation...

You can also use UNIX95 to get that data:

# cat processmem
#!/bin/sh
# processmem - display memory claimed by a process
# gwild 03192004
#
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "processmem \"process\""
echo "Example:"
echo "processmem rpc"
exit 1
fi
echo " "

PROCESS=$1

mps=0
#for sz in `ps -elf | grep $PROCESS | grep -v grep | awk '{print $10}'`
for sz in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $PROCESS | awk '{print $1}'`
do
mps=`expr $mps + $sz`
done
#echo `expr $mps \* 4096`
echo "\nMemory claimed by $PROCESS: $mps Kbytes.\n"


man ps may show more...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.