检查 Linux 上的详细内存信息

检查 Linux 上的详细内存信息

我知道我可以通过 检查 CPU 信息,cat /proc/cpuinfo通过 检查内存信息cat /proc/meminfo

cat /proc/meminfo会产生如下结果:

MemTotal:     66098352 kB
MemFree:        329152 kB
Buffers:        632432 kB
Cached:       62619692 kB
SwapCached:          0 kB
Active:        6425444 kB
Inactive:     58717276 kB
SwapTotal:     1951888 kB
SwapFree:      1951796 kB
Dirty:           38416 kB
Writeback:           0 kB
AnonPages:     1890268 kB
Mapped:          12624 kB
Slab:           464580 kB
SReclaimable:   275812 kB
SUnreclaim:     188768 kB
PageTables:       7524 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  35001064 kB
Committed_AS:  3860248 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    125636 kB
VmallocChunk: 34359612527 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
HugePages_Surp:      0
Hugepagesize:     2048 kB

我想了解更多有关内存时钟速度(以 Mhz 为单位?)的信息。

我如何获取该信息?

答案1

我认为答案是 dmidecode 命令:

dmidecode -t memory

它输出有关您计算机内存的 BIOS 信息。

输出类似于:

SMBIOS 2.5 present.

Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: Multi-bit ECC
    Maximum Capacity: 8 GB
    Error Information Handle: Not Provided
    Number Of Devices: 4

Handle 0x1100, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x1000
    Error Information Handle: No Error
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 1024 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM_1
    Bank Locator: Not Specified
    Type: DDR2
    Type Detail: Synchronous
    Speed: 800 MHz (1.2 ns)
    Manufacturer: AD00000000000000
    Serial Number: XXXXXXXX
    Asset Tag: XXXXXX
    Part Number: XXXXXXXXXXXXXXXX  
...

答案2

您需要成为 root 用户才能获取与系统相关的任何信息

相关内容