歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 32bit 4GB 內存問題和解決辦法

Ubuntu 32bit 4GB 內存問題和解決辦法

日期:2017/2/28 16:20:26   编辑:Linux教程

新升級系統內存,從原來的2G加到4G,但是在使用命令查看的時候只能看到3291M,如下:

  1. $ free -m
  2. total used free shared buffers cached
  3. Mem: 3291 801 2489 0 95 342
  4. -/+ buffers/cache: 363 2927
  5. Swap: 1906 0 1906

查了一下才知道,默認32bit的Linux系統只能識別出3291 (3G) 內存,所以如果想在32位的系統上使用大於3G的內存,需要安裝Physical Address Extension (PAE) ,在Ubuntu上的具體步驟如下:

  1. $ sudo apt-get update
  2. $ sudo sudo apt-get install linux-headers-server linux-image-server linux-server
  3. $ sudo reboot

重新啟動系統後,查看內存情況

  1. $ free -m
  2. total used free shared buffers cached
  3. Mem: 3862 3732 129 0 127 1149
  4. -/+ buffers/cache: 2455 1406
  5. Swap: 5720 170 5550
Copyright © Linux教程網 All Rights Reserved