PDA

View Full Version : custom kernel for intel quad core


vlad2005
November 27th, 2008, 08:44
What option need to put on my custom kernel, to compile for intel quad core?
OS is, freebsd 7 amd64, and conf "/usr/src/sys/amd64/conf".

SirDice
November 27th, 2008, 08:52
# To make an SMP kernel, the next two lines are needed
options SMP # Symmetric MultiProcessor Kernel
device apic # I/O APIC


Plus the rest of your hardware of course.

vlad2005
November 27th, 2008, 10:16
Thanks!

Djn
November 27th, 2008, 12:15
I believe those are enabled in the GENERIC kernel, too - if that's where you're starting from you shouldn't need to change anything.

kamikaze
November 28th, 2008, 10:26
In RELENG_7 SMP is the default. The GENERIC kernel does everything you need, there's nothing to gain by using a custom kernel.

SaveTheRbtz
November 28th, 2008, 14:56
You also can try to replace
options SCHED_4BSD
with
options SCHED_ULE
It's by default from 7.1

tomh009
November 28th, 2008, 16:33
In RELENG_7 SMP is the default. The GENERIC kernel does everything you need, there's nothing to gain by using a custom kernel.

Already enabled by default in 7.0-RELEASE as well.