Sun Solaris-找出处理器和核心的数量


8

我们的SPARC服务器正在运行Sun Solaris 10。我想找出处理器的实际数量以及每个处理器的核心数量。

psrinfo和prtdiag的输出是不明确的:

$psrinfo -v
Status of virtual processor 0 as of: dd/mm/yyyy hh:mm:ss
  on-line since dd/mm/yyyy hh:mm:ss.
  The sparcv9 processor operates at 1592 MHz,
        and has a sparcv9 floating point processor.
Status of virtual processor 1 as of: dd/mm/yyyy hh:mm:ss
  on-line since dd/mm/yyyy hh:mm:ss.
  The sparcv9 processor operates at 1592 MHz,
        and has a sparcv9 floating point processor.
Status of virtual processor 2 as of: dd/mm/yyyy hh:mm:ss
  on-line since dd/mm/yyyy hh:mm:ss.
  The sparcv9 processor operates at 1592 MHz,
        and has a sparcv9 floating point processor.
Status of virtual processor 3 as of: dd/mm/yyyy hh:mm:ss
  on-line since dd/mm/yyyy hh:mm:ss.
  The sparcv9 processor operates at 1592 MHz,
        and has a sparcv9 floating point processor.

_

$prtdiag -v
System Configuration: Sun Microsystems  sun4u Sun Fire V445
System clock frequency: 199 MHZ
Memory size: 32GB
==================================== CPUs ====================================
               E$          CPU                    CPU
CPU  Freq      Size        Implementation         Mask    Status      Location
---  --------  ----------  ---------------------  -----   ------      --------
0    1592 MHz  1MB         SUNW,UltraSPARC-IIIi    3.4    on-line     MB/C0/P0
1    1592 MHz  1MB         SUNW,UltraSPARC-IIIi    3.4    on-line     MB/C1/P0
2    1592 MHz  1MB         SUNW,UltraSPARC-IIIi    3.4    on-line     MB/C2/P0
3    1592 MHz  1MB         SUNW,UltraSPARC-IIIi    3.4    on-line     MB/C3/P0

_

$more /etc/release
                       Solaris 10 8/07 s10s_u4wos_12b SPARC
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007
                          Patch Cluster - EIS 29/01/08(v3.1.5)

我还可以使用其他什么方法?

编辑:

看来我们有一个4处理器系统,每个系统都有一个内核:

$psrinfo -p
4

_

$psrinfo -pv
The physical processor has 1 virtual processor (0)
  UltraSPARC-IIIi (portid 0 impl 0x16 ver 0x34 clock 1592 MHz)
The physical processor has 1 virtual processor (1)
  UltraSPARC-IIIi (portid 1 impl 0x16 ver 0x34 clock 1592 MHz)
The physical processor has 1 virtual processor (2)
  UltraSPARC-IIIi (portid 2 impl 0x16 ver 0x34 clock 1592 MHz)
The physical processor has 1 virtual processor (3)
  UltraSPARC-IIIi (portid 3 impl 0x16 ver 0x34 clock 1592 MHz)

Answers:


17

该命令psrinfo -pv是您要查找的命令。它提供了物理cpus数以及每个物理处理器的虚拟处理器数。

例如在V880上,它看起来像这样:

