Intel Core 2

From Gentoo Wiki
Jump to: navigation, search

This article describes the setup of an Intel Core 2 Solo/Duo/Quad processor.

32-bit vs 64-bit

This processor supports both the 32-bit and 64-bit mode. You read about general pros and cons at the Wikipedia. By now only very few applications don't support 64-bit mode or work in a 32-bit compatibility mode.

Installation

BIOS

With a dual or quad core check first, if all of them are enabled:

user $cat /proc/cpuinfo

If not, enable options like APIC, MultiCore, etc. in your BIOS.

Kernel

You need to activate the following kernel options:

  • For a single-core processor:
KERNEL
Processor type and features  --->
    Subarchitecture Type ()  --->
        (X) PC-compatible
    Processor family ()  --->
        (X) Core 2/newer Xeon
  • For a dual- or quad-core processor:
KERNEL
Processor type and features  --->
    [*] Symmetric multi-processing support
    Subarchitecture Type ()  --->
        (X) PC-compatible
    Processor family ()  --->
        (X) Core 2/newer Xeon

    dual-core
    (2) Maximum number of CPUs (2-256)

    quad-core
    (4) Maximum number of CPUs (2-256)

Software

FILE /etc/portage/make.conf
CPU_FLAGS_X86="mmx sse sse2 sse3 ssse3"

# Penryn and newer
CPU_FLAGS_X86="mmx sse sse2 sse3 ssse3 sse4 sse4a sse4_1"

# Note: -fomit-frame-pointer only makes a difference on x86 since it is included in -O2 on amd64
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

# Intel Core 2 Solo
MAKEOPTS="-j2"

# Intel Core 2 Duo
MAKEOPTS="-j3"

# Intel Core 2 Quad
MAKEOPTS="-j5"

Advanced Configuration

Temperature sensor

See the lm sensors article and activate the kernel driver coretemp.

Virtualization

Most of these processors support Intel VT. Exceptions are:

  • Merom <T5600
  • Allendale E4xxx
  • E7xxx

See the Category:Virtualization.