How to build smp kernel

Rui Tiago Matos tiagomatos at gmail.com
Sun Nov 11 10:53:50 UTC 2007


On 11/11/2007, Feng Xian <feng.xian at gmail.com> wrote:
>  But the final image file is  vmlinuz-2.6.23, not vmlinuz-2.6.23smp. Is
>  this final image a real smp kernel? If not, do i need to apply
>  patches. Thanks!

Actually, these days, the kernel can autodetect at boot if it is
running on an SMP system and activate support for it automatically.
For instance here's a snippet from the fedora 8 kernel
2.6.23.1-42.fc8:

CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 0/0 -> Node 0
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM2)
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
APIC timer calibration result 12465172
Detected 12.465 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/2 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 3988.84 BogoMIPS (lpj=1994422)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU1: Thermal monitoring enabled (TM2)
Intel(R) Core(TM)2 Duo CPU     T7300  @ 2.00GHz stepping 0a
Brought up 2 CPUs

So, there, as you can see ther kernle is pretty smart nowadays. Also
check the release notes:

http://docs.fedoraproject.org/release-notes/f8/en_US/sn-Kernel.html#sn-Kernel-Flavors

Good luck,

Rui




More information about the Fedora-kernel-list mailing list