Ubuntu QA:
BlogBrainstorm
Log in
Ubuntu QA
The Ubuntu community has contributed 12232 ideas, 57574 comments, 1174524 votes

Idea #3808: Kernel optimization script!!



up
130
down
Written by arkara the 7 Mar 08 at 21:22. Category: System.
Related to: Nothing/Others. Status: New
Description
After the installation of ubuntu there should be a script witch will optimize the linux kernel for each individual computer so that we get high speed and responsiveness!
just like arch linux
Tags: (none)

Attachments
No attachments.


Duplicates


Comments
MerlinofChaos wrote on the 7 Mar 08 at 21:28
Arch Linux doesn't have a script to optimize the kernels. Also it's quite easy to do it on your own, and there are already a lot of 3rd party kernels that add responsiveness as their first priority.

spyyder wrote on the 7 Mar 08 at 23:51
@MerlinofChaos

So why not included them by default, or do we not like optimized kernels?

ka2 wrote on the 8 Mar 08 at 00:10
optimizing kernels for specific computers at a distro level is not a good thing to do.

dns_server wrote on the 8 Mar 08 at 01:06
the further you move from a standard package the harder it would be to support. if every install is different it becomes hard to impossible to track down and report bugs.

If you want to install your own kernel you can but in doing so you are no longer able to get support.

s3t_sk8 wrote on the 8 Mar 08 at 02:28
With a custom kernel you will need to compile your own Restricted Drivers (for wireless, graphic cards, etc) because Ubuntu's repository won't have compatible custom drivers for your kernel there..

Auzy wrote on the 8 Mar 08 at 03:25
I'm unconvinced that any changes will bring significant difference. A realtime, server and normal kernel should maybe be offered, but I dunno if full customisation is neccessary, unless you mean just a GUI to tune things in /proc?

Johannes Mockenhaupt wrote on the 8 Mar 08 at 16:19
Ubuntu has -rt kernel and related modules. -rt are realtime/preemption patches that make the kernel/system more responsive. Install the package linux-rt which depends on corresponding kernel and modules. This way those will automatically be updated if security updates are available. Compiling an individual kernel is - in my opinion - a bad idea. You run an unsupported kernel and have to recompile the kernel and modules everything the kernel is updated (mostly security updates). If you forget (easy enough), your system is vulnerable. The -rt option is a nice, practical comprise I believe.

@Auzy: realtime (-rt), server (-server) and normal (-generic) _are_ offered, it just seems not everybody knows :-) :

joe@ubuntu:~$ apt-cache search --names-only linux-image-2.6.22-14
linux-image-2.6.22-14-386 - Linux kernel image for version 2.6.22 on i386
linux-image-2.6.22-14-generic - Linux kernel image for version 2.6.22 on x86/x86_64
linux-image-2.6.22-14-server - Linux kernel image for version 2.6.22 on x86/x86_64
linux-image-2.6.22-14-virtual - Linux kernel image for version 2.6.22 on x86
linux-image-2.6.22-14-rt - Linux kernel image for version 2.6.22 on RT kernel
linux-image-2.6.22-14-ume - Linux kernel image for version 2.6.22 on Ubuntu Moblie and Embedded
linux-image-2.6.22-14-xen - Linux kernel image for version 2.6.22 on This kernel can be used for Xen dom0 and domU

cgminardi wrote on the 8 Mar 08 at 16:39
Optimizing a kernel requires extensive knowledge of your hardware and what services you will be using, as well as services which software will try to implement. To optimize a kernel effectively, you would need to grab the source code and configure it yourself (there a numerous guides on doing this), then compile and install.

While this does improve speed by removing unnecessary components and compiling specifically for your system, you will need to recompile the entire kernel everytime you wish to change something (unless you correctly use modules). You will also need to learn how to patch a kernel and to maintain it. Ubuntu provides a vanilla kernel designed to support as much as possible through modules to save you time and effort.

leadman wrote on the 12 Mar 08 at 15:02
It is already done. Take a look at:
http://www.gentoo.org/

jespdj wrote on the 14 Mar 08 at 19:44
In principle this is a nice idea: after installation, a program is run that examines your computer and performs optimizations for your specific hardware.

However, I doubt if such optimizations really make any difference in practice.

DanRabbit wrote on the 4 Apr 08 at 04:25
I think the point he's trying to make is, why load extra drivers for hardware that you don't even have?

voted +1

foe wrote on the 16 Apr 08 at 23:49
I agree with DanRabbit, if it's possible not to load those drivers which are not needed, why not?

+1!

Manos wrote on the 11 May 08 at 16:53
It's shown that this optimizations gives very little extra performance.
There is only a significant performance boost when you compile all/most of your programs by source.
This creates more bugs, which out ways the slight increase in performance.

There was a time when I would compile everything by source on my old Slackware box.
After using OS like Ubuntu, it is not worth it.
You just get over your head.

-1

notyetroot wrote on the 10 Aug 08 at 16:34
-1
1. This may break some applications.
2. The script would be different for each installation.
3. The script would require recompiling the kernel.


Post your comment