Operating System - HP-UX
1753522 Members
6565 Online
108795 Solutions
New Discussion юеВ

Re: How to get Number of cpu cores and cpu thread on HP itanium

 
Chanthu
New Member

Re: How to get Number of cpu cores and cpu thread on HP itanium

Hello,

Anybody having a c/c++ program which will return the above cpu information on HP itanium?

Thanks and regards,
Chanthu
Dennis Handly
Acclaimed Contributor

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 info

You can get CPU info from pstat_getprocessor(2), example 2:
http://docs.hp.com/en/B2355-60130/pstat.2.html#d0e604810
Chanthu
New Member

Re: How to get Number of cpu cores and cpu thread on HP itanium

Hi Dennis,

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 ?
Dennis Handly
Acclaimed Contributor

Re: How to get Number of cpu cores and cpu thread on HP itanium

>This will give total CPU count. Is there any way to find out logical processors(cores) count

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.
Torsten.
Acclaimed Contributor

Re: How to get Number of cpu cores and cpu thread on HP itanium

You already have your identifier:

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!   
Taifur
Respected Contributor

Re: How to get Number of cpu cores and cpu thread on HP itanium

Hi Chantu,

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
Henry_3
Occasional Contributor

Re: How to get Number of cpu cores and cpu thread on HP itanium

Hello Chanthu

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
Torsten.
Acclaimed Contributor

Re: How to get Number of cpu cores and cpu thread on HP itanium

@Henry:
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!   
Suraj K Sankari
Honored Contributor

Re: How to get Number of cpu cores and cpu thread on HP itanium

Hi,

Please run Nickel script

Suraj