1833893 Members
1981 Online
110063 Solutions
New Discussion

Re: Itanium CPU Info

 
SOLVED
Go to solution
penelope_1
Advisor

Itanium CPU Info

Hi -

I have a little question on CPU info on an rx3600 running HP-UX 11.23. There seems to be different information when I run /usr/contrib/bin/machinfo vs. the cpu information in sam. The machinfo command gives CPU Clock speed = 1396 MHz and SAM gives CPU Clock Frequency: 399 MHz. I would have thought these number would have been the same - any ideas??
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: Itanium CPU Info

Yes - there is a patch regarding this.
(don't recall the number at this moment)

Consider to install the latest patch bundle.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: Itanium CPU Info

Yeah - SAM's wrong.

Try looking for SAM patches.


Pete

Pete
Torsten.
Acclaimed Contributor
Solution

Re: Itanium CPU Info

Have a look at this:

http://www4.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_34974

"CPU clock frequency displayed by SAM can differ from what is displayed by the command /usr/contrib/bin/machinfo (currently
available on Integrity Servers only)."

Take care of the dependencies.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: Itanium CPU Info

I re-wrote the hpmem script to display the correct cpu/memory info on ia64:

# cat /usr/local/bin/hpmem.ia64
#!/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 -o $hpux /dev/kmem | \
tr "\012" " " | \
awk -F: '{print $3}' |\
read kval
}
hpux=/stand/vmunix
rev=$(uname -r | cut -d. -f2)
/bin/uname -a
GetKernelSymbol "active_processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_usec"
print CPU Speed: $kval MHz
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
ver=$(uname -r | cut -d. -f3)
# if 11iv2 or higher - get memory this way
if ((ver > 22)); then
kernel=$(/usr/sbin/kcpath -x)
hexval=$(echo "phys_mem_pages/A" | adb -o $kernel /dev/kmem|tail +2|awk '{print $2}')
REAL_MEM=$(echo ${hexval}=D|adb -o)
mb=$(expr ${REAL_MEM} / 256)
else
let mb=kval*4/1024 # convert pages to MB
fi
print RAM Size: $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 "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval



kcusage is a great command to display usage of some of the kernel parameters:

# kcusage
Tunable Usage / Setting
=============================================
filecache_max 496451584 / 838860800
maxdsiz 26263552 / 1073741824
maxdsiz_64bit 2203648 / 4294967296
maxfiles_lim 42 / 4096
maxssiz 540672 / 8388608
maxssiz_64bit 98304 / 268435456
maxtsiz 35549184 / 100663296
maxtsiz_64bit 1212416 / 1073741824
maxuprc 3 / 256
max_thread_proc 26 / 1100
msgmni 2 / 512
msgtql 0 / 1024
nflocks 47 / 4096
ninode 837 / 8192
nkthread 370 / 8416
nproc 168 / 4200
npty 0 / 60
nstrpty 2 / 60
nstrtel 0 / 60
nswapdev 1 / 32
nswapfs 0 / 32
semmni 24 / 2048
semmns 58 / 4096
shmmax 17869008 / 1073741824
shmmni 7 / 400
shmseg 3 / 300

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

Re: Itanium CPU Info

thanks for all the information, i really appreciate it!