昨天在拼拼多上买了2条2G的DDR 2 内存,装上后BIOS认识4G内存,可以是在Debian 10 Buster 32位操作系统却只能认出3G的RAM。原因是32位操作系统的局限造成的,需要安装 PAE软件包。
解决方案:
安装软件包:linux-image-686-pae(4.19+105+deb10u3)
This package depends on the latest Linux kernel and modules for use on PCs with one or more processors supporting PAE.
This kernel requires PAE (Physical Address Extension). This feature is supported by the Intel Pentium Pro/II/III/4/4M/D, Xeon, Core and Atom; AMD Geode NX, Athlon (K7), Duron, Opteron, Sempron, Turion or Phenom; Transmeta Efficeon; VIA C7; and some other processors.
安装步骤:
# sudo apt install linux-image-686-pae
说明:并不是升级到PAE内核就一定能访问达到4G,如果你的电脑BIOS没有"memory remap"功能,或者说你的主板(例如 Intel 945GM)不支持将3GB--4GB内存地址重映射到4G以上,即使升级Linux PAE内核是没法实现的。
如果CPU支持64位,尽量升级到64-位操作系统。