The physical processor has 1 virtual processor (0)
  UltraSPARC-III+ (portid 0 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (1)
  UltraSPARC-III+ (portid 1 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (2)
  UltraSPARC-III+ (portid 2 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (3)
  UltraSPARC-III+ (portid 3 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (4)
  UltraSPARC-III+ (portid 4 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (5)
  UltraSPARC-III+ (portid 5 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (6)
  UltraSPARC-III+ (portid 6 impl 0x15 ver 0x23 clock 900 MHz)
The physical processor has 1 virtual processor (7)
  UltraSPARC-III+ (portid 7 impl 0x15 ver 0x23 clock 900 MHz)

希望能有所帮助。:-)

编辑

多核计算机具有此输出

The physical processor has 4 virtual processors (0-3)
  SPARC64-VI (portid 1024 impl 0x6 ver 0x93 clock 2150 MHz)
The physical processor has 4 virtual processors (8-11)
  SPARC64-VI (portid 1032 impl 0x6 ver 0x93 clock 2150 MHz)

T1000看起来像:物理处理器具有16个虚拟处理器(0-15)UltraSPARC-T1(cpuid 0时钟1000 MHz)
slovon

X4170看起来像:物理处理器具有8个虚拟处理器(0-7)x86(芯片ID 0x0真正的Intel系列6模型26步骤5时钟2267 MHz)Intel®Xeon®CPU E5520 @ 2.27GHz
斯洛伐克

3

您可以使用psrinfo -p命令检查物理处理器的数量。

root @ sunt2000:/#uname -a SunOS sunt2000 5.10 Generic_139555-08 sun4v sparc SUNW,Sun-Fire-T200

检查物理处理器的数量

root @ sunt2000:/#psrinfo

-p 1

从以上相同命令输出详细信息。

root @ sunt2000:/#psrinfo -vp

物理处理器具有32个虚拟处理器(0-31)

UltraSPARC-T1(芯片0,时钟1200 MHz)

下面是具有UltraSPARC IIIi的Sun Fire V445,它是单核。

root @ sunv445:/#uname -a

SunOS sunv445 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V445

root @ sunv445:/#psrinfo

从11/05/2008 04:27:24上线0

自11/05/2008 04:27:24以来1个在线

2在线上自11/05/2008 04:27:16

它具有3个物理处理器。

root @ sunv445:/#psrinfo -p

3

我相信只有UltraSPARC IV是双核的。IIIi没有问题

root @ sunv445:/#psrinfo -vp

物理处理器具有1个虚拟处理器(0)

UltraSPARC-IIIi(端口0 impl 0x16 ver 0x34时钟1592 MHz)

物理处理器具有1个虚拟处理器(1)

UltraSPARC-IIIi(端口1 impl 0x16 ver 0x34时钟1592 MHz)

物理处理器具有1个虚拟处理器(2)

UltraSPARC-IIIi(端口2 impl 0x16 ver 0x34时钟1592 MHz)



1

“ kstat cpu_info”报告的信息可用于确定您有多少个处理器(插槽),每个处理器有多少个内核以及每个内核有多少个CMP线程。

如果您不关心内核和CMP线程之间的区别,则“ psrinfo -pv”就足够了。


0

总有

dmesg

我怀疑您的prtdiag -v虽然在“位置”字段中很好地列出了核心。看起来您只有一个CPU,四核?


嗯,这就是它的样子,但是我不相信有四核UltraSPARC-IIIi可用!
Brian Knoblauch

Sun主页未提及此类服务器(和CPU)的内核。我认为物理数量为4,每个核心一个。但是,我们将看到psrinfo -pv所说的:-)
chrw

0

不确定是否有帮助,但是会出现一个双处理器UltraSPARC-IIIi框,如下所示:

0    1280 MHz  1MB         SUNW,UltraSPARC-IIIi    2.4    on-line     MB/CPU0
1    1280 MHz  1MB         SUNW,UltraSPARC-IIIi    2.4    on-line     MB/CPU1

-2

都是错的。。。到目前为止,仅靠命令行就无法获得内核数。那里没有任何东西会直接告诉您,认为您可以做一些数学运算来告诉您一个想法,并且取决于您的盒子多大了。

您必须了解所购买的CPU内核,并查看硬件规格,然后才能从那里计算每个内核的线程。现在,sun现在推出了8核,如果四核上的物理CPU数量多于8核系统上的物理CPU数量,则您甚至可以获得相同数量的虚拟CPU。


1
您现在可以获得核心数量。请参见Solaris 11 Express。%psrinfo -pv物理处理器具有2个核心和4个虚拟处理器(0-3)核心具有2个虚拟处理器(0 1)核心具有2个虚拟处理器(2 3)SPARC64-VI(端口号1024 impl 0x6 ver 0x90时钟) 2150 MHz)物理处理器具有2个核心和4个虚拟处理器(40-43)核心具有2个虚拟处理器(40 41)核心具有2个虚拟处理器(42 43)SPARC64-VI(端口1064 impl 0x6 ver 0x90时钟2150) MHz)
Jodie C
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.