物理CPU 虚拟CPU 逻辑CUP 个数查看

1.>lsdev|grep proc
proc0      Available 00-00 Processor
proc2      Available 00-02 Processor
proc4      Available 00-04 Processor
proc6      Available 00-06 Processor
proc8      Available 00-08 Processor
proc10     Available 00-10 Processor
proc12     Available 00-12 Processor
proc14     Available 00-14 Processor
----------****分割线***----------
lsdev 命令
用途
显示系统中的设备及其特征。
lsdev 命令显示设备配置数据库中设备的有关信息。
参考 http://study.chyangwa.com/IT/AIX/aixcmds3/lsdev.htm
----------*************----------

2. >vmstat
System configuration: lcpu=16 mem=16384MB ent=4.00

kthr    memory              page                    faults                cpu          
----- -----------    ------------------------     ------------    -----------------------
 r  b   avm   fre      re  pi  po  fr   sr  cy    in   sy  cs      us sy id  wa    pc    ec
12  5 651730 2656043   0   0   0   2    3   0     245 9150 4565    0  0  99  0   0.01   0.3
----------****分割线***----------
vmstat是Virtual Meomory Statistics(虚拟内存统计)的缩写,可对操作系统的虚拟内存、进程、CPU活动进行监视。它是对系统的整体情况进行统计,不足之处是无法对某个进程进行深入分析。
vmstat命令用来获得UNIX系统有关进程、虚存、页面交换空间及CPU活动的信息。这些信息反映了系统的负载情况。vmstat首次运行时显示自系统启动开始的各项统计信息,之后运行vmstat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。
参考 http://blog.sina.com.cn/s/blog_475839a50100dpzb.html
----------*************----------
3. >prtconf
System Model: IBM,9119-FHA
Machine Serial Number: 021D452
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6_Compat
Number Of Processors: 8
Processor Clock Speed: 5000 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 11 ydzf_test3
Memory Size: 16384 MB
Good Memory Size: 16384 MB
Platform Firmware level: EH350_103
Firmware Version: IBM,EH350_103
Console Login: enable
Auto Restart: true
Full Core: true
 
Network Information
        Host Name: ydzf_test3
        IP Address: 172.17.248.178
        Sub Netmask: 255.255.255.0
        Gateway: 172.17.248.1
        Name Server:
        Domain Name:
 
Paging Space Information
        Total Paging Space: 4096MB
        Percent Used: 1%
 
Volume Groups Information
==============================================================================
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            599         8           00..00..00..00..08
==============================================================================
 
INSTALLED RESOURCE LIST

The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
*   = Diagnostic support not available.
        
  Model Architecture: chrp
  Model Implementation: Multiple Processor, PCI bus
        
+ sys0                                                            System Object
+ sysplanar0                                                      System Planar
* vio0                                                            Virtual I/O Bus
* vscsi0           U9119.FHA.021D452-V11-C3-T1                    Virtual SCSI Client Adapter
* hdisk0           U9119.FHA.021D452-V11-C3-T1-L8100000000000000  Virtual SCSI Disk Drive
* ent0             U9119.FHA.021D452-V11-C2-T1                    Virtual I/O Ethernet Adapter (l-lan)
* vsa0             U9119.FHA.021D452-V11-C0                       LPAR Virtual Serial Adapter
* vty0             U9119.FHA.021D452-V11-C0-L0                    Asynchronous Terminal
+ L2cache0                                                        L2 Cache
+ mem0                                                            Memory
+ proc0                                                           Processor
+ proc2                                                           Processor
+ proc4                                                           Processor
+ proc6                                                           Processor
+ proc8                                                           Processor
+ proc10                                                          Processor
+ proc12                                                          Processor
+ proc14                                                          Processor
----------****分割线***----------

----------*************----------

4.>bindprocessor -q
The available processors are:  0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

5.总结:
1)lsdev -Cc processor 可以查看到虚拟处理器(Virtual CPU)是8个;
2)bindprocessor -q 可以看到逻辑处理器(Logical CPU)是16个;
3)vmstat 可以看到lcpu是逻辑CPU的个数是16个,ent是物理CPU的个数是4个;
4)prtconf 可以看到内存的大小是8G;


你可能感兴趣的:(AIX/Linux)