Hi,
I had a 16-core machine and tried to build a smp version of
linux-2.6.23 kernel. I did the following steps:
1. make menuconfig ( actually I didt change the configuration since it
builds SMP support by default)
2. make; make modules; make modules_install; make install
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!
Feng
--
Addr: 1025N, 23rd str, APT 33,
Lincoln, NE, 68503
Phone: (402)310-9826
WWW: cse.unl.edu/~fxian
On 11/11/2007, Feng Xian <feng.xian@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
On 11/11/2007, Feng Xian <feng.xian@gmail.com> wrote:> Hi, > > I had a 16-core machine and tried to build a smp version of > linux-2.6.23 kernel. I did the following steps: > > 1. make menuconfig ( actually I didt change the configuration since it > builds SMP support by default) > > 2. make; make modules; make modules_install; make install > > 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!Multiprocessor support is provided by default - there is no separate smp kernel (from Fedora 7 onwards I think). You should not need to apply additional patches. O/T : I''m back from vacation though extremely jet-lagged. Cheers Chris -- http://www.chruz.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Feng Xian wrote:> Hi, > > I had a 16-core machine and tried to build a smp version of > linux-2.6.23 kernel. I did the following steps: > > 1. make menuconfig ( actually I didt change the configuration since it > builds SMP support by default)All of our x86 and x86_64 kernels are smp-aware, there is no separate smp kernel, the same kernel is used for single-processor and multi-processor systems.> 2. make; make modules; make modules_install; make install > > 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!In the past when we did have a separate kernel-smp package (actually, we still do for ppc32), the ''smp'' was inserted by part of the rpm build process, it doesn''t happen automagically, just because you enabled smp in the kernel config. - -- Jarod Wilson jwilson@redhat.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHN5CdtO+bni+75QMRAsORAJsHxl06Z/pqEttj085JP5qPXOanIACgxO4m 4t55vz3JJAOfcWpo1Gcnf5c=BzxM -----END PGP SIGNATURE-----
Thanks! On 11/11/07, Jarod Wilson <jwilson@redhat.com> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Feng Xian wrote: > > Hi, > > > > I had a 16-core machine and tried to build a smp version of > > linux-2.6.23 kernel. I did the following steps: > > > > 1. make menuconfig ( actually I didt change the configuration since it > > builds SMP support by default) > > All of our x86 and x86_64 kernels are smp-aware, there is no separate > smp kernel, the same kernel is used for single-processor and > multi-processor systems. > > > 2. make; make modules; make modules_install; make install > > > > 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! > > In the past when we did have a separate kernel-smp package (actually, we > still do for ppc32), the ''smp'' was inserted by part of the rpm build > process, it doesn''t happen automagically, just because you enabled smp > in the kernel config. > > - -- > Jarod Wilson > jwilson@redhat.com > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHN5CdtO+bni+75QMRAsORAJsHxl06Z/pqEttj085JP5qPXOanIACgxO4m > 4t55vz3JJAOfcWpo1Gcnf5c> =BzxM > -----END PGP SIGNATURE----- >-- Addr: 1025N, 23rd str, APT 33, Lincoln, NE, 68503 Phone: (402)310-9826 WWW: cse.unl.edu/~fxian