淘宝商城(天猫)高级技术专家.3年研发+3年性能测试调优/系统测试+4年团队管理与测试架构、研发系统实践. 新舞台新气象, 深化测试基础架构及研发架构,希望能在某个技术领域成为真正的技术大牛。欢迎荐才http://bbs.51testing.com/viewthread.php?tid=120496&extra=&page=1 .邮件: jianzhao.liangjz@alibaba-inc.com,MSN:liangjianzhao@163.com.微博:http://t.sina.com.cn/1674816524

uname 的数据从哪里读取

上一篇 / 下一篇  2009-05-15 21:16:47 / 个人分类:linux管理与调整

日常uname –a读取内核信息.如: 

[root@b2b_plat_4212 ~]# uname -a

Linux b2b_plat_42122.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

 

比如说上述表明了是64 bitos, 以及用的kernal2.6.18-128.el5

 

这些信息从哪里来 ? 答案在/boot/grub/menu.lst

 

 

[root@b2b_plat_4212 ~]# cat /boot/grub/menu.lst

# 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=1

timeout=5

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

hiddenmenu

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

       root (hd0,0)

       kernel /xen.gz-2.6.18-128.el5

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

       module /initrd-2.6.18-128.el5xen.img

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

       root (hd0,0)

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

       initrd /initrd-2.6.18-128.el5.img

 

 

实际测试中发现,2.6.18-128.el5 性能优于2.6.18-128.el5xen  

 

 


TAG: grub Linux linux kernal

阿里巴巴一个测试架构师 引用 删除 liangjz   /   2009-06-05 23:04:17
楼上的方法也是OK的.

通过调整 /boot/grub/menu.lst内容可以永久修改
引用 删除 byapple   /   2009-06-04 11:31:13
cat /proc/version 也可以看到的。
 

评分:0

我来说两句

Open Toolbar