AIX中如何检查系统中逻辑和物理cpu的个数
发布网友
发布时间:2022-06-09 20:17
我来回答
共1个回答
热心网友
时间:2023-07-14 20:46
运行prtconf|more,选择查看物理处理器数量。
运行lsdev -Cc processor也可以查看物理CPU数。
smtctl查看线程数和CPU的绑定。
POWER5,POWER6的CPU是双线程,POWER7的CPU是四线程
比如:
root@localhost[/]#smtctl
This system is SMT capable.
SMT is currently enabled.
SMT boot mode is not set.
SMT threads are bound to the same physical processor.
proc0 has 2 SMT threads.
Bind processor 0 is bound with proc0
Bind processor 1 is bound with proc0
proc2 has 2 SMT threads.
Bind processor 2 is bound with proc2
Bind processor 3 is bound with proc2
proc4 has 2 SMT threads.
Bind processor 4 is bound with proc4
Bind processor 5 is bound with proc4
proc6 has 2 SMT threads.
Bind processor 6 is bound with proc6
Bind processor 7 is bound with proc6
可以看到,该系统具有SMT能力且当前SMT功能已启用。4个物理cpu对应着8个逻辑cpu。
root@localhost[/]#bindprocessor -q
The available processors are: 0 1 2 3 4 5 6 7
可以看到可用逻辑cpu个数是8个(0-7)。
root@localhost[/]#prtconf |more
System Model: IBM,8204-E8A
Machine Serial Number: 06D7A62
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6
Number Of Processors: 4 ==》物理cpu有4个
Processor Clock Speed: 3503 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-D7A62
root@localhost[/]#lsdev -Cc processor
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
proc4 Available 00-04 Processor
proc6 Available 00-06 Processor
可以看到系统中有4个物理cpu。
root@localhost[/]#
root@localhost[/]#vmstat
System configuration: lcpu=8 mem=7616MB
可以看到系统中有8个逻辑cpu。