在我的笔记本电脑上寻找有关总内存的信息,我发现了以下内容,但我对它的含义有些怀疑。
从我获得的 dmidecode 命令中:
Handle 0x0010, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 8 GB
Error Information Handle: Not Provided
Number Of Devices: 2
Handle 0x0011, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0010
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: SODIMM
Set: None
Locator: Bottom
Bank Locator: CHANNEL A
Type: DDR3
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 800 MHz
Manufacturer: Kingston
Serial Number: 5A396D76
Asset Tag: Asset Tag:
Part Number: KHX1600C9S3L/4G
Rank: 1
Configured Clock Speed: 800 MHz
Handle 0x0013, DMI type 20, 35 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000FFFFFFFF
Range Size: 4 GB
Physical Device Handle: 0x0011
Memory Array Mapped Address Handle: 0x0016
Partition Row Position: 1
Handle 0x0014, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0010
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: SODIMM
Set: None
Locator: Top
Bank Locator: CHANNEL A
Type: Unknown
Type Detail: Unknown
Speed: Unknown
Manufacturer: Empty
Serial Number: Empty
Asset Tag: Asset Tag:
Part Number: Empty
Rank: Unknown
Configured Clock Speed: Unknown
Handle 0x0016, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000FFFFFFFF
Range Size: 4 GB
Physical Array Handle: 0x0010
Partition Width: 255
我以为我的 HP 15g-207nl 支持最大 4GB 内存,但我看到最大容量为 8GB。哪个是真相?然后,文件 /proc/meminfo 再次告诉我:
MemTotal: 3467664 kB
MemFree: 493996 kB
MemAvailable: 1093044 kB
Buffers: 72928 kB
Cached: 754636 kB
SwapCached: 1460 kB
Active: 1726432 kB
Inactive: 871336 kB
Active(anon): 1346256 kB
Inactive(anon): 519488 kB
Active(file): 380176 kB
Inactive(file): 351848 kB
Unevictable: 32 kB
Mlocked: 32 kB
SwapTotal: 3613692 kB
SwapFree: 3588868 kB
Dirty: 456 kB
Writeback: 40 kB
AnonPages: 1769496 kB
Mapped: 404592 kB
Shmem: 95540 kB
Slab: 178208 kB
SReclaimable: 135680 kB
SUnreclaim: 42528 kB
KernelStack: 11408 kB
PageTables: 39620 kB
我认为这台电脑安装了 4GB 存储卡,但无论是 Gibibyte 还是 Gigabyte 单位系统,我都无法总结并在这里找到那些 4GB。他们在哪里?而 MemTotal、MemFree 和 MemAvailable 究竟代表什么?