![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |||||||
|
SADFL's Commando
![]() |
Picking the Kernel thats Right for You (Possible Speed Increase)
STAFF NOTE:
Since the naming convention -- and the generic kernel -- changed after version 6.06, Dapper Drake, selecting a different kernel may or may not have any effect on your system. Please research the kernel options that match your release, remembering that the default kernel -- linux-generic in Feisty -- in some versions of Ubuntu is probably already appropriate for your CPU. Thanks. K.Mandla ----------- Disclaimer This section is about messing with the kernel and that can be tricky business. Has never messed up for me, but it is a little nerdy. Look here if you want to learn and maybe get a speed boast (or if you have a dual core/dual processor/hyperthreading machine because you WILL get a performance boost). Use at you own risk, I am not a kernel developer or anything. Be sure not to install the linux-image package instead or things will probably break! If you have done that just install the correct package and things will fix themselves. *********************** Introduction I have noticed some recent confusion in the forum when it comes to kernels, so I want to explain some things I have discovered. I hope it helps. So you just installed Ubuntu but you don't think its going as fast as you think it should? Maybe you have just been advised to install a new kernel so you want to know more. In Synaptic, if you search for “linux-image” you will find many kernels. Each its follows by some numbers and letters in some order. I will now explain those differences and what each means. Notes: - This guide does not apply to the PPC or 64 bit version of Ubuntu. - If you have a heavily modified setup this might not work. For example if you have installed some drivers "by hand" and not from the repositories. - Its hard to measure the speed increase, so if in doubt leave it out. Don't follow the guide if you are uncomfortable - You can always boot back into you old kernel if things mess up. When the OS Menu appears at boot (called the Grub menu) just hit down and then hit enter on the first line with a "386" in it. You might have to hit the ESC key when you boot to pull up this menu. - My steps will rewite your grub, so if you have a custom grub save it somewhere. The Many Kinds of Kernels 386 – the default kernel in Ubuntu is the 386 kernel (but I hear its really a 486 kernel). What that means is that its the most compatible kernel because it supports the oldest tech. Here is wiki page to learn more: http://en.wikipedia.org/wiki/Intel_80386 686 – The kernel that is recommended for use with any Intel Processors in a computer that are more recent then a Pentium Pro. So even old Pentium 2s and 3s can get in on the act. Installing this kernel with may improve performance. http://en.wikipedia.org/wiki/Pentium_Pro k7 – This kernel is recommended for a computer with a Athlon or newer AMD CPU. New 64 bit AMD cpus can use it as well if you have the 32 bit version of Ubuntu installed. Installing this kernel with may improve performance. http://en.wikipedia.org/wiki/Athlon smp – This kernel is NEEDED to use both CPUs in a multi-CPU setting. The kernel is also required to “enable” hyperthreading in modern Pentium 4 CPUs. Also needed for dual core processors (the letters stand for Symmetric Multiprocessing). Very important to install this, as it WILL improve performance. Sorry to bold it but I think this one is the most important. http://en.wikipedia.org/wiki/Symmetric_multiprocessing How to Install New Kernels You need to install the file below as indicated: For a modern Pentium 2+ (686) kernel: Quote:
Quote:
Quote:
Quote:
I wish you the best of luck and please post comments if you notice any improvements or any problems. Note About Nvidia The Nvidia driver is not an open source driver. It is "restricted" because of that fact. Therefore the actual official Nvidia driver's kernel module (the part that interacts with the kernel to make it work) is in the restricted package. If you follow my guide those packages should be installed automatically (they are for me) but they don't for legacy cards. If you have a Nvidia card older than a Geforce 3 (except maybe the Geforce 2 MX) you have to install the legacy drivers. Every time you switch to another kernel you have to reinstall the nvidia drivers for that specific kernel if you have used the nvidia installer. OR If you use the drivers from the repos then you will need the restricted modules for your kernel (only the ones for the i386 kernel are installed by default). If apt-get did not install these automatically with my guide you MUST do it! In other words, boot as usual, and if you are stuck to the command line type: Quote:
Quote:
__________________
Quote:
Last edited by K.Mandla; September 12th, 2007 at 08:43 PM.. |
|||||||
|
|
|
|
|
#2 |
|
Dipped in Ubuntu
![]() |
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
Is it a relevant point to mention how to clean up one's GRUB menu.lst if they find one they like but don't want 3 extraeneous kernel options listed?
__________________
Reg. Linux User #389145 ThinkPad T42p running Breezy (with [Multi/Uni]verse, Marillat, Sarge, Cipherphunk and BMPx repos). All (sub)systems are a GO. Kill all the Spiders to save the Butterflies. Is this what we call Eden? Last.FM |
|
|
|
|
|
#3 | ||
|
SADFL's Commando
![]() |
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
Quote:
__________________
Quote:
Last edited by poofyhairguy; November 3rd, 2005 at 08:58 PM.. |
||
|
|
|
|
|
#4 |
|
Dipped in Ubuntu
![]() |
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
Ah, okay.. Understandable.
I've just been lucky with ubuntu kernels then... I've never had to revert back to an older one, even with my dual proc box... *keeps his fingers crossed* - K
__________________
Reg. Linux User #389145 ThinkPad T42p running Breezy (with [Multi/Uni]verse, Marillat, Sarge, Cipherphunk and BMPx repos). All (sub)systems are a GO. Kill all the Spiders to save the Butterflies. Is this what we call Eden? Last.FM |
|
|
|
|
|
#5 |
|
A Carafe of Ubuntu
![]() Join Date: Jul 2005
Beans: 122
|
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
so which one do i use for a athlon 64 3000+ (lets say i want it running 32 bit apps)? Should i use kernel k7 or 686?
|
|
|
|
|
|
#6 | ||
|
SADFL's Commando
![]() |
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
Quote:
__________________
Quote:
|
||
|
|
|
|
|
#7 |
|
Tall Cafè Ubuntu
![]() Join Date: Oct 2005
Location: ENGLAND
Beans: 2,543
Ubuntu Jaunty Jackalope (testing)
|
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
sorry to sound thick but synaptic or apt-get don't find the k7 for my amdxp2200
so is this direct from debian and if so how will it differ from a patched kernel also second question konsole see's i686 which I thought was 64 bit only see below teaker1s@ubuntu:~$ uname -a Linux ubuntu 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 GNU/Linux found k7 in synaptic today Last edited by teaker1s; November 4th, 2005 at 01:02 PM.. |
|
|
|
|
|
#8 |
|
Gee! These Aren't Roasted!
![]() Join Date: Sep 2005
Location: Montreal, Canada Eh
Beans: 207
|
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
I installed ubuntu 32 bits 5.10 on my Athlon64.
Just saw this interesting trhead ( thanks ) and right away installed the k7 kernel using synaptic. When booting the k7 kernel, Xorg doesn't start. I'm stucked in console mode.Of course, booting back with the original kernel works OK. I have an Nforce4 mobo and an Nvidia 6600 video board. What should I do to be able to boot the k7 kernel and be able to use the graphic mode ? tia for any help. |
|
|
|
|
|
#9 | ||
|
SADFL's Commando
![]() |
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
Quote:
Make SURE you have the official nvidia drivers installed from the repo. The Ubuntu Guide says how.
__________________
Quote:
|
||
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() Join Date: Jan 2005
Beans: 46
Dapper Drake Testing/
|
Re: Picking the Kernel thats Right for You (Possible Speed Increase)
My notebook is a Pentium M, so is that the 686 kernel ?
|
|
|
|
| Bookmarks |
| Tags |
| kernel |
| Thread Tools | |
| Display Modes | |
|
|