- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get Number of cpu cores and cpu thread on H...
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
тАО02-26-2009 04:35 AM
тАО02-26-2009 04:35 AM
How to get Number of cpu cores and cpu thread on HP itanium
I would like to know is there any command or c++ api which will give the following cpu information on HP
1. Number of physical processor
2. Number of logical processor( number of cores)
3. Number of threads (if multi threading enabled)
Thanks in advance
Chanthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 04:41 AM
тАО02-26-2009 04:41 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
machinfo
CPU info:
1 Intel(R) Itanium 2 9000 series processor (1.4 GHz, 12 MB)
399 MT/s bus, CPU version C2
2 logical processors (2 per socket)
...
and setboot
setboot
Primary bootpath : 0/0/0/3/0.0x6.0x0 (/dev/rdisk/disk4)
HA Alternate bootpath :
Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk5)
Autoboot is ON (enabled)
Hyperthreading : ON
: ON (next boot)
...
Hyperthreading works only with 11.31.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 04:47 AM
тАО02-26-2009 04:47 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
1&2 use "machinfo "
3 use "glance -Z "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 05:33 AM
тАО02-26-2009 05:33 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
#ioscan -fnC processor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 05:13 PM
тАО02-26-2009 05:13 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
The top command shows a line for each processor the OS sees
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 07:44 PM
тАО02-26-2009 07:44 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Thanks for all your replays
In my machine machinfo is giving the following output. its not showing anything about cores, it shows only toatls cpu count.
CPU info:
Number of CPUs = 4
Clock speed = 1400 MHz
Bus speed = 400 MT/s
CPUID registers
vendor information = "GenuineIntel"
processor serial number = 0x0000000000000000
processor version info = 0x0000000020000704
architecture revision: 0
processor family: 32 Intel(R) Itanium 2 9000 series
processor model: 0 Intel(R) Itanium 2 9000 series
processor revision: 7 Stepping C2
setboot will shows Hyperthreading ON/OFF. but is there any way to find out the eaxct count of threads and count of cores?
Thanks in advance
Chanthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 07:46 PM
тАО02-26-2009 07:46 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Please run the Nickel.script which has been provided by HP, you get more information in HTML format, very Cool and very impressive ..:)
You must run as root
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 08:34 PM
тАО02-26-2009 08:34 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Thanks for your reoplay.
I will clear my requerement here. I would like to create a c/c++ application which will claculate
1.Exact Number of physical processor
2.Exact Number of logical processor( number of cores)
3.Exact Number of threads (if multi threading enabled)
The problem with nickel script is that it will run only with root login and secondly I am getting some error messages from the script even if I run it as root.
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'U'.
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'D'.
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'X'.
adb: info: Option -k is deprecated.
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'X'.
Thanks and regards,
Chanthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 08:38 PM
тАО02-26-2009 08:38 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
See this recent thread about the same thing:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1317756
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 09:29 PM
тАО02-26-2009 09:29 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 11:35 PM
тАО02-26-2009 11:35 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Anybody having a c/c++ program which will return the above cpu information on HP itanium?
Thanks and regards,
Chanthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 12:21 AM
тАО02-27-2009 12:21 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
You can get CPU info from pstat_getprocessor(2), example 2:
http://docs.hp.com/en/B2355-60130/pstat.2.html#d0e604810
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 12:39 AM
тАО02-27-2009 12:39 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Thanks..
This will give total cpu count.
Is there any way to find out logical processors(cores) count and thread count on HP itanium 64. On x86 machines cpuid() will give the information. similarly any functionality available for HP itanium ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 12:58 AM
тАО02-27-2009 12:58 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
CPU == core.
Have you looked at struct pst_processor to see if there are any details about the type of processor?
You should be looking at the 11.31 Release Notes if you want to see about hyperthreading.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 03:25 AM
тАО02-27-2009 03:25 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
processor family: 32 Intel(R) Itanium 2 9000 series
processor model: 0 Intel(R) Itanium 2 9000 series
processor revision: 7 Stepping C2
Itanium 2 9000 series = dual core Montecito
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2009 05:34 AM
тАО03-02-2009 05:34 AM
Re: How to get Number of cpu cores and cpu thread on HP itanium
You can check it by entering shell
shell means EFISHELL which comes after reboot the server & enter the EFI shell
shell>info all;
or from run the nickel script
#./nickel
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 06:07 PM
тАО04-07-2009 06:07 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
I also have same question.
Do you slove this problem?
if then, plesae let me know it.
Really I want know
1. Number of physical processor
2. Number of logical processor( number of cores)
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 07:49 PM
тАО04-07-2009 07:49 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Consider to open your own thread!
"machinfo" in 11.23 reports the number of cores, in 11.31 it reports the number of modules and cores per CPU. HT is only possible in 11.31; check with "setboot".
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 10:31 PM
тАО04-07-2009 10:31 PM
Re: How to get Number of cpu cores and cpu thread on HP itanium
Please run Nickel script
Suraj