1834658 Members
2939 Online
110069 Solutions
New Discussion

Memory Monitoring

 
SOLVED
Go to solution
Adam Scheblein
Advisor

Memory Monitoring

Greetings,

We are trying to monitor our memory usage on a system without glance, however none of the tools i have tried (vmstat, top) will give me the breakdown (or a total memory usage WITHOUT cache)

Am I missing something?? If not, then is there a way to do this??

thanks,
Adam
8 REPLIES 8
Jaime Bolanos Rojas.
Honored Contributor

Re: Memory Monitoring

Adam,

And did you already tried the trial version of sam, it will work for 60 days, and you can monitor everything that you want for that period of time.

Regards,

Jaime.
Work hard when the need comes out.
Adam Scheblein
Advisor

Re: Memory Monitoring

do you mean sam, sar, or glance?? Even with the Foundation OE you get sam for free
Jaime Bolanos Rojas.
Honored Contributor

Re: Memory Monitoring

Yes, just type sam in the command line, it should work, and glance if you did not receive in in a installation cd, you can always download it from the HP site.

Jaime.
Work hard when the need comes out.
TwoProc
Honored Contributor

Re: Memory Monitoring

To see if I could do it easily with Glance (since we now know you own it) - I'm checking out an idle server that's not doing much right now. I'm looking at the "Memory Report"

I see that I've got 24.0 G total ram on a server, and Sys Mem is 3.7G, and Buf Cache is 1.2G and user Mem is .5G and Free Mem is 18.7 G. So, Mem usage without Cache is :
Sys Mem + User Mem =
3.7G + .5G = 4.2 G.

And Free Mem (without Cache) is :
Free Mem + Buf Cache =
18.7G + 1.2G = 19.9G.

Does this get it for you, or are you looking for something else?
We are the people our parents warned us about --Jimmy Buffett
TwoProc
Honored Contributor

Re: Memory Monitoring

To see if I could do it easily with Glance (since we now know you own it) - I'm checking out an idle server that's not doing much right now. I'm looking at the "Memory Report"

I see that I've got 24.0 G total ram on a server, and Sys Mem is 3.7G, and Buf Cache is 1.2G and user Mem is .5G and Free Mem is 18.7 G. So, Mem usage without Cache is :
Sys Mem + User Mem =
3.7G + .5G = 4.2 G.

And Free Mem (without Cache) is :
Free Mem + Buf Cache =
18.7G + 1.2G = 19.9G.

Does this get it for you, or are you looking for something else?

HTH
We are the people our parents warned us about --Jimmy Buffett
Adam Scheblein
Advisor

Re: Memory Monitoring

The question was for a system WITHOUT glance. (I didn't think glance was free)
Bill Hassell
Honored Contributor
Solution

Re: Memory Monitoring

Without Glance, you have a serious task of scripting and calculating ahead of you. Memory usage in HP-UX is extremely complex. Unlike simple OS maps, HP-UX has memory objects such as the kernel, the dynamic buffer cache, shared libraries, shared executables, memory mapped files, and user program data areas.

Many of these elements directgly affect the use of memory, and others are shared which essentially reduces the use of memory. Most of these values require intimate knowledge of kernel entry points and will require looking at the HP-UX Internals book.

But the real question is: why bother? Because HP-UX is a virtual memory kernel, you can run whatever you want and memory and swap space will be allocated as needed. If you run out of swap space, just add another disk. Of course, using swap space seriously affects performance so look at vmstat column po (page out) to see how much paging is being done.

Now if you are asking: how much RAM does each program consume? then a crude asnwer is this line:

UNIX95= ps -e -o vsz,ruser,pid,ppid,args sort -rn

So unless you have lots of time to study the Internals book and do some heavy scripting, get a copy of Glance.


Bill Hassell, sysadmin
Adam Scheblein
Advisor

Re: Memory Monitoring

_