General
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check RAM size on HPUX 11 box

SOLVED
Go to solution
Pinkal
Occasional Contributor

How to check RAM size on HPUX 11 box

Box Detail as under

HP-UX kautilya B.11.11 U 9000/800 (tj)

model:9000/800/A500-7X
17 REPLIES
Devender Khatana
Honored Contributor
Solution

Re: How to check RAM size on HPUX 11 box

Hi,

#dmesg |grep Physical

HTH,
Devender
Impossible itself mentions "I m possible"
Yogeeraj_1
Honored Contributor

Re: How to check RAM size on HPUX 11 box

hi,

try
echo "selclass qualifier memory;info;wait;infolog"|cstm

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

Re: How to check RAM size on HPUX 11 box

dmesg

look at Memory section

Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 3145728 Kbytes, lockable: 2426332 Kbytes, available: 2790624 Kbytes

Mel Burslan
Honored Contributor

Re: How to check RAM size on HPUX 11 box

echo phys_mem_pages/D | adb -k /stand/vmunix /dev/mem | awk '{print 4096*$2}'

this should give you the amount of physical memory you have on the system.

HTH
________________________________
UNIX because I majored in cryptology...
Devesh Pant_1
Esteemed Contributor

Re: How to check RAM size on HPUX 11 box

Pinkal,
as if all the solutions above were not enough.
Still I will tell you one more way to get the memory size:
Fire up glance
/opt/perf/bin/glance
and press m
you will see all the details.
thanks
DP
Fabio Ettore
Honored Contributor

Re: How to check RAM size on HPUX 11 box

Hi,

try by mstm

select memory and then Tools ---> Information ---> Run

or

REAL_MEM=`echo 'phys_mem_pages/D '| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256}'`
echo $REAL_MEM

or also

dmesg | grep -i physical

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Pinkal
Occasional Contributor

Re: How to check RAM size on HPUX 11 box

Thanks a lot all of you.

I am able to find the RAM.

Can any one know How to find CPU speed on same machine.

Joseph Loo
Honored Contributor

Re: How to check RAM size on HPUX 11 box

hi,

another method is thru SAM:

sam -> Performance Monitor -> System Properties -> Memory tab

regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Thayanidhi
Honored Contributor

Re: How to check RAM size on HPUX 11 box

Hi,

echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem

Will give the speed in Mhz.

Regds
TT
Attitude (not aptitude) determines altitude.
Joseph Loo
Honored Contributor

Re: How to check RAM size on HPUX 11 box

sam -> Performance Monitor -> System Properties -> Processor tab

regards.
what you do not see does not mean you should not believe
Pinkal
Occasional Contributor

Re: How to check RAM size on HPUX 11 box

Thanks a lot guys ...
Fabio Ettore
Honored Contributor

Re: How to check RAM size on HPUX 11 box

Hi Pinkal,

if people helped you don't forget to assign points...it is an etiquette on this forum.

No points please for this my post....

Thanks for your collaboration.

Best regards,
Fabio
WISH? IMPROVEMENT!
Geoff Wild
Honored Contributor

Re: How to check RAM size on HPUX 11 box

I know this is late - but here's a script called hpmem - output like:

# /usr/local/bin/hpmem
HP-UX pc0003 B.11.11 U 9000/800 2504392627 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 705 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 7



# cat /usr/local/bin/hpmem
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
# if 11iv2 or higher - get cpu this way
ver=$(uname -r | cut -d. -f3)
if ((ver > 22)); then
kval=`echo "processor_count/D" | adb /stand/vmunix /dev/kmem |tail -1|awk -F: '{print $2}' `
else
GetKernelSymbol "processor_count"
fi
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
# if 11iv2 or higher - get memory this way
ver=$(uname -r | cut -d. -f3)
if ((ver > 22)); then
kernel=$(/usr/sbin/kcpath -x)
hexval=$(echo "phys_mem_pages/A" | adb $kernel /dev/kmem|tail +2|awk '{print $2}')
REAL_MEM=$(echo ${hexval}=D|adb)
mb=$(expr ${REAL_MEM} / 256)
else
let mb=kval*4/1024 # convert pages to MB
fi
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval


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.
Ranveer
Advisor

Re: How to check RAM size on HPUX 11 box

hi pinkal
run the attached script and find the detail.
#./ranveer
Regds
Ranveer
Muthukumar_5
Honored Contributor

Re: How to check RAM size on HPUX 11 box

Check this for all resources.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=706790

hth.
Easy to suggest when don't know about the problem!
Ricardo Macedo
Occasional Advisor

Re: How to check RAM size on HPUX 11 box

May God bless you in everyway!

 

What shall I return to the Lord for all his goodness to me?

I will lift up the cup of salvation and call on the name of the Lord.

Psalm 116:12-13

Ricardo Macedo
sapoguheman
Frequent Advisor

Re: How to check RAM size on HPUX 11 box

machinfo shows it all :P