Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When installing 14.04 from the mini iso, I have to select which kernel to use. I have simply been choosing linux-generic-lts-trusty without giving it much thought.

Should I choose one over another ?

Also, while we are talking kernels, is there an intel atom netbook optimised one available for Ubuntu, and if so should I really be using that ?

EDIT : I have added the kernel selection page screenshot.

Kernel selection

share|improve this question
    
what options are you given? –  Wilf Jun 26 at 19:26
    
linux-generic, linux-image-generic, linux-image-lts-trusty and a few others. –  hatterman Jun 28 at 20:46

1 Answer 1

When I doubt, for a desktop, use the generic kernel. For a server use the server kernel.

If you are going to run a kernel that is optimized for your hardware, I suggest you compile your own. It is intimidating to do so, but, with modern options, it is not that difficult.

After you install ...

Get the source

mkdir ~/src
cd src
apt-get source linux-image-$(uname -r)

Install the necessary packages to compile

sudo apt-get build-dep linux-image-$(uname -r)

Now you have all the parts you need to compile. The ubuntu kernel source code has already been patched.

In the "old days" you would have to know your hardware and select what to optimize and what to compile. These days you simply run the following command in the kernel source directory

cp /boot/config-your_kernel_version .
make localmodconfig

localmodconfig will examine the modules you are using and compile those (so no need to know your hardware).

Generally the defaults from localmodconfig are fine. You can run

make menuconfig

and go to the CPU section and see what, if anything, applies to your CPU. If you do not understand the options, go with the default.

Then run

make
make install
sudo make INSTALL_MOD_STRIP=1 modules_install

And update grub, boot to your new kernel.

See:

http://bodhizazen.net/Tutorials/kernel#easy

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

Note: my instructions deviate from the ubuntu wiki, the ubuntu wiki will build the generic kernel unless you change the scripts in the debian directory and the .config files. I modified the config with localmodconfig ;)

See also : https://help.ubuntu.com/community/Kernel/Compile#Reasons_for_compiling_a_custom_kernel

Note: It is highly unlikely you will see a performance boost over the generic kernel. You might be able to benchmark it, but it is not going to make unity, your desktop, firefox, or other applications run faster.

share|improve this answer
    
I have compiled my own kernels before and, in the CPU section, selected intel atom. Not sure I saw any improvements but this option must do something, no ? –  hatterman Jun 28 at 20:50
    
Of course it does something. As you said, I have not noticed a performance improvement either, you would have to run benchmarks. Only you can decide if it is worth the hassle –  bodhi.zazen Jun 29 at 2:39
    
These links may interest you - sourceforge.net/projects/kernelnetbook and gossamer-threads.com/lists/linux/kernel/1120158 . From the second link "This is not needed because Atom is compatible to CORE2 (except for one instruction the kernel doesn't use)" –  bodhi.zazen Jun 30 at 18:07
    
Thanks for the links. The same question does apply, however, to my desktop machines. What I will do is I will install from the mini iso into a VM and post the screenshot of the kernel selection page, see if anyone has any advice on selection. –  hatterman Jul 4 at 12:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.