1834660 Members
2299 Online
110069 Solutions
New Discussion

RAM on HP-UX

 
nagendra_3
Advisor

RAM on HP-UX

Hi,
How can i know the exact size of the RAM on HP-UX

I performed a TOP ,

I get the following, ( Virtual ,real and free ) which one should i consider ?

Tks,
nag
Knowledge is Power
7 REPLIES 7
Helen French
Honored Contributor

Re: RAM on HP-UX

Try any of these:

# dmesg (look for physical memory area in bottom)

# sam -> performance monitors -> system properties

# stm -> and check for RAM info

Also, check fromm the boot console menu
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: RAM on HP-UX

Nag,

I use this little script:

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: RAM on HP-UX

Hi Nag,

How much memory do I have
a5:/ 112 # echo "selclass qualifier memory;info;wait;infolog" | cstm | grep 'Total Configured'
Total Configured Memory : 2048 MB
a5:/ 113 # echo 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/mem | perl -nle'/(\d+)/&&print$1*4,"k"'
2097152k
a5:/ 114 # grep Physical /var/adm/syslog/syslog.log
Aug 25 08:01:07 a5 vmunix: Physical: 2097152 Kbytes, lockable: 1562360 Kbytes, available: 1801856 Kbytes
a5:/ 115 #

http://www.cmve.net/~merijn/

Kind regards,
Robert-Jan
Sridhar Bhaskarla
Honored Contributor

Re: RAM on HP-UX

Hi,

There are couple of ways

grep -i "physical" /var/adm/syslog/syslog.log. You should see Physical: xxxxx Kbytes. You will get it only if you don't recycle syslog periodically.

If you have online diagnostics

echo "map;selclass type memory;info;wait;infolog;dong;ok;q" |cstm

Full proof method:

echo "phys_mem_pages/D" |adb -k /stand/vmunix /dev/kmem

Multiply the value you get in the above with 4 to get the memory in KB.

-Sri




You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: RAM on HP-UX

So many ways:

Script attached
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
Geoff Wild
Honored Contributor

Re: RAM on HP-UX

And another - script attached.

Output looks like:

# hpmem
HP-UX svr004 B.11.11 U 9000/800 2504392628 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 806 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 8
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.
Tim D Fulford
Honored Contributor

Re: RAM on HP-UX

glance -m (if you have glance)

Tim
-