[T5220:/]prtdiag -v | more ---> CPU, Memory 등 전반적인 hardware 확인
시스템 구성: Sun Microsystems sun4v SPARC Enterprise T5220
메모리 크기: 16512 MB
================================ 가상 CPU ================================
CPU ID Frequency Implementation Status
------ --------- ---------------------- -------
0 1165 MHz SUNW,UltraSPARC-T2 on-line
1 1165 MHz SUNW,UltraSPARC-T2 on-line
2 1165 MHz SUNW,UltraSPARC-T2 on-line
3 1165 MHz SUNW,UltraSPARC-T2 on-line
4 1165 MHz SUNW,UltraSPARC-T2 on-line
5 1165 MHz SUNW,UltraSPARC-T2 on-line
6 1165 MHz SUNW,UltraSPARC-T2 on-line
7 1165 MHz SUNW,UltraSPARC-T2 on-line
8 1165 MHz SUNW,UltraSPARC-T2 on-line
9 1165 MHz SUNW,UltraSPARC-T2 on-line
10 1165 MHz SUNW,UltraSPARC-T2 on-line
11 1165 MHz SUNW,UltraSPARC-T2 on-line
12 1165 MHz SUNW,UltraSPARC-T2 on-line
13 1165 MHz SUNW,UltraSPARC-T2 on-line
14 1165 MHz SUNW,UltraSPARC-T2 on-line
15 1165 MHz SUNW,UltraSPARC-T2 on-line
16 1165 MHz SUNW,UltraSPARC-T2 on-line
17 1165 MHz SUNW,UltraSPARC-T2 on-line
18 1165 MHz SUNW,UltraSPARC-T2 on-line
19 1165 MHz SUNW,UltraSPARC-T2 on-line
20 1165 MHz SUNW,UltraSPARC-T2 on-line
21 1165 MHz SUNW,UltraSPARC-T2 on-line
22 1165 MHz SUNW,UltraSPARC-T2 on-line
23 1165 MHz SUNW,UltraSPARC-T2 on-line
물리적 프로세서에 24 가상 프로세서 있음(0-23)UltraSPARC-T2 (chipid 0, clock 1165 MHz)
만약 해당 시스템의 Core당 Threads 확인하고 자 할 때 아래의 shell 파일을 넣어서 실행한다.그러면 보다 자세히 알 수 있다.[T5220:/]vi /showcpuinfo
#!/bin/bash /usr/bin/kstat -m cpu_info | egrep "chip_id|core_id|module: cpu_info" > /var/tmp/cpu_info.log nproc=`(grep chip_id /var/tmp/cpu_info.log | awk '{ print $2 }' | sort -u | wc -l | tr -d ' ')` ncore=`(grep core_id /var/tmp/cpu_info.log | awk '{ print $2 }' | sort -u | wc -l | tr -d ' ')` vproc=`(grep 'module: cpu_info' /var/tmp/cpu_info.log | awk '{ print $4 }' | sort -u | wc -l | tr -d ' ')` nstrandspercore=$(($vproc/$ncore)) ncoresperproc=$(($ncore/$nproc)) speedinmhz=`(/usr/bin/kstat -m cpu_info | grep clock_MHz | awk '{ print $2 }' | sort -u)` speedinghz=`echo "scale=2; $speedinmhz/1000" | bc` echo "Total number of physical processors: $nproc" echo "Number of virtual processors: $vproc" echo "Total number of cores: $ncore" echo "Number of cores per physical processor: $ncoresperproc" echo "Number of hardware threads (strands or vCPUs) per core: $nstrandspercore" echo "Processor speed: $speedinmhz MHz ($speedinghz GHz)" # now derive the vcpu-to-core mapping based on above information # echo -e "\n** Socket-Core-vCPU mapping **" let linenum=2 for ((i = 1; i <= ${nproc}; ++i )) do chipid=`sed -n ${linenum}p /var/tmp/cpu_info.log | awk '{ print $2 }'` echo -e "\nPhysical Processor $i (chip id: $chipid):" for ((j = 1; j <= ${ncoresperproc}; ++j )) do let linenum=($linenum + 1) coreid=`sed -n ${linenum}p /var/tmp/cpu_info.log | awk '{ print $2 }'` echo -e "\tCore $j (core id: $coreid):" let linenum=($linenum - 2) vcpustart=`sed -n ${linenum}p /var/tmp/cpu_info.log | awk '{ print $4 }'` let linenum=(3 * $nstrandspercore + $linenum - 3) vcpuend=`sed -n ${linenum}p /var/tmp/cpu_info.log | awk '{ print $4 }'` echo -e "\t\tvCPU ids: $vcpustart - $vcpuend" let linenum=($linenum + 4) done done rm /var/tmp/cpu_info.log[T5120:/]/showcpuinfo
Total number of physical processors: 1 --> 물리적 CPU 갯 수
Number of virtual processors: 32 --> 총 쓰레드 갯 수(CPU * Core * Thread)
Total number of cores: 4 --> 총 코어 갯 수
Number of cores per physical processor: 4 --> 물리적 CPU 당 Core 갯 수
Number of hardware threads (strands or vCPUs) per core: 8 --> Core 당 Thread 갯 수
Processor speed: 1165 MHz (1.16 GHz) --> CPU Clock
** Socket-Core-vCPU mapping **
Physical Processor 1 (chip id: 0):
Core 1 (core id: 516):
vCPU ids: 0 - 7
Core 2 (core id: 523):
vCPU ids: 16 - 23
Core 3 (core id: 530):
vCPU ids: 24 - 31
Core 4 (core id: 537):
vCPU ids: 32 - 39
-> cd /SYS/MB/CMP0
/SYS/MB/CMP0
-> show
/SYS/MB/CMP0
Targets:
NIU0
NIU1
PIU0
MCU0
MCU1
MCU2
MCU3
L2_BANK0
L2_BANK1
L2_BANK2
L2_BANK3
L2_BANK4
L2_BANK5
L2_BANK6
L2_BANK7
BR0
BR1
BR2
BR3
CORE0
CORE2
CORE3
CORE4
P0
P1
P2
P3
P4
P5
P6
P7
P16
P17
P18
P19
P20
P21
P22
P23
P24
P25
P26
P27
P28
P29
P30
P31
P32
P33
P34
P35
P36
P37
P38
P39
T_TCORE
T_BCORE
Properties:
type = Host Processor
Commands:
cd
show
MB/CMP0/P32
MB/CMP0/P33
MB/CMP0/P34
MB/CMP0/P35
MB/CMP0/P36
MB/CMP0/P37
MB/CMP0/P38
MB/CMP0/P39
'시스템 > Operating System' 카테고리의 다른 글
[Solaris] SPARC 장비에 Solaris 처음부터 설치하기!! [스압] (1) | 2016.09.02 |
---|---|
[Solaris] T계열 장비 firmware update (0) | 2016.09.02 |
[Solaris] ndd 명령을 통한 TCP Parameter 값 변경 (0) | 2016.09.02 |
[Storage] DAS, NAS, SAN의 기본개념 (0) | 2016.09.02 |
[Solaris] 사용자 로그인(profile) 환경설정 (0) | 2016.09.02 |