Kernel for Dual Core

Jos Chrispijn jos at webrz.net
Mon May 26 18:19:30 UTC 2008


Mark,

Mark Ovens wrote:
> The reason that nothing is #'d out and just about everything is in 
> GENERIC is because it is exactly that, a *generic* kernel, and soo 
> needs to be able to boot on any hardware it's installed on.
Oke, now I understand.
> The advantage of building a custom kernel is that you remove anything 
> your system doesn't have which saves time when booting as the kernel 
> won't be probing for devices that it will never find - for example. 
> mine is an all-SCSI system so my kernel doesn't have any IDE or floppy 
> devices in it - and it makes the kernel smaller (although that isn't 
> really an issue these days).
With this speed that shouldn't be a problem...
> An alternative is to go into the configuration editor from the main 
> boot menu and disable those compiled-in devices that you don't have.
That I didn't know!
> To confirm that your running kernel has detected and started both CPUs:
>
> /home/mark{8}% grep -i cpu /var/log/messages
>
> May 26 12:10:30 redshift kernel: CPU: AMD Athlon(TM) MP 2800+ 
> (2133.42-MHz 686-class CPU)
> May 26 12:10:30 redshift kernel: FreeBSD/SMP: Multiprocessor System 
> Detected: 2 CPUs
> May 26 12:10:30 redshift kernel: cpu0 (BSP): APIC ID:  0
> May 26 12:10:30 redshift kernel: cpu1 (AP): APIC ID:  1
> May 26 12:10:30 redshift kernel: cpu0: <ACPI CPU> on acpi0
> May 26 12:10:30 redshift kernel: cpu1: <ACPI CPU> on acpi0
> May 26 12:10:30 redshift kernel: SMP: AP CPU #1 Launched!
> /home/mark{9}%
I did this on my systems on which I installed FreeBSD from iso CD's:

May 25 17:23:44 triton kernel: FreeBSD/SMP: Multiprocessor System 
Detected: 2 CPUs
May 25 17:23:44 triton kernel: cpu0 (BSP): APIC ID:  0
May 25 17:23:44 triton kernel: cpu1 (AP): APIC ID:  1
May 25 17:23:44 triton kernel: cpu0: <ACPI CPU> on acpi0
May 25 17:23:44 triton kernel: est0: <Enhanced SpeedStep Frequency 
Control> on cpu0
May 25 17:23:44 triton kernel: p4tcc0: <CPU Frequency Thermal Control> 
on cpu0
May 25 17:23:44 triton kernel: cpu1: <ACPI CPU> on acpi0
May 25 17:23:44 triton kernel: est1: <Enhanced SpeedStep Frequency 
Control> on cpu1
May 25 17:23:44 triton kernel: p4tcc1: <CPU Frequency Thermal Control> 
on cpu1
May 25 17:23:44 triton kernel: SMP: AP CPU #1 Launched!

So this would mean that I allready use a dual core tuned system?
When should it say SMP: AP CPU #2 Launched!  ?

Thanks for sharing,
Jos


More information about the freebsd-questions mailing list