------------------------------------------------------------------------
# /usr/sbin/prtdiag -v
# /usr/sbin/psrinfo
# /usr/sbin/prtconf |grep Memory
# /bin/mpstat 1
# /bin/vmstat 1
# /bin/sar 1 10
------------------------------------------------------------------------
CPU 및 메모리 용량 관련 확인
# /usr/sbin/prtdiag -v
시스템 구성: Sun Microsystems sun4v Sun Fire(TM) T1000
시스템 클록 주파수: 200 MHz
메모리 크기: 8184 MB
================================ 가상 CPU ================================
CPU ID Frequency Implementation Status
------ --------- ---------------------- -------
0 1000 MHz SUNW,UltraSPARC-T1 on-line
1 1000 MHz SUNW,UltraSPARC-T1 on-line
2 1000 MHz SUNW,UltraSPARC-T1 on-line
3 1000 MHz SUNW,UltraSPARC-T1 on-line
4 1000 MHz SUNW,UltraSPARC-T1 on-line
5 1000 MHz SUNW,UltraSPARC-T1 on-line
6 1000 MHz SUNW,UltraSPARC-T1 on-line
7 1000 MHz SUNW,UltraSPARC-T1 on-line
8 1000 MHz SUNW,UltraSPARC-T1 on-line
9 1000 MHz SUNW,UltraSPARC-T1 on-line
10 1000 MHz SUNW,UltraSPARC-T1 on-line
11 1000 MHz SUNW,UltraSPARC-T1 on-line
12 1000 MHz SUNW,UltraSPARC-T1 on-line
13 1000 MHz SUNW,UltraSPARC-T1 on-line
14 1000 MHz SUNW,UltraSPARC-T1 on-line
15 1000 MHz SUNW,UltraSPARC-T1 on-line
16 1000 MHz SUNW,UltraSPARC-T1 on-line
17 1000 MHz SUNW,UltraSPARC-T1 on-line
18 1000 MHz SUNW,UltraSPARC-T1 on-line
19 1000 MHz SUNW,UltraSPARC-T1 on-line
20 1000 MHz SUNW,UltraSPARC-T1 on-line
21 1000 MHz SUNW,UltraSPARC-T1 on-line
22 1000 MHz SUNW,UltraSPARC-T1 on-line
23 1000 MHz SUNW,UltraSPARC-T1 on-line
========================= IO 구성 =========================
IO
Location Type Slot Path Name Model
----------- ----- ---- --------------------------------------------- ------------------------- ---------
MB/NET0 PCIE MB /pci@7c0/pci@0/network@4 network-pci14e4,1668
MB/NET1 PCIE MB /pci@7c0/pci@0/network@4,1 network-pci14e4,1668
MB/NET2 PCIX MB /pci@7c0/pci@0/pci@8/network@1 network-pci108e,1648
MB/NET3 PCIX MB /pci@7c0/pci@0/pci@8/network@1,1 network-pci108e,1648
MB/PCIX PCIX MB /pci@7c0/pci@0/pci@8/scsi@2 scsi-pci1000,50 LSI,1064
========================= 하드웨어 개정 =======================================
시스템 PROM 개정:
----------------------
OBP 4.25.12 2008/03/23 13:27
IO ASIC 개정:
------------------
Location Path Device Revision
-------------------- --------------------------------------------- ------------------------------ ---------
MB/IO-BRIDGE /pci@780 SUNW,sun4v-pci 0
MB/SAS-SATA-HBA /pci@7c0 SUNW,sun4v-pci 0
MB/SAS-SATA-HBA /pci@7c0/pci@0 pciex1166,103.b5 181
MB/SAS-SATA-HBA /pci@7c0/pci@0/pci@8 pci1166,104.b4 180
MB/GBE0 /pci@7c0/pci@0/network@4 pci14e4,1668.108e.1668.a3 163
MB/GBE0 /pci@7c0/pci@0/network@4,1 pci14e4,1668.108e.1668.a3 163
MB/GBE1 /pci@7c0/pci@0/pci@8/network@1 pci14e4,1648.108e.1648.10 16
MB/GBE1 /pci@7c0/pci@0/pci@8/network@1,1 pci14e4,1648.108e.1648.10 16
MB/SAS-SATA-HBA /pci@7c0/pci@0/pci@8/scsi@2 pci1000,50.1000.3020.2 2
-----------------------------------------------------------------------------------------------------------
CPU에 대한 정보 확인
# /usr/sbin/psrinfo
0 온라인 11/19/2009 14:50:22 이후
1 온라인 11/19/2009 14:50:23 이후
2 온라인 11/19/2009 14:50:23 이후
3 온라인 11/19/2009 14:50:23 이후
4 온라인 11/19/2009 14:50:23 이후
5 온라인 11/19/2009 14:50:23 이후
6 온라인 11/19/2009 14:50:23 이후
7 온라인 11/19/2009 14:50:23 이후
8 온라인 11/19/2009 14:50:23 이후
9 온라인 11/19/2009 14:50:23 이후
10 온라인 11/19/2009 14:50:23 이후
11 온라인 11/19/2009 14:50:23 이후
12 온라인 11/19/2009 14:50:23 이후
13 온라인 11/19/2009 14:50:23 이후
14 온라인 11/19/2009 14:50:23 이후
15 온라인 11/19/2009 14:50:23 이후
16 온라인 11/19/2009 14:50:23 이후
17 온라인 11/19/2009 14:50:23 이후
18 온라인 11/19/2009 14:50:23 이후
19 온라인 11/19/2009 14:50:23 이후
20 온라인 11/19/2009 14:50:23 이후
21 온라인 11/19/2009 14:50:23 이후
22 온라인 11/19/2009 14:50:23 이후
23 온라인 11/19/2009 14:50:23 이후
메모리 용량 확인
# /usr/sbin/prtconf |grep Memory
Memory size: 8184 Megabytes
1초단위로 CPU사용량 확인
# /bin/mpstat 1
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 5 0 414 301 100 145 0 1 3 0 196 0 1 0 98
1 1 0 21 58 0 113 0 1 1 0 141 0 0 0 99
2 1 0 11 20 0 37 0 1 0 0 50 0 0 0 100
3 0 0 6 5 0 7 0 0 0 0 15 0 0 0 100
4 4 0 34 56 0 111 0 2 3 0 151 0 1 0 99
5 1 0 8 7 0 11 0 1 0 0 19 0 0 0 100
6 1 0 3 2 0 1 0 0 0 0 5 0 0 0 100
7 0 0 2 1 0 0 0 0 0 0 2 0 0 0 100
8 4 0 32 61 0 123 0 2 3 0 162 0 1 0 99
9 1 0 6 4 0 6 0 0 0 0 12 0 0 0 100
10 0 0 2 3 0 3 0 0 0 0 3 0 0 0 100
11 0 0 2 10 9 0 0 0 0 0 2 0 0 0 100
12 3 0 35 72 10 115 0 1 4 0 151 0 1 0 99
13 1 0 10 9 3 9 0 0 0 0 17 0 0 0 100
14 0 0 3 2 0 1 0 0 0 0 4 0 0 0 100
15 0 0 1 1 0 0 0 0 0 0 2 0 0 0 100
16 3 0 33 61 0 123 0 2 3 0 166 0 1 0 99
17 1 0 7 5 0 7 0 0 0 0 14 0 0 0 100
18 0 0 5 2 0 1 0 0 0 0 3 0 0 0 100
19 0 0 1 1 0 0 0 0 0 0 1 0 0 0 100
20 3 0 30 58 0 114 0 1 3 0 152 0 1 0 99
21 1 0 7 6 0 10 0 0 0 0 17 0 0 0 100
22 0 0 3 2 0 1 0 0 0 0 4 0 0 0 100
23 0 0 1 1 0 1 0 0 0 0 2 0 0 0 100
1초 단위로 메모리 사용량 확인
# /bin/vmstat 1
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr rm s1 -- -- in sy cs us sy id
0 0 0 9024912 2403952 14 32 2 25 25 0 0 -0 3 0 0 748 1288 941 0 0 100
0 0 0 8413840 1749544 7 17 0 0 0 0 0 0 0 0 0 797 2245 1014 0 0 100
0 0 0 8413648 1749384 9 4 0 55 55 0 0 0 4 0 0 757 1487 995 0 0 100
0 0 0 8413648 1749392 2 4 0 0 0 0 0 0 0 0 0 742 1466 953 0 0 100
0 0 0 8418400 1753568 4 6 0 0 0 0 0 0 0 0 0 720 2184 964 0 0 100
0 0 0 8418400 1753616 8 6 0 48 48 0 0 0 2 0 0 738 1451 986 0 0 100
0 0 0 8418400 1753624 5 4 0 8 8 0 0 0 1 0 0 738 2009 993 0 0 99
0 0 0 8418400 1753624 2 4 0 0 0 0 0 0 13 0 0 720 1420 964 0 1 99
0 0 0 8418400 1753600 13 4 0 47 47 0 0 0 4 0 0 741 1444 985 0 0 100
1초단위로 10번의 performance 확인
# /bin/sar 1 10
SunOS MY_SUN 5.10 Generic_139555-08 sun4v 03/31/2010
15:10:25 %usr %sys %wio %idle
15:10:26 3 2 0 95
15:10:27 0 0 0 100
15:10:28 0 1 0 99
15:10:29 0 0 0 100
15:10:30 1 1 0 98
15:10:31 0 1 0 99
15:10:33 0 0 0 100
15:10:34 0 1 0 99
15:10:35 2 2 0 96
15:10:36 0 0 0 100
Average 1 1 0 99