Operating System - HP-UX
1753310 Members
6498 Online
108792 Solutions
New Discussion

Re: Number of CPU cores in Server

 
Ajin_1
Valued Contributor

Number of CPU cores in Server

HI

There are several commands there to find out no of cpu's in server

#iosacn -fnkC -processor |grep processor |wc -l

#machinfo

#top -w

#print_manifest

 

Is that any command specific for finding the CPU cores in HP-UX

or  No of CPU = No of Cores ?

 

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Number of CPU cores in Server

If you have hyperthreading turned on, you may have more Logical CPUs than cores.

Ajin_1
Valued Contributor

Re: Number of CPU cores in Server

 No of CPU count  = No of Cores  am I correct?

 

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Patrick Wallek
Honored Contributor

Re: Number of CPU cores in Server

>> No of CPU count  = No of Cores  am I correct?

 

Not necessarily, no.

 

If you have single-core chips, then number of cores equals number of physical cpu chips.

 

If you have dual-core chips, then number of cores is 2 times the number of physical cpu chips.

 

If you have hyperthreading enabled then you multiply everything by 2 for the number of logical CPUs.

Torsten.
Acclaimed Contributor

Re: Number of CPU cores in Server

Due to very different servers there is no single command that works everywhere to find this out.

"machinfo" is probably the best. It works always on Itanium servers, with 11.31 it works with pa-risc systems too.

There are single-core, dual-core, quad-core and in near future 8-core CPUs out there.

What server do you have?


Example for quad-core:

# machinfo
CPU info:
1 Intel(R) Itanium(R) Processor 9320 (1.33 GHz, 16 MB)
4.79 GT/s QPI, CPU version E0
4 logical processors (4 per socket)
...


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

Re: Number of CPU cores in Server

>... number of physical CPU chips.

 

These are called sockets.

Artur-M
Occasional Advisor

Re: Number of CPU cores in Server

What is your OS version?

What CPU type is your machine?

 

Socket/core/LCPU makes a difference...

fuusmani
Advisor

Re: Number of CPU cores in Server

Hi Ajin,

if you have Glance or Glance Plus, it will show you the No of cores.

#glance

Ozer YUMSEK
Occasional Advisor

Re: Number of CPU cores in Server

Hi Ajin,

 

print_manifest command gives no of cpu.

 

#print_manifest

 

Look at the "System Hardware" part

 

Says Processors: 12

3 Intel Itanium Processor

12 logical processors (4 per socket)

 

Regards

RAJD1
Valued Contributor

Re: Number of CPU cores in Server

You can check cpu type and based on that you can determine what type of cpu core you have on the cpu, 

check in # cat /var/tombstones/ts99   file for cpu type , or from machine architecture, (#model) 

If you have motecito processor , that means it is dual core cpu.  There are different types of cpu with different cores, like madison or montevale etc. 

 

Hth,

Raj D.