linux recommends a way to view the number of memory sticks and the size of each memory

  • 2020-05-13 04:18:31
  • OfStack

On an linux system, you can view the number of memory sticks and the size of each memory, using the dmidecode command.

As follows:


#dmidecode | grep -A16 "Memory Device$"

Output results:


Memory Device # The storage device 
Array Handle: 0x1000 # Array processing 
Error Information Handle: Not Provided # Error message handling: not provided  
Total Width: 72 bits # The total width:  72 position 
Data Width: 64 bits # Data width:  64 position  
Size: 1024 MB # The size of the 
Form Factor: 
Set: 1
Locator: DIMM1 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous # Enter details: synchronization  
Speed: 667 MHz (1.5 ns) # Speed:  667 Megahertz (  1.5 Ns) 
Manufacturer: 80AD7FB380AD # manufacturers 
Serial Number: 42600700 # The serial number 
Asset Tag: 010910
Part Number: HYMP112F72CP8D3-Y5
--
//by www.ofstack.com
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: 
Set: 1
Locator: DIMM2 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: 667 MHz (1.5 ns)
Manufacturer: 80AD7FB380AD
Serial Number: 42600213
Asset Tag: 010910
Part Number: HYMP112F72CP8D3-Y5
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: 
Set: 2
Locator: DIMM3 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: 667 MHz (1.5 ns)
Manufacturer: 855185518551
Serial Number: 0503BE1A
Asset Tag: 4C0838
Part Number: 72T128401EFA3SC2 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: 
Set: 2
Locator: DIMM4 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: 667 MHz (1.5 ns)
Manufacturer: 855185518551
Serial Number: 0503BF1F
Asset Tag: 4C0838
Part Number: 72T128401EFA3SC2 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 3
Locator: DIMM5 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number: 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 3
Locator: DIMM6 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number: 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 4
Locator: DIMM7 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number: 
--//by www.ofstack.com
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 4
Locator: DIMM8 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number:

Then, use the free command to see the current memory usage:


# free -m 
total used free shared buffers cached
Mem: 4054 2963 1090 0 144 1272
-/+ buffers/cache: 1547 2506
Swap: 4094 0 4094

Related articles: