Operating System - HP-UX
1833780 Members
2255 Online
110063 Solutions
New Discussion

Re: How to check type and clock size of processor?

 
zap_2
Advisor

How to check type and clock size of processor?

Hi unix gurus, how to check type and clock size of hp processor such as 4 PARISC 750 MHz using command line on hpux.Thanks in advance.
7 REPLIES 7
Peter Godron
Honored Contributor

Re: How to check type and clock size of processor?

zap,
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
==> gives processor speed

# echo runningprocs/D | adb -k /stand/vmunix /dev/mem
==> gives number of processors

Regards
Peter Godron
Honored Contributor

Re: How to check type and clock size of processor?

zap,
MODEL1=`model | cut -d / -f3`
grep "^$MODEL1" /usr/sam/lib/mo/sched.models

for the processor type.
Hope this aswers the question.
Regards
lawrenzo
Trusted Contributor

Re: How to check type and clock size of processor?

you can also use:

# echo "selclass qualifier cpu;info;wait;infolog" | cstm | grep Processor
hello
Ranjit_3
Advisor

Re: How to check type and clock size of processor?

Zap ,

To list all processors
$ /usr/sbin/ioscan -fnkC processor
To list running processor :
#echo runningprocs/D | adb -k /stand/vmunix /dev/mem
To see teh CPU Hhz
#echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem

To see the type of CPU :
$tail /var/tombstones/ts90

Peter Godron
Honored Contributor

Re: How to check type and clock size of processor?

Zap,
any feedback on all these answers?!
Hope this solved your problem.

If solved, can you please identify useful answers and close the thread.

Many Thanks
Geoff Wild
Honored Contributor

Re: How to check type and clock size of processor?

This little script does what you want plus more:

# 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 -k $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
GetKernelSymbol "processor_count"
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
let mb=kval*4/1024 # convert pages to MB
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 "nflocks"
print nflock: $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.
Peter Godron
Honored Contributor

Re: How to check type and clock size of processor?

Zap,
any feedback on all these answers?!
Hope this solved your problem.

If solved, can you please identify useful answers and close the thread.

Many Thanks