Operating System - HP-UX
1753321 Members
6221 Online
108792 Solutions
New Discussion юеВ

Re: Can mpctl determine the total processors in HPUX?

 
kevin2008
New Member

Can mpctl determine the total processors in HPUX?

Is there any way to determine the total processors( enabled and disabled )in HPUX?
In addition, is there any way to determine the total cores(enabled and disabled) in HPUX?

by the way, It seems that mpctl and pstat just can determine the enable processors/cores.

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Can mpctl determine the total processors in HPUX?

mpctl(2) sure seems to say it can:
MPC_GETNUMSPUS_SYS This request returns the number of enabled spus ...

I assume mpctl(2) treats a processor as a core.
muruganantham raju
Valued Contributor

Re: Can mpctl determine the total processors in HPUX?

Hi Kevin,
sar -Mu 1 5 will get you the processors available in the system.

If you have glance, you can get more detailed data.

The following command will provide the statistics for each processor in the system including its state (enabled or disabled)
/opt/perf/bin/glance -a

Execute the following to get the number of CPU and cores in the system

# cat myadviser
print GBL_NUM_CPU
print GBL_NUM_CPU_CORE

# /opt/perf/bin/glance -aos ./myadviser

Regards,
Muru