Gentoo 安装之intel Core2 CPU篇
Gentoo 安装之intel Core2 CPU篇
上次提到了无线网络,现在来说一下intel的双核处理器Core2 Duo/Solo在gentoo安装中的设置。要让Core 2 Duo/Solo处理器在gentoo里工作得正常需要从5个方面来设置。下面我一一来说明。
相关阅读:
Gentoo 安装之intel无线网卡篇
Gentoo 安装之intel Core2 CPU篇
Gentoo 安装之intel GMA显卡篇
1.Cflags
Intel Core 2 Duo/Quad / Xeon 51xx/53xx, Pentium Dual-Core T23xx+/Exxxx的硬件信息为:
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU XXXX @ XXXGHz
对于32bit的系统,安全的Cflags是这样的:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
对于64bit的系统,安全的Cflags是这样的:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
2.内核设置
对于所有的Core2系列CPU,你都应该激活下面的选项:
Linux Kernel Configuration: |
Processor type and features ---> |
Linux Kernel Configuration: |
Processor type and features ---> |
Linux Kernel Configuration: |
Processor type and features ---> |
Linux Kernel Configuration: |
Processor type and features ---> |
3.自动降频
内核的配置
Linux Kernel Configuration: CPU frequency scaling |
Power management options ---> |
它们决定了你的CPU运行的频率。最常用到的可能是'按需分配(ondemand)'和'保守(conservative)'了。你可以按照你的需要来进行调整。
- Conservative 将CPU设置为最省电的状态,当CPU需要使用更多电力的时候一步步地提升CPU的频率.
- Ondemand 将CPU的频率设置为最低,当CPU在最低频率时如果使用率达到100%把CPU的频率提升到额定频率。
- Powersave将CPU的频率一直设置为最低。
- Performance 使CPU保持额定频率运行。
- Userspace 允许你手动设置CPU的频率。
你可以随时改变你的CPU的省电方式。
Linux Kernel Configuration: governor |
Power management options ---> |
|
评论暂时关闭