Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Optimized kernel (based on Debian's backport)

Post Reply
Alt
Forum Novice
Forum  Novice
Posts: 82
Joined: Wed Jan 27, 2016 1:28 am

Optimized kernel (based on Debian's backport)

#1

Post by Alt » Sun May 06, 2018 2:43 pm

Hello again.

Here's my another attempt to suggest custom kernel build.
I hope that at some point something like this will be used in MX (similar to Mageia's linux-tmb kernel branch).

The goal was :
* to apply only important, reliable patches and tweaks
* stay closer to the main distro (Debian) using their patches & configs

In short I:
* took latest kernel from Stretch-backports (for now it's linux-image-amd64 (4.15+91~bpo9+1))
* applied some patches (MuQSS+some of CK ones, UKSM)
* in kernel config activated "buffered writeback throttling" and changed I/o scheduler to Deadline, enabled Preemption (but left default tick-rate (250Hz)
* Applied some tweaks from Liquorix/Zen (Ondemand scheduler, MuQSS rr_interval), changed some other default settings and disabled (not excluded from kernel build) intel_pstate.

So please test it and provide some feedback.
Google Drive link (amd64 only for now but same patches also work well with i386)

If anyone interested, I'd be happy to provide all information needed to make similar custom kernel build.
Last edited by Alt on Thu May 10, 2018 7:40 am, edited 1 time in total.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 19875
Joined: Fri Dec 15, 2006 8:07 pm

Re: My custom Debian-based kernel build (v4.15)

#2

Post by Stevo » Sun May 06, 2018 4:00 pm

Have you thought about having the OBS build and host them? I loaded the 4.16.5 backport to it yesterday, but today saw that the i586 builds ran out of disk space, so I added the _constraints file to request at least 40 GB, triggering a rebuild for all of them.

https://build.opensuse.org/package/show ... linux-4.16

There are some tweaks and workarounds that the OBS requires, such as adding linux-libc-dev as a build-depends in debian/control/templates/control.source.in

Alt
Forum Novice
Forum  Novice
Posts: 82
Joined: Wed Jan 27, 2016 1:28 am

Re: My custom Debian-based kernel build (v4.15)

#3

Post by Alt » Sun May 06, 2018 5:10 pm

For builds with CPU GCC patch (like Arch's linux-ck) it sounds like a good idea.
But I don't really package anything & for now have something else to study.

I posted this as a "proof of concept" with hope that some of this ideas/patches/tweaks will be accepted by MX team & used somehow as alternative to Liquorix
( which is great but but I'm a little concerned with it's experiments, mix of Siduction and mainline base & some parameters)

Here's all used patches + minimal instructions.
custom_kernel_patches-4-15.tar.gz
You do not have the required permissions to view the files attached to this post.

Alt
Forum Novice
Forum  Novice
Posts: 82
Joined: Wed Jan 27, 2016 1:28 am

Re: Optimized kernel (based on Debian's backport)

#4

Post by Alt » Thu May 10, 2018 8:10 am

New shiny build(s)

Code: Select all

* Based on 4.16.5-1~bpo9+1
* Added & applied custom Timer frequency (500HZ) [from xanmod]
* Lowered rr_interval to 2 ( noticeable difference)
* Dropped ck "hrtimer" patches (as they were meant to be used with 100HZ)
* Dropped blkrq tweak (it was meant to be used with CFQ or BFQ-SQ)
https://github.com/zen-kernel/zen-kernel/commit/3b26688163076e5be304f42fae8430a6a9d08d5
P.S. In the previous post I forgot to mention that "intel_pstate" could be enabled with GRUB parameter

Code: Select all

intel_pstate=enable
Download:
Regular optimized kernel
Kernel with GCC optimizations for Intel Skylake

Patches + instructions here, also attached.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Package Requests/Status - MX 17/18”