1827343 Members
5747 Online
109963 Solutions
New Discussion

memory usage metrics

 
John Downs_1
Frequent Advisor

memory usage metrics

I would like to monitor memory usage on my workstations that are running 11.00. But I don't want to spent any money on software packages. Can sar or vmstat give me accurate measurements? If yes which options and which metric? Is there any other free tools that do this?

-john
I'd rather be fly fishing for trout!
12 REPLIES 12
S.K. Chan
Honored Contributor

Re: memory usage metrics

David Burgess
Esteemed Contributor

Re: memory usage metrics

Hi,

Also take a look at top, iostat and sa.

The following entries will collect stats for you. They are saved in /var/adm/sa

see man sa

0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1
5 23 * * 1-5 /usr/lib/sa/sa2 -s 1:00 -e 23:40 -i 300 -A

HTH,

Dave.
T G Manikandan
Honored Contributor

Re: memory usage metrics

There is a trial version of Glance plus available here

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1021,00.html

Thanks
harry d brown jr
Honored Contributor

Re: memory usage metrics

John,

for ACCURATE memory statistics only glance/measureware will do the job ACCURATELY. For "close enough for government work", then sar and vmstat will do.

glance/measureware has the hooks in the kernel, measuring all the commands that execute in a clock cycle.

But, if you don't want to spend money for glance, then sar and vmstat will have to do.

live free or die
harry
Live Free or Die
Barry O Flanagan
Respected Contributor

Re: memory usage metrics

Don't forget about swapinfo. That should give you a short and sweet version of your current memory usage.

swapinfo -am ...is handy.
John Downs_1
Frequent Advisor

Re: memory usage metrics

Thanks for all the good replies. Now I have two more questions. When using vmstat -S I was lead to believe that the si, so and po are the important metrics from this commands when you are interested in memory utilization. Is this true? Next question, according to HP-UX tuning and performance by Sauers and Weygant si and so are process deactivation and reactivation respectively. I thought an so (swap out) whould be deactivation and si (swap in) would be reactivation but the book has it the other way around. Was this a type or is it correct?

Thanks!

-john
I'd rather be fly fishing for trout!
Paula J Frazer-Campbell
Honored Contributor

Re: memory usage metrics

John

SO is swap out of memory to disk (active)/under control.

SI is swap in to memory from disk (deactive) used / finished.


HTH

Paula

If you can spell SysAdmin then you is one - anon
harry d brown jr
Honored Contributor

Re: memory usage metrics

John,

deactivation is "so" - if it needs to
reactivation is "si" - gets the page from swap

must be a typo

live free or die
harry
Live Free or Die
Paula J Frazer-Campbell
Honored Contributor

Re: memory usage metrics

Hi Harry

Have I got my logic the wrong way around, I am willing to be corrected.


;^(


Paula
If you can spell SysAdmin then you is one - anon
harry d brown jr
Honored Contributor

Re: memory usage metrics

Paula, It's probably just a "use" of the words "deactive/active":

by Bill Hassell:
http://www.interex.org/pubcontent/enterprise/may99/06usr.html

live free or die
harry
Live Free or Die
Paula J Frazer-Campbell
Honored Contributor

Re: memory usage metrics

Cheer Harry.

Paula
If you can spell SysAdmin then you is one - anon
John Downs_1
Frequent Advisor

Re: memory usage metrics

Thanks for all the help, case closed.

-john
I'd rather be fly fishing for trout!