1846275 Members
3761 Online
110256 Solutions
New Discussion

Re: memory usage info

 
Christian Marquardt_1
Regular Advisor

memory usage info

Hello,
on my HP/UX B.11.11 I need some informations about the memory usage.
Can anyone give me some ideas how to find it out?

kind regards
Christian
13 REPLIES 13
Calandrello
Trusted Contributor

Re: memory usage info

friend
vmstat 1 10
Pete Randall
Outstanding Contributor

Re: memory usage info

My tool of choice would be Glance. If you don't have Glance, you'll need to work with vmstat, top and sar. The man pages for each of these commands would be a good place to start.

My favorite key indicator is to run "vmstat 1 10" and look at the "po" column. Double digit numbers under "po" indicates that you're paging out or swapping and this is a sure sign of poor performance due to lack of memory. Ideally, you would like to see nothing but zeroes under "po".


Pete

Pete
Karsten Löperick
Valued Contributor

Re: memory usage info

Hello Christian,

"dmesg" is also a good command to get memory informations.
And of course "top" gives you also usefull infos.

Greetings
Karsten
Nothing is impossible
Peter Godron
Honored Contributor

Re: memory usage info

Chrstian,
for some suggestions for a quick check:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1033515

For more detailed info I would suggest Glance.
Calandrello
Trusted Contributor

Re: memory usage info

Friend
you can use the command: top or glance but this and paid and needs license to function, you can use it as trial for 3 months. case is for analyzes of more advanced performance would be necessario to use glance plus pak therefore the same has the collector of analyzes that it allows to collect given to generate grafic of analyzes for perfview.
siva0123
Trusted Contributor

Re: memory usage info

Hi,

As already said in these thread , u can use

1. dmesg
2. swapinfo
3. glance
4. SAM =>Performance monitor => system properties
5.vmstat


Read the man pages for the above commands to know more

Thanks,
Siva
Yogeeraj_1
Honored Contributor

Re: memory usage info

hi Christian,

if you want historical information about memory utilisation, then you should also look into mwa.


hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Jannik
Honored Contributor

Re: memory usage info

Even if this document is for solaris i find it usefull for all UNIX variations some more that others :-).
http://www.adminschoice.com/docs/iostat_vmstat_netstat.htm

It will give some knowhow as to how the standard UNIX performance tools works.
jaton
PVR
Valued Contributor

Re: memory usage info

Friend,

Please use 'glance -m'

It is more accurate compare to top and sar utility.

-PVR
Don't give up. Try till success...
Christian Marquardt_1
Regular Advisor

Re: memory usage info

If I look into SAM =>Performance monitor => system properties on the page "memory" I find the following:
Physical Memory: 16396.7 MB
Real Memory:
Active: 2418379.0 KB
Total: 4815660.5 KB

Now I find here 16 GB physical RAM and total memory 4.8 GB ... I think total memory and physical memory is the same?!?!?!?
Why the total memory shows only 4.8 GB instead of the 16 GB physical memory?

regards
Christian
Peter Godron
Honored Contributor

Re: memory usage info

Christian,
please read the following:
http://www.chapelhill.homeip.net/horton/copies/MemoryUsage-HPUX.htm

It covers a whole range of memory definitions and tools.

Also, a ITRC thread covering some more topics of a similar nature:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45018
Geoff Wild
Honored Contributor

Re: memory usage info

Download an compile the attached c program (will compile with HP-UX native compiler - just cc it)

Output like:

# memdetail
Memory Stat total used avail %used
physical 10080.0 3115.4 6964.6 31%
active virtual 657.2 534.5 122.7 81%
active real 313.3 220.8 92.5 70%
memory swap 7697.2 1771.9 5925.3 23%
device swap 26528.0 382.6 26145.4 1%

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.
Peter Godron
Honored Contributor

Re: memory usage info

Christian,
could you please complete the thread by awarding points to helpful answers and summarising the solution for you.

This will help resolution of similar problems in the future.