How do we get this magic performance - enhancing 200 line patch?

I read today on Phoronix that there is a 200 line patch to the Linux Kernel which substantially boosts desktop computer responsiveness.

Just how can Ubuntu customers get this in such a way that is sustained?

2019-12-02 03:01:49
Source Share
Answers: 5

I've simply read the lkml string and also hope I can supply some details - although not concerning obtaining the patch right into Ubuntu. As a blog post on the connected Ubuntu checklist claims, it is possibly mosting likely to remain in 2.6.38 anyhow.

The patch instantly teams procedure based upon TTYs. There is a great deal of discussion/argument on the lkml that claims this suggests it isn't pertinent for regular desktop computer use - that it makes no distinction to interactive applications. The examination instances are all based around "start a CPU extensive job from an incurable after that consider the responsiveness of an additional task". So compiling a kernel and also attempting to see a video clip, as an example.

That is not to claim it is bad, yet the basic "desktop responsivity boosted by an order of magnitude" type headings can be misdirecting if you never ever run CPU extensive jobs attached to a TTY. I can be incorrect certainly though!

There were some states of means of attaining a really comparable outcome by including in your celebration manuscripts and also permitting all customers to create cgroups. This will just function if existing Ubuntu bits have cgroups made it possible for. The pertinent blog posts are :

Obviously this isn't addressing the inquiry, yet maybe made use of to establish whether the patch is as enchanting as wished.

2019-12-03 05:46:08

You can make use of a straightforward "hack" uploaded by a RedHat programmer on a newsletter, that does not call for covering the kernel to get the very same point. Review it below : Alternative To The "200 Lines Kernel Patch That Does Wonders" Which You Can Use Right Away

2019-12-03 05:26:37

How can Ubuntu customers get this in such a way that is sustained ?

Focus mine. The only means you'll get it in a sustained means is by awaiting Ubuntu to draw it right into the Ubuntu kernel. As this is actually simply making it to the kernel newsletter, it is fresh to the factor where all screening is rather unscientific and also I visualize it will certainly be time prior to it prepares to be mass - released.

Someplace in between the next release and also a long period of time would certainly be my ignorant hunch.

Yet if you are a large child (or lady) and also you can manage a busted kernel if points fail (ie you recognize just how to make use of grub), you can patch and also compile your very own kernel.

  1. Download and install a patch. There are various variations yet the most effective by itself was uploaded listed below by an additional customer :

  2. Download the kernel resource for the variation your patch targets. In this instance 2.6.36. You can get vanilla (that is initial, unmodified by the Ubuntu kernel group) kernel resources from and also extract it.

  3. Conserve the patch someplace and also use it by cding right into the kernel resource dir and also running : patch -p1 < /path/to/patch (you require the patch plan for this ... Which I assume comes as component of build-essential if it is not mounted by default)

  4. And then continue with the rest of the "old fashioned" build process... I actually would not trouble with the more recent approaches as they are focused on Ubuntu/Debian - approved kernel resources ... Plus the old means appears less complicated (to me).

Structure bits isn't tough yet you can mess it up if you wander off also much from the approved course. And also you will not get main assistance if points fail.

Conversely, there are an increasing number of bits arising with the patch constructed in (or at the very least in the resource tree, waiting for the next release).

  • I think Zen Kernel has this patch in their tree yet I'm not exactly sure if it remains in any kind of builds yet.
  • The Liquorix Kernel has this baked in currently also.

Keep in mind : both these bits (and also possibly others also) differ the Ubuntu means of doing bits rather. You might locate (as I did when I relocated to Liquorix) that CPU regularity scaling quits working or suspend obtains damaged. There are generally solutions and also workarounds, yet opportunities are you will not get assistance from AskUbuntu or the remainder of the Ubuntu communtiy as we can not examine each and every single kernel around.

2019-12-03 04:39:24

Discussion concerning this details patch happened on the Ubuntu kernel - group newsletter :

But allow me attempt to specify a lot more generically concerning the most effective means for any kind of patch to make its means right into the Ubuntu kernel ...

First, it is the recommended plan of the Ubuntu Kernel Team that covers be sent and also approved upstream prior to being drew right into the Ubuntu kernel. It is a huge upkeep worry on the Ubuntu Kernel Team to need to keep out of tree spots. In addition, if the patch will certainly profit the whole Kernel Community, it needs to go upstream first.

As soon as the patch has actually been approved upstream, it will at some point make its means right into the Ubuntu kernel instantly. A cherry - choice or draw demand can additionally be made if one so wanted, see the web page, KernelPatches, for additional information.

If the patch requires to be used as an SRU (stable release update) to a previous Ubuntu release it is best to get the patch approved right into the equivalent upstream secure 2.6.x. y tree. As a component of our regular kernel SRU procedure, we consistently rebase to the most up to date upstream secure kernel. Hence we would certainly once more at some point get the patch instantly.

2019-12-03 04:31:20

I simply selected this conversation up currently and also its really intriguing. I have actually created a tiny blog post on just how to enable the cgroup patch on Ubuntu 10.10.

I have not actually examined if it functions or otherwise, so responses would certainly be wonderful!

2019-12-03 02:26:06