Page 1 of 31 12311 ... LastLast
Results 1 to 10 of 302

Thread: Picking the Kernel thats Right for You (Possible Speed Increase)

  1. #1
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    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:

    sudo apt-get install linux-686
    For a modern Pentium 2+ kernel for dual processors, dual cores, or hyperthreading:

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

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

    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:


    sudo apt-get install linux-restricted-modules-`uname -r`
    OR (if you use the nvidia legacy drivers)

    sudo apt-get install linux-restricted-modules-`uname -r`-nvidia-legacy
    Last edited by K.Mandla; September 13th, 2007 at 01:43 AM.
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  2. #2
    Join Date
    May 2005
    Location
    Bellingham, WA
    Beans
    331
    Distro
    Ubuntu 17.10 Artful Aardvark

    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?
    17.10 on several Linode instances.
    Tech Support for some US based cell carrier or another.
    Husband, dog and fish father, navigator of immigration law.

  3. #3
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    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...
    Last edited by poofyhairguy; November 4th, 2005 at 01:58 AM.
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  4. #4
    Join Date
    May 2005
    Location
    Bellingham, WA
    Beans
    331
    Distro
    Ubuntu 17.10 Artful Aardvark

    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
    17.10 on several Linode instances.
    Tech Support for some US based cell carrier or another.
    Husband, dog and fish father, navigator of immigration law.

  5. #5
    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. #6
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    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.
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  7. #7
    Join Date
    Oct 2005
    Location
    ENGLAND
    Beans
    2,543

    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 06:02 PM.

  8. #8
    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. #9
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    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.
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  10. #10
    Join Date
    Jan 2005
    Beans
    43
    Distro
    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 ?

Page 1 of 31 12311 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •