- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get cpu speed and cpu L2 cache size via API
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
тАО06-29-2009 12:59 AM
тАО06-29-2009 12:59 AM
how to get cpu speed and cpu L2 cache size via API
I would like to use API to solve it via pstat
could some one give me a C program to do that
My OS include 11v1 11v2 11v3
or tell me how to use pstat to do that
because I use command:machinfo only support Itanium 11.23 Above,but it display type are different 11.23 and 11.31,so I would like to use pstat API to do that
could someone help me?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:19 PM
тАО06-29-2009 09:19 PM
Re: how to get cpu speed and cpu L2 cache size via API
Try using the system call sysconf();
do a man on sysconf. You should be able find all the properties w.r.t the CPU.
_SC_CLOCKS_PER_SEC
_SC_CLK_TCK
or try using pstat_getproc().
there is a structure which has all the properties
pst_processor.
also don't forget to check the man for pstat_getproc
Thanks
Shivaprasad
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:52 PM
тАО06-29-2009 09:52 PM
Re: how to get cpu speed and cpu L2 cache size via API
Check below link regarding pstat as follows,
http://docs.hp.com/en/B9106-90009/pstat.2.html
http://docs.hp.com/en/B9073-90040/apbs01.html
You can check by taking nickel output
#cd /opt/contrib/bin
#./nickel
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 12:16 AM
тАО06-30-2009 12:16 AM
Re: how to get cpu speed and cpu L2 cache size via API
/opt/sfm/bin/CIMUtil -e root/cimv2 HP_Processor
this will list in the form
or you can as well use
confstr
Thanks
Shivaprasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2009 04:10 AM
тАО07-03-2009 04:10 AM
Re: how to get cpu speed and cpu L2 cache size via API
thanks
but it could not work on B.11.11 PA-RISC
it shows
bash: /opt/sfm/bin/CIMUtil: No such file or directory
another question
how to show cache size for HP UX
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2009 04:41 AM
тАО07-03-2009 04:41 AM
Re: how to get cpu speed and cpu L2 cache size via API
For HPUX 11iv1 11.11, you should have the latest OE which was released in December 2006.
You can try looking into pstat_ calls.
Thanks
Shivaprasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2009 05:07 AM
тАО07-03-2009 05:07 AM
Re: how to get cpu speed and cpu L2 cache size via API
Correction:
For 11iv1 the Latest OE is June 2009.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2009 05:22 AM
тАО07-03-2009 05:22 AM
Re: how to get cpu speed and cpu L2 cache size via API
> SEP: Correction: For 11iv1 the Latest OE is June 2009.
Sorry, that's wrong. The latest _Support Plus_ (standard patch bundle) is June 2009, but the last/latest Operating Environment (OE) Update Release for 11.11 is in fact December 2006. Shivaprasad was correct.
Regards!
...JRF...