linux 的内核启动管理

版本:redhat linux enterprise 5.1

查看文件:

/boot/grub/grub.conf

 

# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE:  You have a /boot partition.  This means that

#          all kernel and initrd paths are relative to /boot/, eg.

#          root (hd0,0)

#          kernel /vmlinuz-version ro root=/dev/sda3

#          initrd /initrd-version.img

#boot=/dev/sda

default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux Server (2.6.18-53.el5PAE)

        root (hd0,0)

        kernel /vmlinuz-2.6.18-53.el5PAE ro root=LABEL=/ rhgb quiet

        initrd /initrd-2.6.18-53.el5PAE.img

title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)

        root (hd0,0)

        kernel /xen.gz-2.6.18-53.el5

         module /vmlinuz-2.6.18-53.el5xen ro root=LABEL=/ rhgb quiet

        module /initrd-2.6.18-53.el5xen.img

title Red Hat Enterprise Linux Server-base (2.6.18-53.el5)

        root (hd0,0)

        kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet

         initrd /initrd-2.6.18-53.el5.img

 

修改 default 的值,实现内核选择,从 0 开始类推。

上面的 0 PAE

1 XEN

2 base

 

内核区别

Xen 用于虚拟技术,类似 aix 的虚拟化技术。

PAE 支持显示更高的内存。(在32bit的linux系统测试中显示的内存值64G, 真的能否达到这么高,没测试过)

例如一台 64g 内存的服务器,装 xen 内核显示 15g 内存( xen 最大支持 16g

但是改为 pae 内核,可以显示 64g 内存。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值