$ free -m
total used free shared buffers cached
Mem: 3291 801 2489 0 95 342
-/+ buffers/cache: 363 2927
Swap: 1906 0 1906
查了一下才知道,默認32bit的Linux系統只能識別出3291 (3G) 內存,所以如果想在32位的系統上使用大於3G的內存,需要打開Physical Address Extension (PAE) ,並使用server版本的內核,在Ubuntu上的具體步驟如下:
$ sudo apt-get update
$ sudo apt-get install linux-restricted-modules-server
$ sudo sudo apt-get install linux-headers-server linux-image-server linux-server
$ sudo reboot
重新啓動系統後,查看內存情況
$ free -m
total used free shared buffers cached
Mem: 3862 3732 129 0 127 1149
-/+ buffers/cache: 2455 1406
Swap: 5720 170 5550
另外可以參考:http://www.cyberciti.biz/faq/ubuntu-linux-4gb-ram-limitation-solution/