dmidecode - 리눅스 물리 메모리 용량, 제조사 등 확인 방법
2019. 11. 13. 17:49ㆍOS
사용 방법
$ dmidecode -h
Usage: dmidecode [OPTIONS]
Options are:
-d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)
-h, --help Display this help text and exit
-q, --quiet Less verbose output
-s, --string KEYWORD Only display the value of the given DMI string
-t, --type TYPE Only display the entries of given type
-u, --dump Do not decode the entries
--dump-bin FILE Dump the DMI data to a binary file
--from-dump FILE Read the DMI data from a binary file
--no-sysfs Do not attempt to read DMI data from sysfs files
--oem-string N Only display the value of the given OEM string
-V, --version Display the version and exit
먼저 t 옵션을 사용해서 사용 가능한 Type을 Display 해봅니다.
$ dmidecode -t
dmidecode: option requires an argument -- 't'
Type number or keyword expected
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot
확인할 부분은 메모리 이니 한번더 요청해 봅니다.
dmidecode --type memory
$ dmidecode --type memory
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
Handle 0x0000, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction
Type: Multi-bit ECC Maximum
Capacity: 1536 GB
Error Information Handle: Not Provided
Number Of Devices: 24
Handle 0x0002, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None Locator: Dimm 1
Bank Locator: CPU 1
Type: Other
Type Detail: Synchronous
Speed: 2133 MT/s
Manufacturer: Hynix
Serial Number: 809FB438
Asset Tag: Unknown
Part Number: HMA42GR7MFR4N-TF
Rank: 2
Configured Clock Speed: 1867 MT/s
Minimum Voltage: 1.2 V
Maximum Voltage: 1.2 V
Configured Voltage: 1.2 V
~ 이하 생략 ~
Physical Memory Array 는 보드의 정보라고 보시면 되고, 실제 Memory device 정보는 그 아래쪽에 있는 Memory Device 부분을 보면 됩니다.
제조사는 Manufacturer 로 Hynix 로 표시되어 있습니다.
또는 DMI type 옆으로 나오는 17을 사용해서 요청해도 됩니다.
예) dmidecode --type 17
$ dmidecode --type 17
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
Handle 0x0002, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None Locator: Dimm 1
Bank Locator: CPU 1
Type: Other
Type Detail: Synchronous
Speed: 2133 MT/s
Manufacturer: Hynix
Serial Number: 809FB438
Asset Tag: Unknown
Part Number: HMA42GR7MFR4N-TF
Rank: 2
Configured Clock Speed: 1867 MT/s
Minimum Voltage: 1.2 V
Maximum Voltage: 1.2 V
Configured Voltage: 1.2 V
~~ 이하 생략 ~~
상세한 type code는 아래와 같고, 보다 자세한 내용은 man dmidecode를 통해 확인 가능합니다.
Type Information ────────────────────────────────────────────
0 BIOS
1 System
2 Baseboard
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Devices Extended Information
42 Management Controller Host Interface
메모리 슬롯별 용량을 확인
메모리 슬롯별 용량을 확인하고 싶다면 grep 을 사용해서 확인이 가능합니다.
dmidecode -t 17 | grep Size
$dmidecode -t 17 | grep Size
Size: 16384 MB
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
0, 1, 12, 13 번 슬롯에 메모리가 장착되어 있고, 각각 16GB의 메모리인 것을 확인할 수 있습니다.
'OS' 카테고리의 다른 글
TLS 1.0, 1.1 지원 삭제 (2020년 완료 예정) (0) | 2019.11.21 |
---|---|
맥에서 TCPDUMP로 패킷 캡쳐하기 (0) | 2019.11.21 |
리눅스 메모리 용량 확인 (0) | 2019.10.23 |
리눅스 CPU 정보 확인하기 (0) | 2019.10.23 |
How to install macOS sierra in virtualbox on Windows10 (0) | 2019.10.22 |