在 grub.conf 中加上mem=256m即可,重启操作系统:
[root@localhost current]# cat /boot/grub/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=LABEL=/ mem=256m rhgb quiet
initrd /initrd-2.6.18-164.el5.img
重启后的查看:
[root@localhost current]# free -m
total used free shared buffers cached
Mem: 249 184 65 0 3 41
-/+ buffers/cache: 139 110
Swap: 2000 10 1990
阅读(1760) | 评论(0) | 转发(0) |