Operating System - HP-UX
1834931 Members
2429 Online
110071 Solutions
New Discussion

programmatic way to obtain processor speed? -- not sam or adb

 
SOLVED
Go to solution
Richard Hubbell
Advisor

programmatic way to obtain processor speed? -- not sam or adb


Anyone have a way (not using sam or adb) to get the processor
speed? pstat, etc.?

Thanks.
3 REPLIES 3
Victor BERRIDGE
Honored Contributor

Re: programmatic way to obtain processor speed? -- not sam or adb

HP-UX titi B.11.00 D 9000/800 1132400572 64-user license
draco # echo itick_per_usec/D|adb -k /stand/vmunix /dev/kmem
itick_per_usec:
itick_per_usec: 180

Regards
Victor
Brian M. Fisher
Honored Contributor

Re: programmatic way to obtain processor speed? -- not sam or adb

HP document #:KBRC00000327

http://us-support.external.hp.com/cki/bin/doc.pl/

To determine processor speed:
echo itick_per_usec/D | adb -k /stand/vmunix dev/mem

Sorry I know of no way without adb.

Brian
<*(((>< er

Perception IS Reality
Mike Stroyan
Honored Contributor
Solution

Re: programmatic way to obtain processor speed? -- not sam or adb

Use pstat_getprocessor() to retrieve
procst.psp_iticksperclktick and
sysconf(_SC_CLK_TCK) to get clock ticks
per second. I have attached an example.