1834140 Members
2681 Online
110064 Solutions
New Discussion

Physical Memory in HP-UX

 
Nicky Power
Occasional Contributor

Physical Memory in HP-UX

What is the command to use when you need to find the physical memory of a HP-UX box...

A support company ran a command
ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 786432
stack(kbytes) 8192
memory(kbytes) 370064
coredump(blocks) unlimited
nofiles(descriptors) 4096
vmemory(kbytes) 4194304

This provides certain details such as above. it is recommended that we increase the memory setting... but before I do this I need to know how much we have...

If I was to increase the memory setting... how can this be done?

Thanking you,
7 REPLIES 7
Peter Godron
Honored Contributor

Re: Physical Memory in HP-UX

Niccky,
a few commands are possible:
dmesg | grep
Using SAM -> Performance Monitor -> System Properties -> Memory
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140933
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !


Steven E. Protter
Exalted Contributor

Re: Physical Memory in HP-UX

Shalom,

swapinfo -tam

Shows real and swap. Differentiats


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Coolmar
Esteemed Contributor

Re: Physical Memory in HP-UX

I found this excellent utility to let you know everything about your memory. I have attached it...I use it all the time. Here is a sample of the output from one of my systems.

HTH,
S.

Memory Stat total used avail %used
physical 6142.0 4648.3 1493.7 76%
active virtual 2311.2 2143.4 167.8 93%
active real 2102.9 1975.4 127.5 94%
memory swap 6142.0 3223.8 2918.2 52%
device swap 8192.0 2526.3 5665.7 31%
Geoff Wild
Honored Contributor

Re: Physical Memory in HP-UX

Actually, the one that coolmar attached should really be compiles for your system,

Here's a c program (just compile it with the native HP-UX compiler) called memdetail:

# memdetail
Memory Stat total used avail %used
physical 14240.0 12606.9 1633.1 89%
active virtual 15227.2 4860.9 10366.3 32%
active real 10316.3 3063.5 7252.8 30%
memory swap 11139.4 1788.3 9351.1 16%
device swap 26528.0 14599.9 11928.1 55%


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.
Sp4admin
Trusted Contributor

Re: Physical Memory in HP-UX

Hi,
you cam use swapinfo. But maybe you can also use Glance to get this information.

run glance and choose "m" for memory report.


sp,
Tom Danzig
Honored Contributor

Re: Physical Memory in HP-UX

Another (for HP-UX 11.x):

echo phys_mem_pages/D | adb -k /stand/vmunix /dev/mem | tail -1 | awk '{printf("%.2f MB\n",$2*.004096)}'
George Liu_4
Trusted Contributor

Re: Physical Memory in HP-UX

Answer's from HP professional:
echo phys_mem_pages/D | adb -k /stand/vmunix /dev/mem

Ordinary people:
dmesg |grep Physical