Operating System - HP-UX
1751840 Members
5355 Online
108782 Solutions
New Discussion юеВ

Re: Differentiating between Core and CPU

 
Vineet Deshpande
Frequent Advisor

Differentiating between Core and CPU

Hi,

I am interested in identifying a core from a physical CPU in HP-UX.

Is there a command which will give me this information?

Will the STM utility give me that information?

Thanks,

Vineet
12 REPLIES 12
Jozef_Novak
Respected Contributor

Re: Differentiating between Core and CPU

Hello,

STM is not the way to find this out. Each computing core is presented as a processor to the system I/O tree. So if you have a dual core CPU, you will see two instances of "processor" class.

J.
Pete Randall
Outstanding Contributor

Re: Differentiating between Core and CPU

ioscan also identifies each individual core as a processor:

# ioscan |grep proc
120 processor Processor
121 processor Processor
122 processor Processor
123 processor Processor


Pete

Pete
Paul Cross_1
Respected Contributor

Re: Differentiating between Core and CPU

For IA64 machines:

machinfo will show:
processor family:
31 for single core
32 for dual core

PS: 11.31 doesn't seem to show this info though
Vineet Deshpande
Frequent Advisor

Re: Differentiating between Core and CPU

So there is no way to differentiate? No way we can identify a core from an actual cpu ?

Thanks,

Vineet
Jozef_Novak
Respected Contributor

Re: Differentiating between Core and CPU

I would say that the way the system assigns CPU ids depends on a server model.

e.g. it will be different for cell based systems when compared to lower-end servers.

J.
Vineet Deshpande
Frequent Advisor

Re: Differentiating between Core and CPU

Is there any core-id or anything like this which will help us identify a core? In Solaris and Linux there is such a core-id present so I was wondering if there is something like that in HP UX ...

Thanks,

Vineet
Patrick Wallek
Honored Contributor

Re: Differentiating between Core and CPU

I just looked at 'xstm' on my rp4440. I currently have 2 x dual core procs in that server.

In looking at the "Information log" for the procs, the "Slot number" distinguishes which cpu cores belong each physical chip.

Two cores have a slot number of 0 and the other 2 cores have a slot number of 2.
Laurent Menase
Honored Contributor

Re: Differentiating between Core and CPU

on 11.31 just compile this:
#include
main()
{
printf("cpus = %d\n",mpctl(MPC_GETNUMSPUS,0,0));
printf("cores = %d\n",mpctl(MPC_GETNUMCORES_SYS,0,0));
printf("socket = %d\n",mpctl(MPC_GETNUMSOCKETS_SYS,0,0));
}

Vineet Deshpande
Frequent Advisor

Re: Differentiating between Core and CPU

Hi Laurent,

Is there any way to get this information through any command ?

Thanks,

Vineet