我在笔记本电脑上安装了最新的 Lubuntu。如何在不打开笔记本电脑的情况下查看安装了多少个 RAM 模块以及它们是什么类型的 RAM 模块?我可以使用系统分析器和基准测试实用程序查看总共有多少 RAM,但我想知道我有多少个模块以及它们是什么类型的模块。
谢谢塞缪尔
答案1
实现此目的的一种方法是安装lshw
或lshw-gtk
:
sudo apt-get install lshw-gtk
然后您可以运行它(sudo lshw-gtk
)并检查您的 RAM 条目:
正如您在上图中所看到的,我安装了 2 个 RAM 条,每条 4GB。
另一种方法是使用命令行版本(显示部分输出):
$ sudo lshw -class memory
*-memory
description: System Memory
physical id: 19
slot: System board or motherboard
size: 8GiB
*-bank:0
description: SODIMM DDR3 Synchronous 1067 MHz (0.9 ns)
product: HMT351S6BFR8C-G7
vendor: Hynix Semiconductor (Hyundai Electronics)
physical id: 0
serial: 3B3BD95E
slot: DIMM_A
size: 4GiB
width: 64 bits
clock: 1067MHz (0.9ns)
*-bank:1
description: SODIMM DDR3 Synchronous 1067 MHz (0.9 ns)
product: HMT351S6BFR8C-G7
vendor: Hynix Semiconductor (Hyundai Electronics)
physical id: 1
serial: 3F114A3B
slot: DIMM_B
size: 4GiB
width: 64 bits
clock: 1067MHz (0.9ns)
答案2
您可以使用dmidecode
:
sudo apt-get install dmidecode
要知道系统中有多少个 RAM 模块,只需在终端中输入:
sudo dmidecode -t 17
对于具有 2 个内存模块的系统,我获得了这种输出:
# dmidecode 2.12
# SMBIOS entry point at 0xbae9e000
SMBIOS 2.7 present.
Handle 0x0008, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0007
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: SODIMM
Set: None
Locator: ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Hynix/Hyundai
Serial Number: 316A2BC7
Asset Tag: None
Part Number: HMT41GS6MFR8C-PB
Rank: Unknown
Configured Clock Speed: 1600 MHz
Handle 0x0009, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0007
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: SODIMM
Set: None
Locator: ChannelB-DIMM0
Bank Locator: BANK 2
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Hynix/Hyundai
Serial Number: 31CA2BB9
Asset Tag: None
Part Number: HMT41GS6MFR8C-PB
Rank: Unknown
Configured Clock Speed: 1600 MHz