利用linux內核的PAE功能實現對大內存的支持!使用server版本的內核可以搞定!,安裝Physical Address Extension (PAE) aware kernel
sudo apt-get install Ubuntu-restricted-extras
sudo apt-get install linux-headers-server
sudo apt-get install linux-image-server linux-server
安裝server的kernel,32位的系統可以使用4G以上的內存,最多能到64G。前提是主板能夠支持。
32位系統(XP,windows2003等MS32位系統, ubuntu等linux32 位系統)要能利用4G內存,都是采用內存重映射技術。需要主板及系統的支持。
如果關閉主板BIOS的重映射功能,系統將不能利用4G內存,可能只達3.5G.
32位系統,打開內存得映射功能後,系統將不能使用休眠功能(休眠與待機不同)。
圖1
圖2
重啟後用 free -m 查看。
備注:
使用如下命令:
sudo apt-get install linux-restricted-modules*-server linux-image-server linux-headers-server linux-server
安裝後重啟升級相關軟件,即可
//這是切換回原來內核得命令:
sudo apt-get install linux-restricted-modules*-generic linux-image-generic linux-headers-generic linux-generic