Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Alternative to 200 line kernel patch.

  1. #1
    Join Date
    Jun 2006
    Location
    California
    Beans
    638

    Alternative to 200 line kernel patch.

    "Lennart Poettering, a RedHat developer replied to Linus Torvalds on a maling list with an alternative to this patch that does the same thing yet all you have to do is run 2 commands and paste 4 lines in your ~/.bashrc file. I know it sounds unbelievable, but apparently someone even ran some tests which prove that Lennart's solution works. Read on!"

    http://www.webupd8.org/2010/11/alter...nel-patch.html

  2. #2
    Join Date
    Nov 2006
    Beans
    1,199

    Re: Alternative to 200 line kernel patch.

    (important: this won't work on Ubuntu.
    Think ill wait for the patch.

  3. #3
    Join Date
    Oct 2010
    Beans
    94

    Re: Alternative to 200 line kernel patch.

    Quote Originally Posted by Gremlinzzz View Post
    (important: this won't work on Ubuntu.
    Think ill wait for the patch.
    and what are you basing this on?

  4. #4
    Join Date
    Nov 2006
    Beans
    1,199

    Re: Alternative to 200 line kernel patch.

    Quote Originally Posted by Decatf View Post
    and what are you basing this on?
    Phoronix recently published an article regarding a ~200 lines Linux Kernel patch that improves responsiveness under system strain. Well, Lennart Poettering, a RedHat developer replied to Linus Torvalds on a maling list with an alternative to this patch that does the same thing yet all you have to do is run 2 commands and paste 4 lines in your ~/.bashrc file. I know it sounds unbelievable, but apparently someone even ran some tests which prove that Lennart's solution works. Read on!

    Basically, Lennart explains you have to add this to your ~/.bashrc file (important: this won't work on Ubuntu. See instructions for Ubuntu further down the post!):
    on this.
    Update 2: 64bit kernels (Warning: use these at your own risk!!!) for Ubuntu 10.10:

  5. #5
    Join Date
    Dec 2009
    Beans
    107
    Distro
    Ubuntu Development Release

    Re: Alternative to 200 line kernel patch.

    Linus Torvalds reply to this:

    On Tue, Nov 16, 2010 at 10:16 AM, Lennart Poettering
    <mzxreary@0pointer.de> wrote:
    >
    > Here's my super-complex patch btw, to achieve exactly the same thing
    > from userspace without involving any kernel or systemd patching and
    > kernel-side logic. Simply edit your own ~/.bashrc and add this to the end:

    Right. And that's basically how this "patch" was actually tested
    originally - by doing this by hand, without actually having a patch in
    hand. I told people: this seems to work really well. Mike made it work
    automatically.

    Because it's something we want to do it for all users, and for all
    shells, and make sure it gets done automatically. Including for users
    that have old distributions etc, and make it easy to do in one place.
    And then you do it for all the other heuristics we can see easily in
    the kernel. And then you do it magically without users even having to
    _notice_.

    Suddenly it doesn't seem that wonderful any more to play with bashrc, does it?

    That's the point. We can push out the kernel change, and everything
    will "just work". We can make that feature we already have in the
    kernel actually be _useful_.

    User-level configuration for something that should just work is
    annoying. We can do better.

    Put another way: if we find a better way to do something, we should
    _not_ say "well, if users want it, they can do this <technical thing
    here>". If it really is a better way to do something, we should just
    do it. Requiring user setup is _not_ a feature.

    Now, I'm not saying that we shouldn't allow users to use cgroups. Of
    course they can do things manually too. But we shouldn't require users
    to do silly things that we can more easily do ourselves.

    If the choice is between telling everybody "you should do this", and
    "we should just do this for you", I'll take the second one every time.
    We know it should be done. Why should we then tell somebody else to do
    it for us?

    Linus
    Courtesy of http://lkml.org/lkml/2010/11/16/351.

    In any event, I'll be trying Lennart's way until the new kernel comes out.

  6. #6
    Join Date
    Nov 2006
    Beans
    1,199

    Re: Alternative to 200 line kernel patch.

    In any event, I'll be trying Lennart's way until the new kernel comes out.
    isn't it out
    If you want to go even further and install a patched Kernel, you can download a "200 lines" patched Kernel from HERE (thanks to accumulator @ Phoronix forums).
    http://www.outrightsolutions.nl/~sander/ubuntu/kernel/
    its from mooreted link same as the warning
    Last edited by Gremlinzzz; November 19th, 2010 at 03:27 AM.

  7. #7
    Join Date
    Jun 2006
    Location
    California
    Beans
    638

    Re: Alternative to 200 line kernel patch.

    I figure it's worth a shot, just for the fun of it.

  8. #8
    Join Date
    Nov 2006
    Beans
    1,199

    Re: Alternative to 200 line kernel patch.

    You figured right, I hope they report back if it works.

  9. #9
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Alternative to 200 line kernel patch.

    I use it on my netbook running Unity 10.10, it doesn't make a great huge difference, but it does feel faster.

  10. #10
    Join Date
    Jun 2009
    Beans
    286

    Re: Alternative to 200 line kernel patch.

    Quote Originally Posted by Gremlinzzz View Post
    (important: this won't work on Ubuntu.
    Think ill wait for the patch.
    Not so; it does work for Ubuntu, just requires slightly different syntax. See this thread: http://ubuntuforums.org/showthread.php?p=10134058

    I just applied it to an Acer netbook running 10.04LTS, and performance seems to be improved as described; no unexpected side effects observed. (But I DID make a full backup before applying the changes.)
    Last edited by libssd; November 19th, 2010 at 05:50 AM.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •