Re: GLANCE (447 Views)
Reply
Occasional Advisor
haneps
Posts: 16
Registered: ‎05-28-2008
Message 1 of 2 (447 Views)
Accepted Solution

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.




Honored Contributor
Geoff Wild
Posts: 7,170
Registered: ‎06-04-2001
Message 2 of 2 (447 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.