X

Linux 如何查看系統硬體的記憶體(RAM)資訊

Linux 要如何查看系統硬體 的 詳細記憶體(RAM)資訊?

Linux 如何查看 系統硬體 的 詳細記憶體(RAM)資訊

在 Linux 要查詢記憶體大小, 可以用下述指令:

  • free
  • free -m
  • cat /proc/meminfo

    MemTotal:        8088504 kB
    MemFree:          337408 kB
    Buffers:          175136 kB
    Cached:          6873848 kB
    SwapCached:            0 kB
    Active:          4396244 kB
    Inactive:        3057212 kB

要查詢詳細的 RAM 規格, ex: DDR2、DDR3 .. 等, 可以用下述指令:

  • sudo lshw

         *-memory
    description: System Memory
    physical id: 22
    slot: System board or motherboard
    size: 8GiB
    *-bank:0
    description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
    product: 99U5403-034.A00G
    vendor: Kingston
    physical id: 0
    serial: 483C2FE
    slot: DIMM0
    size: 4GiB
    width: 64 bits
    clock: 1333MHz (0.8ns)

  • dmidecode -t 17 # 等同 dmidecode --type memory、 dmidecode --type 17

    # dmidecode 2.11
    SMBIOS 2.6 present.

    Handle 0x0022, DMI type 16, 15 bytes
    Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: None
    Maximum Capacity: 32 GB
    Error Information Handle: No Error
    Number Of Devices: 2

    Handle 0x0025, DMI type 17, 28 bytes
    Memory Device
    Array Handle: 0x0022
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM0
    Bank Locator: BANK0
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1333 MHz
    Manufacturer: Kingston
    Serial Number: 483C2FE
    Asset Tag: AssetTagNum0
    Part Number: 99U5403-034.A00G
    Rank: 2

相關網頁

Tsung: 對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.
Related Post