Kernel -ck for ubuntu precise

Standard

UPDATE: 16/Jul/2014, the script was updated to compile the 3.15.5 kernel version

-ck is the name for the Con Kolivas patchet which main purpose is to increment the performance for Linux in PC’s and laptops. Traditionally the kernel comes with a lot of things for enterprise environments, that’s why this patchset have some relative popularity with people who wants to improve their machine for games, multimedia and tradicional work (browsing the web, editing texts, im, etc).
The steps to compile a kernel with these modifications are:
  • Download the vanilla kernel
  • Download and apply the: -bfq, -ck patchsets
  • Configure the kernel
  • Compile
  • Install
Fortunately some users at ubuntu-br.org have been following the -ck branch, close enough to create a script that automatize the process:
After check it out, I’ve edited it (to avoid some errors and to add some bells and whistles) and I’ve put the result in: https://github.com/chilicuil/learn/blob/master/sh/is/kernel-ck-ubuntu
The idea is that from time to time I check the script to see that it compiles the last -ck patchset version for the last Ubuntu LTS version. If you want to use it, run the following commands:
$ wget --no-check-certificate \

https://raw.github.com/chilicuil/learn/master/sh/is/kernel-ck-ubuntu

$ time sh kernel-ck-ubuntu
$ sudo dpkg -i ./linux-*.deb
And reboot your system, if you don’t want to compile it yourself, I’ve build some .deb packages for amd64 and x86
3.4.5

3.7.1

3.8.2

3.9.2

3.11.7

3.12.1

3.13.7

3.14.4

3.15.5

About these ads

42 responses »

  1. Hey I am having some hard times running your script. I am running it on a server machine atm as my PC is broken with Ubuntu 12.04 32b and I am getting stucked at debian/ruleset/targets/common.mk:286: *** Cannot find lguest tools. Stop. Any help here ?

  2. Lupajz, I’ve update the script, it should work now, remove your ~/.tmp file, download it (from github) and run it, have fun =)

    • Cheers :) I’ll test that as soon I get to my Ubuntu desktop :) I was wondering if you could make the script for selecting other kernels :P I mean like 3.5 or even to be relesed 3.6 kernel ?

      • Hi Lupajz, well actually you should use the Optimus Kernel [1] instead. I discovered that this script don’t borrow the Ubuntu changes, it just patches a vanilla kernel with the -ck branch and package it.

        I’ll keep updating this script for the latest kernel that support the -ck changes mostly for personal use, it hasn’t break my laptop after all (the -ck modifications [2] use to have delays from the main branches, so right now it’s not possible to have a kernel 3.6 with this goodies, unless I create the patches myself x_X) If you’re still interested you can always borrow the latest version from the script at github.

        However as I said before I highly recommend to use Optimus Kernel instead.

        [1] http://optimus-linux.blogspot.mx/
        [2] http://ck-hack.blogspot.mx

    • it should epikvision, however I’ve not test it, actually the -ubuntu patches are borrowed from the quantal kernel (precise doesn’t have patches for the 3.4.5 version), have fun!

  3. You should know that when building over vanilla kernel, the Ubuntu patches that you apply are not Ubuntu patches, but just Debian Packaging. There some things like AppArmor, Unredahead, Aufs and much more that are missing and actually you can not get them like that. The only way is to use the Ubuntu Kernel from Git that incorporates all the patchsets that make “Ubuntu Kernel”. This patches are also called “sauces”

    Or if you need a stable kernel releases, 100% ubuntu kernel with BFS+BFQ+inhouse tweaks, then you should try Optimus Kernel

  4. This is great, thank you! I was looking for a way to easily get BFQ on my Precise install, and the pf-kernel would just hang on boot. This one works great, and as an added bonus it appears that my long-lasting issue with stuttering audio in Flash and quirky PulseAudio allround is now also remedied!

    Beautiful :) Please keep posting packages if you make new ones :)

    Thanks!!!

  5. Thanks for the script. May I suggest you also install fakeroot automatically, since this happened on my machine:

    [+] running make-kpkg …
    kernel-ck-ubuntu: line 347: fakeroot: command not found
    ————————————- DONE ———————————-
    [+] copying the debs files …
    cp: cannot stat `../linux-*.deb': No such file or directory

    • I’ve updated it the script for working with 3.6.5 version and added fakeroot, thanks for your suggestion

  6. Hey would you mind updating script once again ? :) For 3.7.1 kernel ? As I am trying to run that script but I get looped on sudo password :P

    • Hi Lupajz, thanks for your comment, I’ve updated the script for the 3.7.1 kernel also verified and fixed the issue with the sudo command, hope it works now for you, greetings.

  7. Hey there,

    thanks a lot for taking the time to maintain this script and the deb packages. I just installed your 3.8.2 deb build and it’s working perfectly fine. The BFQ scheduler is fantastic. No more frozen interactive apps when I/O heavy processes run in the background!

    Anyway, I was going to ask if you have made any progress with the PPA. It would be awesome to be bale to update your system with automatically patched revisions of new kernels!

    Thanks again for all your work. Really appreciate it!

    Best regards
    – Feltzer

    • Hi Feltzer,

      Indeed, the BFQ and -CK patchsets are really good, I’m going to try to setup a ppa for these packages during the weekend, I’ve previous experience maintaining ppa’s however I bet kernel packages are harder to upload. Thanks for your feedback.

  8. Pingback: Kernel -CK para Debian, Ubuntu e derivados « Mundo GNU

  9. Pingback: Cómo mejorar el rendimiento de Ubuntu

  10. Pingback: Consejos para mejorar el rendimiento de Ubuntu y hacerlo más rápido | Misiongeek

  11. Pingback: Linux Mint Czech - Script pro instalaci Kernel-CK v Linux Mintu at Linux Mint CZ&SK

  12. Pingback: Script pro instalaci Kernel-CK v Linux Mintu - Linux Mint CZ&SK

  13. Pingback: Consejos para mejorar el rendimiento de Ubuntu. | RedUniv

  14. Hi !
    At first, thanks to share this script.
    I tried the lastest version to compile the 3.15.5 version kernel. As far as I can see, there is no errors during the compilation, but the “copying debs files…” step ends in an error. I checked the folder, indeed there is no .deb files.
    Actually, I’m running the elementaryOS latest beta.
    Thanks in advance for any help.

    • Hi Sebas,

      Try running the script this way:

      bash -x script

      And see if it outputs some information, also review /tmp/kernel-ck-ubuntu.error and see if there is something interesting.., packages for kernel 3.15.5 are available at the end of the post, they should work in elementaryOS since it also use apt-get as installation program.

      Regards

      • Hello Mikael,

        Indeed, the script now fails to build a kernel package because it depends of make-kpkg which is broken with recent kernels, https://lkml.org/lkml/2014/4/3/333 I won’t try to fix this by myself but will keep an eye on it in the case it gets fixed

  15. Pingback: The Ultimate Guide to Speed Up Your Linux Computer | Code for Share

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s