LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 861|回复: 6

[help]编译内核时CPU种类的选择[Done]

[复制链接]
发表于 2009-8-18 17:05:32 | 显示全部楼层 |阅读模式
我用的是赛扬420,官网说:

Intel Core Solo/Duo, Pentium Dual-Core T20xx/T21xx

vendor_id  : GenuineIntel
cpu family  : 6
model  : 14, 22
model name  : Genuine Intel(R) CPU TXXXX @ XXXGHz
model name  : Intel(R) Celeron(R) CPU 220 @ 1.20GHz
model name  : Intel(R) Celeron(R) CPU 4X0 @ XXXGHz
model name  : Intel(R) Celeron(R) M CPU 4X0  @ XXXGHz


CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

Notes:

    * It has been confirmed by hongjiu.lu@intel.com that prescott is the correct microarchitecture to use with this CPU. http://article.gmane.org/gmane.comp.gcc.devel/83870
    * The newer (eg. 420) Celeron-M processors are Core Solo based, not Pentium-M based. If your processor's family and model are 6 and 14, then you should use the -march=prescott option.
    * Both the Celeron 4x0 and 220 run fine with Processor family (Pentium M) selected in the kernel.




我的是model 22,应该用哪个?

我现在比较保守,用的i686,有没有更合适的?对性能有影响么?


顺便问一句:再次编译内核时所用时间竟然是1分钟,我看别人一说编译内核一般也得十来分钟吧。我第一次编译的时间和别人差不多,后边再次编译时间就短了这么多?是不是那个什么pipe的作用?
发表于 2009-8-18 17:16:14 | 显示全部楼层
从文档上来看,那段说明是特指Celeron-M的。你不是M,当然更应该用prescott。不过,我只是根据文字来分析的,错了别怪我哦,呵呵。
回复 支持 反对

使用道具 举报

发表于 2009-8-18 17:25:31 | 显示全部楼层
  1. cat /proc/cpuinfo |grep CPU
  2. model name        : Intel(R) Celeron(R) M CPU        430  @ 1.73GHz
复制代码


-。- 420比430高级,无语……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-18 18:01:50 | 显示全部楼层
cat /proc/cpuinfo |grep CPU
model name      : Intel(R) Celeron(R) CPU          420  @ 1.60GHz
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-18 18:09:08 | 显示全部楼层
噢,说着说着,我自己明白了。是我没看仔细,下边那个注释有个M的,整个把我搞乱了。

我系统已经装好了,我现在改到prescott会对系统有什么影响没?是不是以前装的东西都要重新编译?
回复 支持 反对

使用道具 举报

发表于 2009-8-18 19:46:31 | 显示全部楼层
-march=native

是不是以前装的东西都要重新编译?

不需要,反正N久之前都没理过没出现过问题
回复 支持 反对

使用道具 举报

发表于 2009-8-18 20:50:57 | 显示全部楼层
i am about to come. welcome me to gentoo world.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表