Cara Melihat Jumlah RAM pada Centos

RamCloseup

Melihat Jumlah RAM Centos

Untuk Melihat jumlah RAM yang terinstall pada OS Linux Centos, kita dapat menggunakan command “dmidecode” untuk menampilkan informasinya.

[root@foo ~]# dmidecode --type=17
# dmidecode 2.10
SMBIOS 2.6 present.
Handle 0x002E, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM1A
Bank Locator: BANK0
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum0
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown
Handle 0x0030, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM1B
Bank Locator: BANK1
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum1
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x0032, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM2
Bank Locator: BANK2
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum2
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x0034, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM3
Bank Locator: BANK3
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: B5A03533
Asset Tag: AssetTagNum3
Part Number: HMT42GR7CMR4C-H9
Rank: Unknown

Handle 0x0036, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: P2_DIMM1A
Bank Locator: BANK4
Type: DDR3
Type Detail: Other
Speed: Unknown
Manufacturer: Manufacturer04
Serial Number: SerNum04
Asset Tag: AssetTagNum4
Part Number: ModulePartNumber04
Rank: Unknown

Handle 0x0038, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: P2_DIMM1B
Bank Locator: BANK5
Type: DDR3
Type Detail: Other
Speed: Unknown
Manufacturer: Manufacturer05
Serial Number: SerNum05
Asset Tag: AssetTagNum5
Part Number: ModulePartNumber05
Rank: Unknown

Handle 0x003A, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P2_DIMM2
Bank Locator: BANK6
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum6
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x003C, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P2_DIMM3
Bank Locator: BANK7
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: B5A03533
Asset Tag: AssetTagNum7
Part Number: HMT42GR7CMR4C-H9
Rank: Unknown

[root@3d-hv2 ~]# dmidecode --type=17
# dmidecode 2.10
SMBIOS 2.6 present.

Handle 0x002E, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM1A
Bank Locator: BANK0
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum0
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x0030, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM1B
Bank Locator: BANK1
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum1
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x0032, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM2
Bank Locator: BANK2
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum2
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x0034, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P1_DIMM3
Bank Locator: BANK3
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: B5A03533
Asset Tag: AssetTagNum3
Part Number: HMT42GR7CMR4C-H9
Rank: Unknown

Handle 0x0036, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: P2_DIMM1A
Bank Locator: BANK4
Type: DDR3
Type Detail: Other
Speed: Unknown
Manufacturer: Manufacturer04
Serial Number: SerNum04
Asset Tag: AssetTagNum4
Part Number: ModulePartNumber04
Rank: Unknown

Handle 0x0038, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: P2_DIMM1B
Bank Locator: BANK5
Type: DDR3
Type Detail: Other
Speed: Unknown
Manufacturer: Manufacturer05
Serial Number: SerNum05
Asset Tag: AssetTagNum5
Part Number: ModulePartNumber05
Rank: Unknown

Handle 0x003A, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P2_DIMM2
Bank Locator: BANK6
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: BBD51337
Asset Tag: AssetTagNum6
Part Number: HMT42GR7BMR4C-G7
Rank: Unknown

Handle 0x003C, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x002C
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: P2_DIMM3
Bank Locator: BANK7
Type: DDR3
Type Detail: Other
Speed: 800 MHz
Manufacturer: Hyundai
Serial Number: B5A03533
Asset Tag: AssetTagNum7
Part Number: HMT42GR7CMR4C-H9
Rank: Unknown

Jika kita ingin melihat besar RAM perkepingnya kita bisa menggunakan command “dmidecode –type-17 | grep Size”

[root@foo ~]# dmidecode --type=17 | grep Size
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: 16384 MB

Dari hasil diatas terlihat ada 2 keping RAM yang tidak terbaca kapasitasnya, ada kemungkinan keping RAM tersebut rusak atau memang tidak terinstall RAM. untuk mengetahui slot RAM di Centos yang rusak atau tidak terinstall RAM kita dapat menggunakan perintah “dmidecode –type=17 | grep Locator”

[root@foo ~]# dmidecode --type=17 | grep Locator
Locator: P1_DIMM1A
Bank Locator: BANK0
Locator: P1_DIMM1B
Bank Locator: BANK1
Locator: P1_DIMM2
Bank Locator: BANK2
Locator: P1_DIMM3
Bank Locator: BANK3
Locator: P2_DIMM1A
Bank Locator: BANK4
Locator: P2_DIMM1B
Bank Locator: BANK5
Locator: P2_DIMM2
Bank Locator: BANK6
Locator: P2_DIMM3
Bank Locator: BANK7

Dari hasil tersebut maka terlihat RAM yang rusak di Centos ada di slot P2_DIMM1A & P2_DIMM1B.

Selain “dmidecode” kita juga bisa menggunakan perintah “cat /proc/meminfo”

#cat /proc/meminfo
MemTotal: 2069956 kB
MemFree: 60652 kB
Buffers: 16032 kB
Cached: 1831416 kB
SwapCached: 32 kB
Active: 172144 kB
Inactive: 1791604 kB
HighTotal: 1174144 kB
HighFree: 4008 kB
LowTotal: 895812 kB
LowFree: 56644 kB
SwapTotal: 4128760 kB
SwapFree: 4127320 kB
Dirty: 244 kB
Writeback: 0 kB
AnonPages: 116184 kB
Mapped: 26952 kB
Slab: 29148 kB
PageTables: 3424 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 5163736 kB
Committed_AS: 477492 kB
VmallocTotal: 114680 kB
VmallocUsed: 5716 kB
VmallocChunk: 108740 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 4096 kB