- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CPU frequency
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 10:45 PM
тАО08-11-2002 10:45 PM
when I issue the following command
echo "uti;sc product CPU;info;wait;il"|cstm
I obtain the dump that I attached to this posting (please have a look at attachment)
Although this is quite a detailed report I still cannot see at what frequency the CPUs operate.
How (where from) can I retrieve this information?
Regards
Ralph
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 10:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 10:53 PM
тАО08-11-2002 10:53 PM
Re: CPU frequency
This will give you in Mhz
CPU frequency.
#echo "itick_per_usec/D" | adb -k /stand/vmunix /dev/kmem
Also check
SAM--->performance MOnitor-->system properties
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 10:55 PM
тАО08-11-2002 10:55 PM
Re: CPU frequency
of course this is an ugly method, but you may try to use the kernel's global "iticks_per_10_msec/D". E.g. 550MHz means 550,000,000 iticks/second.
echo "iticks_per_10_msec/D" | adb /stand/vmunix /dev/kmem
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 11:03 PM
тАО08-11-2002 11:03 PM
Re: CPU frequency
Further info:-
1. 'getconf KERNEL_BITS' will return whether you are running 32- or 64-bit.
2. 'getconf HW_32_64_CAPABLE' will show whether your processor is 64-bit capable or not.
3. To find the processor speed (MHz):
echo itick_per_usec/D | adb -k stand/vmunix /dev/mem
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 11:13 PM
тАО08-11-2002 11:13 PM
Re: CPU frequency
echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 11:39 PM
тАО08-11-2002 11:39 PM
Re: CPU frequency
Does this still work when the kernel was compiled without a symbol table (viz. no debugging support).
However, using this oblique HP-UX method, would you mind telling me how to obtain a full (or more thorough) list of symbols (i.e. all the data I could query this way).
I've never used the adb before (because I've done no system programming in C on HP-UX so far).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 11:45 PM
тАО08-11-2002 11:45 PM
Re: CPU frequency
ADB info :-
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2002 11:48 PM
тАО08-11-2002 11:48 PM
Re: CPU frequency
http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058669230
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:07 AM
тАО08-12-2002 12:07 AM
Re: CPU frequency
Try this one to give you required info in Mhz.
HZ=`echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2`
(MHZ=$HZ/10000))
echo $MHZ
Cheers
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:23 AM
тАО08-12-2002 12:23 AM
Re: CPU frequency
many thanks for the adb tutorial,
although I fear I won't find time to carefully peruse it,
but it sure will give me some answers.
T.G.,
thanks for providing the useful link.
I wonder how one could collectively query several symbols at one go without the need to repaetedly start a new adb instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:35 AM
тАО08-12-2002 12:35 AM
Re: CPU frequency
Hi,
Writing a small c-program using calls
to sysconf() you will be able to get
this kind of info.
Here is a sample getting the cpu-speed
from the machine.
See man sysconf for more info.
One advantage with this method is that you
do not have to be logged in as user root.
#include
#include
#include
/* compile on hp-ux 10.20: */
/* cc -D_HPUX_SOURCE -o cpu_speed.exe cpu_speed.c */
/* Compile on hp-ux 11.xx */
/* cc -o cpu_speed.exe cpu_speed.c */
main()
{
struct pst_processor psp;
unsigned long int clock_speed, scclktick;
pstat_getprocessor(&psp, sizeof(psp), 1, 0);
scclktick=sysconf(_SC_CLK_TCK);
clock_speed = psp.psp_iticksperclktick * scclktick;
printf("clock speed is %ld Mhz\n", clock_speed/1000000);
}
Regards
Olav