PDA

View Full Version : smp


ChrisLilley
02-08-2007, 03:23 PM
sorry for a dumb question - does the current Linux kernel natively have smp enabled by default (for Core 2 Duo, etc) or do you need to recompile the kernel to get that? :bored: :huh:

seablade
02-08-2007, 03:28 PM
It depends on the kernel.

I think you are meaning to ask, does your distribution's kernel have SMP enabled by default, and that I could not answer myself.

You can always enable it recompiling your own, but I would venture a guess most distros now have some form of SMP kernel if not installed by default, availiable via their package management system.

Seablade

ChrisLilley
02-08-2007, 05:33 PM
It depends on the kernel.

I think you are meaning to ask, does your distribution's kernel have SMP enabled by default, and that I could not answer myself.
Yup.

Ubuntu 6.10.

bigtrouble77
02-08-2007, 06:10 PM
Ubuntu's default kernel has smp enabled by default, all of the more specific ones have been depreciated since Dapper. You will probably want to upgrade to the 686 version, and if you have an AMD machine I'd just go 64bit.

ChrisLilley
02-09-2007, 12:54 PM
Ubuntu's default kernel has smp enabled by default, all of the more specific ones have been depreciated since Dapper. You will probably want to upgrade to the 686 version, and if you have an AMD machine I'd just go 64bit.

Thanks, bigtrouble. Can you point me to a FM to R about the 686 version upgrade?

Its a Core 2 Duo T7200, not AMD. Should be 64bit capable, though.

bigtrouble77
02-09-2007, 01:17 PM
Thanks, bigtrouble. Can you point me to a FM to R about the 686 version upgrade?

Its a Core 2 Duo T7200, not AMD. Should be 64bit capable, though.
To update the kernel the easiest way is to go into Synaptic and do a search for "linux". Then browse to the packages that start with "linux-image"- those are the kernel packages.

I just checked out the kernel listing and it looks like the K7 AND 686 kernel have been obsoleted. So it looks like you are best off using the kernel labeled Generic. I would not run the 386 kernel because that's probably going to lack any optimizations. I'm not sure what differences are in the server kernel.

If you install a new kernel, which I don't think you would need to do, realize that your nvidia drivers will probably break, so you'd probably want to change the drive in xorg.conf to "nv" before you reboot. And whenever you install a new kernel make sure you also snag the cooresponding header file package. When the system reboots you'll need to remove the nvidia drivers (nvidia-kernel-common and nvidia-glx) and reinstall them. You may also need to install a new linux-restrected-modules package to coorespond to the new kernel.

But to summarize the important point, I think you'll be fine if you stick with the 'Generic" kernel. I think the 386 version will be problematic if you are running that one- so you should upgrade to Generic if that's the case. The Generic kernel has optimizations for 64bit processors, but it's not a 64bit kernel. You'd have to download the 64bit Ubuntu iso to use a true 64bit kernel. That's what I use, but I've had to go through a few loops to get important 32bit software working. For instance, 64bit web browsers are useless because most plugins are only compiled for 32bit. As a result, I run a 32bit version of firefox on my machine so the plugins will work. I also use Opera which only has a 32bit package.