Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

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
Old November 3rd, 2005   #1
poofyhairguy
SADFL's Commando
 
poofyhairguy's Avatar
 
Join Date: Nov 2004
Location: Texas
Beans: 2,351
Send a message via AIM to poofyhairguy
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:
sudo apt-get install linux-686
For a modern Pentium 2+ kernel for dual processors, dual cores, or hyperthreading:

Quote:
sudo apt-get install linux-686-smp
For a Athlon (k7) or for a Athlon 64 (with 32 bit Ubuntu) kernel.

Quote:
sudo apt-get install linux-k7
For a Athlon (k7) kernel for dual processors or dual cores:

Quote:
sudo apt-get install linux-k7-smp
Conclusion

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:
sudo apt-get install linux-restricted-modules-`uname -r`
OR (if you use the nvidia legacy drivers)

Quote:
sudo apt-get install linux-restricted-modules-`uname -r`-nvidia-legacy
__________________
Quote:
Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
- Mark Shuttleworth

Last edited by K.Mandla; September 12th, 2007 at 08:43 PM..
poofyhairguy is offline   Reply With Quote
Old November 3rd, 2005   #2
kvidell
Dipped in Ubuntu
 
kvidell's Avatar
 
Join Date: May 2005
Location: Fremont, California, USA
Beans: 533
Ubuntu 6.10 Edgy
Send a message via AIM to kvidell Send a message via MSN to kvidell Send a message via Yahoo to kvidell
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
kvidell is offline   Reply With Quote
Old November 3rd, 2005   #3
poofyhairguy
SADFL's Commando
 
poofyhairguy's Avatar
 
Join Date: Nov 2004
Location: Texas
Beans: 2,351
Send a message via AIM to poofyhairguy
Re: Picking the Kernel thats Right for You (Possible Speed Increase)

Quote:
Originally Posted by kvidell
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?
I thought about that, but that can get REALLY tricky and with the other options at least the person using the guide can go back to a safe spot. I also left out how to uninstall old kernels for the same reason. Going back to the old kernel in grub has saved my hide more than once....so...
__________________
Quote:
Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
- Mark Shuttleworth

Last edited by poofyhairguy; November 3rd, 2005 at 08:58 PM..
poofyhairguy is offline   Reply With Quote
Old November 3rd, 2005   #4
kvidell
Dipped in Ubuntu
 
kvidell's Avatar
 
Join Date: May 2005
Location: Fremont, California, USA
Beans: 533
Ubuntu 6.10 Edgy
Send a message via AIM to kvidell Send a message via MSN to kvidell Send a message via Yahoo to kvidell
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
kvidell is offline   Reply With Quote
Old November 3rd, 2005   #5
sk545
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?
sk545 is offline   Reply With Quote
Old November 3rd, 2005   #6
poofyhairguy
SADFL's Commando
 
poofyhairguy's Avatar
 
Join Date: Nov 2004
Location: Texas
Beans: 2,351
Send a message via AIM to poofyhairguy
Re: Picking the Kernel thats Right for You (Possible Speed Increase)

Quote:
Originally Posted by sk545
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?
If you have the 32 bit version of Ubuntu installed on there, then the k7 one. If you have the 64 bit version installed this guide does not apply.
__________________
Quote:
Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
- Mark Shuttleworth
poofyhairguy is offline   Reply With Quote
Old November 3rd, 2005   #7
teaker1s
Tall Cafè Ubuntu
 
teaker1s's Avatar
 
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..
teaker1s is offline   Reply With Quote
Old November 3rd, 2005   #8
Biased turkey
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.
Biased turkey is offline   Reply With Quote
Old November 3rd, 2005   #9
poofyhairguy
SADFL's Commando
 
poofyhairguy's Avatar
 
Join Date: Nov 2004
Location: Texas
Beans: 2,351
Send a message via AIM to poofyhairguy
Re: Picking the Kernel thats Right for You (Possible Speed Increase)

Quote:
Originally Posted by Biased turkey
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.

Make SURE you have the official nvidia drivers installed from the repo. The Ubuntu Guide says how.
__________________
Quote:
Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
- Mark Shuttleworth
poofyhairguy is offline   Reply With Quote
Old November 4th, 2005   #10
stubby
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 ?
stubby is offline   Reply With Quote

Bookmarks

Tags
kernel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:06 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry