歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Gentoo 安裝之intel Core2 CPU篇

Gentoo 安裝之intel Core2 CPU篇

日期:2017/2/28 15:54:26   编辑:Linux教程

上次提到了無線網絡,現在來說一下intel的雙核處理器Core2 Duo/Solo在gentoo安裝中的設置。要讓Core 2 Duo/Solo處理器在gentoo裡工作得正常需要從5個方面來設置。下面我一一來說明。

相關閱讀:

Gentoo 安裝之intel無線網卡篇 http://www.linuxidc.com/Linux/2012-03/56744.htm

Gentoo 安裝之intel Core2 CPU篇 http://www.linuxidc.com/Linux/2012-03/56745.htm

Gentoo 安裝之intel GMA顯卡篇 http://www.linuxidc.com/Linux/2012-03/56745.htm

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

Copyright © Linux教程網 All Rights Reserved