Operating System - HP-UX
1752785 Members
5923 Online
108789 Solutions
New Discussion

Re: How to check RAM size on HPUX 11 box

 
SOLVED
Go to solution
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
I am an HPE employee

Accept or Kudo

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

vit_foto
Occasional Collector

Re: How to check RAM size on HPUX 11 box

machinfo   is OK