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

Thread: Alternative To The 200 Lines Kernel Patch

  1. #1
    Join Date
    Jun 2005
    Location
    Gray, TN
    Beans
    57
    Distro
    Ubuntu Studio 10.10 Maverick Meerkat

    Alternative To The 200 Lines Kernel Patch

    Has anyone implemented the above as described at http://www.webupd8.org/2010/11/alter...nel-patch.html and can testify to it significantly increasing performance for normal desktop use?
    ~/ sweet ~/

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

    Re: Alternative To The 200 Lines Kernel Patch

    I just set it up on my netbook, the system does run noticeably faster. I'd suggest you try it. If it doesn't work for you, it's pretty easy to undo the changes.

  3. #3
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,285
    Distro
    Ubuntu

    Re: Alternative To The 200 Lines Kernel Patch

    Just tried it on my desktop - pretty hard for me to tell if it's faster, as it's a fairly powerful rig as it is. It does feel a bit snappier, but this could quite easily just be me imagining things

    Edit: Just tried scrolling up and down a rather large webpage full of text, which used to lag a fair amount (I believe this is common with Nvidia cards?). Works as smoothly as you'd expect! Thanks for posting the link
    Last edited by Joeb454; November 18th, 2010 at 10:28 PM.

  4. #4
    Join Date
    Feb 2009
    Beans
    500

    Re: Alternative To The 200 Lines Kernel Patch

    I tried the instructions and I get an error message every time I open gnome-terminal:

    Code:
    mkdir: cannot create directory `/dev/cgroup/cpu/user/xxxx': No such file or directory
    bash: /dev/cgroup/cpu/user/xxxx/tasks: No such file or directory
    With xxxx being four various numbers

    Do the lines that go in the ~/.bashrc file need to be a certain place?

  5. #5
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,285
    Distro
    Ubuntu

    Re: Alternative To The 200 Lines Kernel Patch

    Quote Originally Posted by mister_playboy View Post
    I tried the instructions and I get an error message every time I open gnome-terminal:

    Code:
    mkdir: cannot create directory `/dev/cgroup/cpu/user/xxxx': No such file or directory
    bash: /dev/cgroup/cpu/user/xxxx/tasks: No such file or directory
    With xxxx being four various numbers

    Do the lines that go in the ~/.bashrc file need to be a certain place?
    Try putting them at the end of the file, if you haven't already. That's where I put it on my system, and I'm not experiencing the error.

  6. #6
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,264
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Alternative To The 200 Lines Kernel Patch

    Quote Originally Posted by mister_playboy View Post
    I tried the instructions and I get an error message every time I open gnome-terminal:

    Code:
    mkdir: cannot create directory `/dev/cgroup/cpu/user/xxxx': No such file or directory
    bash: /dev/cgroup/cpu/user/xxxx/tasks: No such file or directory
    With xxxx being four various numbers

    Do the lines that go in the ~/.bashrc file need to be a certain place?
    No.

    The directory /dev/cgroup/cpu/user/xxxx/tasks should be created by /etc/rc.local on reboot. Check that directory exists. If not, investigate why /etc/re.local isn't creating the directory. P.S. the directory needs recreating every time it boots because it is not stored on disk - it's in virtual filesystem.

    I think it feels more responsive, but I need more time to play before I'm sure.

  7. #7
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Alternative To The 200 Lines Kernel Patch

    Quote Originally Posted by mister_playboy View Post
    I tried the instructions and I get an error message every time I open gnome-terminal:

    Code:
    mkdir: cannot create directory `/dev/cgroup/cpu/user/xxxx': No such file or directory
    bash: /dev/cgroup/cpu/user/xxxx/tasks: No such file or directory
    With xxxx being four various numbers

    Do the lines that go in the ~/.bashrc file need to be a certain place?
    Did you change "user" to your username? I took them at their word and entered it just as it was posted (user).

    After reading your post I substituted my username and got the error you mention.

    (Yes, I know the example shows 'user')
    Last edited by drs305; November 18th, 2010 at 11:40 PM.
    Back to Xorg...

    Retired.

  8. #8
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,285
    Distro
    Ubuntu

    Re: Alternative To The 200 Lines Kernel Patch

    Based on what The Cog said - have you made /etc/rc.local executable? It sounds like it might not be running.

  9. #9
    Join Date
    Jul 2010
    Location
    Miami
    Beans
    411
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Alternative To The 200 Lines Kernel Patch

    Quote Originally Posted by mister_playboy View Post
    I tried the instructions and I get an error message every time I open gnome-terminal:

    Code:
    mkdir: cannot create directory `/dev/cgroup/cpu/user/xxxx': No such file or directory
    bash: /dev/cgroup/cpu/user/xxxx/tasks: No such file or directory
    With xxxx being four various numbers

    Do the lines that go in the ~/.bashrc file need to be a certain place?
    I keep getting this error too. I've tried various suggested fixed but none seem to have worked.

  10. #10
    Join Date
    Feb 2009
    Beans
    500

    Re: Alternative To The 200 Lines Kernel Patch

    One of the comments left by Ricardo Ferreira on that page solved my problem (after rebooting again):
    Edit your rc.local file with sudo gedit /etc/rc.local and delete the following line:
    Code:
    echo "1" > /dev/cgroup/cpu/user/notify_on_release
    Save and exit gedit. Then, run gedit ~/.bashrc and add the following inside your if statement:
    Code:
    echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
    So it should look like this:
    Code:
    if [ "$PS1" ] ; then
    mkdir -m 0700 /dev/cgroup/cpu/user/$$
    echo $$ > /dev/cgroup/cpu/user/$$/tasks
    echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
    fi
    Last edited by mister_playboy; November 18th, 2010 at 11:59 PM.

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
  •