Operating System - HP-UX
1826204 Members
3030 Online
109691 Solutions
New Discussion

Memory benchmarking tools

 
SOLVED
Go to solution
Alex Macdonald
Advisor

Memory benchmarking tools

I'm looking for information on tools for gathering memory performance numbers. Glance and top won't work for what I need, because I need to be able to access the information from the command line or a flat file from inside a perl script. I've looked at vmstat, but the nubers it's giving me really don't add up, or I just don't know how to read them.

I want to produce memory utilization numbers specifically, but any extra stats would help. Thanks in advance for your replies.
4 REPLIES 4
Geoff Wild
Honored Contributor
Solution

Re: Memory benchmarking tools

Check this out - called memdetail - got it from the forums here...:

# memdetail
Memory Stat total used avail %used
physical 10080.0 9737.5 342.5 97%
active virtual 9586.4 4655.6 4930.8 49%
active real 7257.5 3446.8 3810.7 47%
memory swap 7697.1 1664.7 6032.5 22%
device swap 26528.0 9298.5 17229.5 35%


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.
Alex Macdonald
Advisor

Re: Memory benchmarking tools

Is that a standard tool, part of a package, or an open-source tool? I looked for memdetail on and HP-UX 11.0 and 11i box and I can't find it. Thanks!
Alex Macdonald
Advisor

Re: Memory benchmarking tools

Nevermind, I didn't see that it was attached. Thanks again!
Sridhar Bhaskarla
Honored Contributor

Re: Memory benchmarking tools

Hi Alex,

See if you have Measureware installed "/opt/perf/bin/extract". If so, you can get good details on your memory stats with the following script.

Adjust FROM and TO and you will get stats during that time frame into a file called stats.out

#!/usr/bin/ksh

FROM=02/01/04
TO=02/04/04
LOG=stats.out

cat << EOF > /tmp/mwa$$
FORMAT ASCII
HEADINGS ON
SEPARATOR="|"
MISSING=0
DATA TYPE GLOBAL
DATE
TIME

GBL_MEM_UTIL
GBL_MEM_USER_UTIL
GBL_SWAP_SPACE_UTIL
GBL_MEM_PAGEOUT_RATE
GBL_MEM_SWAPOUT_RATE
TBL_BUFFER_CACHE_USED
GBL_MEM_QUEUE

EOF


/opt/perf/bin/extract -gG -r /tmp/mwa$$ -b $FROM -e $TO -xp -f $LOG

rm -f /tmp/mwa$$


-Sri
You may be disappointed if you fail, but you are doomed if you don't try