Linux-ck and BFS: apply patches to the new kernel

Read Also: Compilation of the Linux kernel, how and why

Some weeks ago the latest version of the Linux kernel was released, namely the 4.3, which introduces improvements, support for new hardware, bugfixes, etc ... Anyone interested can click here.


What is Linux-ck
linuxLinux-ck it is not a kernel, but patches to be applied to the kernel before configuration and compilation. These patches improve system performance and introduce BFS, A new scheduler.
Recommended especially for laptops (laptops).

What is a patch?
A patch, as many will know, is a file that contains the changes of a file from a previous phase to the next one.
I mean that Linux-ck are "modifications" to the vanilla kernel, changes to the source code, so to be applied these patches are created, which we will then see as applied. They contain the changes to be made to a file.

What is a scheduler
One scheduler it is necessary to manage threads and processes of a program. The scheduler is an integral part of the kernel, once the patch is applied support for the BFS scheduler will be added which, as mentioned above, will significantly improve performance.

to know more

  • Linux-ck: here
  • BFS CPU Scheduler: here

We will compile the kernel directly, however it is possible to obtain a precompiled one through the package managers of the various distros.

1: Download the patch (lrz)
Note: the patch is 4.3-ck1 and can be used with the 4.3 kernel

Then we download the patch from here: 4.3-ck1

2: Decompress the lrz archive:

... with the command:

lrzip -d patch-4.3-ck1.lrz

so we will get a simple text file:


That file is your patch, let's copy it into the folder where the kernel is located with the "cp" program

cp -v patch-4.3-ck1 ~ / Kernels / stable / linux-4.3

Note: ~ / Kernels / stable / linux-4.3 is my directory ... your kernel code may be somewhere else.

3: We apply the patch to the source

Once this is done we navigate to our kernel folder with the "cd" command

cd ~ / Kernels / stable / linux-4.3

and we use the "patch" program to apply the changes to With Kolivas to the kernel.

patch -p1 <patch-4.3-ck1

4: We configure and compile
Without this we have our kernel customized with the BFS scheduler, then proceed to the configuration [menuconfig] (ONLY AFTER APPLIED THE PATCH), we note that in General Setup there is BFS CPU Scheduler let's set it as default, save and compile with the good



We generate ramdisks if required, move the kernel to / boot, update the bootloader and restart!

Receive the latest posts by email

Enter the email and choose the inscriptions on the new page
Added devices
  • Compare Smartphone (0)
  • Compare Notebook (0)