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  --->
Subarchitecture Type () --->
(X) PC-compatible
Processor family () --->
(X) Pentium M
[ ] Generic x86 support
如果你的处理器是双核的,那么激活这个选项:
Linux Kernel Configuration:
Processor type and features  --->
[*] Symmetric multi-processing support
(2) Maximum number of CPUs (2-256)
[ ] SMT (Hyperthreading) scheduler support
[*] Multi-core scheduler support
如果你的系统是32bit的,那么激活这个选项:
Linux Kernel Configuration:
Processor type and features  --->
[*] Machine Check Exception
< > Check for non-fatal errors on AMD Athlon/Duron / Intel Pentium 4
如果是64bit的,激活这个选项:
Linux Kernel Configuration:
Processor type and features  --->
-- Machine check support
[*] Intel MCE features
Executable file formats / Emulations --->
[*] IA32 Emulation

3.自动降频
内核的配置
Linux Kernel Configuration: CPU frequency scaling
Power management options  --->
ACPI (Advanced Configuration and Power Interface) Support --->
[*] ACPI Support
<*> Processor
CPU Frequency scaling --->
[*] CPU Frequency scaling
<*> CPU frequency translation statistics
[*] CPU frequency translation statistics details
省电方式(Governor)
它们决定了你的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  --->
CPU Frequency scaling --->
# E.g. for ondemand
<*> 'ondemand' cpufreq policy governor

  • 1
  • 2
  • 下一页

相关内容