Linux查看物理內存信息


Linux查看物理內存信息

1. 查看內存大小

dmidecode|grep Size

輸出

Runtime Size: 64 kB
ROM Size: 4608 kB
Installed Size: 1024 kB
Maximum Size: 1024 kB
Installed Size: 256 kB
Maximum Size: 256 kB
Installed Size: 8192 kB
Maximum Size: 8192 kB
        PSE (Page size extension)
        PSE-36 (36-bit page size extension)
Descriptor 7: POST memory resize
Size: No Module Installed
Size: 8192 MB
Range Size: 8 GB
Size: No Module Installed
Size: 8192 MB
Range Size: 8 GB
Range Size: 16 GB

看里面有兩個Size的,有兩條,一共16G

2. 查看內存速率

dmidecode|grep Speed

輸出

Nominal Speed: Unknown Or Non-rotating
Nominal Speed: Unknown Or Non-rotating
Nominal Speed: Unknown Or Non-rotating
Speed: Unknown
Speed: Unknown
Speed: Unknown
Max Speed: 3800 MHz
Current Speed: 3200 MHz
Speed: Unknown
Speed: 1600 MHz
Speed: Unknown
Speed: 1600 MHz

可以看到速率是1600MHz

3. 查看內存類型

dmidecode|grep DDR

輸出

Type: DDR3
Type: DDR3

然而,在某些機器上可能沒輸出,則按照速率來判斷。
內存速率和型號對應關系

DDR 266/333/400	
DDR2 533/667/800	
DDR3 1066/1333/1600	

4. 查看ECC內存

ECC (error-correcting code) RAM is essential in servers and many workstations as it dramatically improves the reliability of the system's memory by detecting common kinds of data corruption and fixing the errors automatically. Without the error correction of ECC memory, memory errors can cause data corruption or even blue screens.
命令

dmidecode -t memory

輸出

Handle 0x003D, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x003B
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 2048 MB
        Form Factor: DIMM
        Set: None
        Locator: DIMM_A1
        Bank Locator: NODE 0 CHANNEL 0 DIMM 0
        Type: Other
        Type Detail: Synchronous
        Speed: 1067 MHz
        Manufacturer: 0x80CE
        Serial Number: 0x875802AD
        Asset Tag: Unknown
        Part Number: M393B5673FH0-CH9  

注意,如果信息包含Error Information Handle: Not Provided,Total Width: 72 bits, Data Width: 64 bits則表明ecc是啟動的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM