Chinaunix首页 | 论坛 | 博客
  • 博客访问: 504255
  • 博文数量: 65
  • 博客积分: 2925
  • 博客等级: 上尉
  • 技术积分: 1306
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-01 10:56
个人简介

2013

文章分类

全部博文(65)

分类: LINUX

2011-08-23 16:06:23

在 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
阅读(1700) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~