Page 2 of 2

Re: New Kernel patch to speed things up - a lot!

Posted: 22 Dec 2010, 22:15
by dedanna1029
That came directly from the page: http://www.webupd8.org/2010/11/alternat ... patch.html

Follow the steps to what I explained there - you'll see.

On second thought, would you mind giving step-by-step what you did, and how? Those two pages are way too confusing, by continually referring back to each other - it's hard to tell what to do where & when.

Thanks.

Re: New Kernel patch to speed things up - a lot!

Posted: 22 Dec 2010, 23:36
by viking60
Yes I can see that you are confused. I'll take you through it step by step - but first I must have some wine with a beautiful lady. I'll be back....

Re: New Kernel patch to speed things up - a lot!

Posted: 23 Dec 2010, 00:27
by dedanna1029
Go for it! I must haz a few with a real good-looking man, too. :)

Re: New Kernel patch to speed things up - a lot!

Posted: 23 Dec 2010, 10:19
by viking60
OK here we go.
Kernel patch for Arch (and Ubuntu) step by step:
:A
The /etc/rc.local file
1 sudo nano /etc/rc.local
2 paste this in there:

Code: Select all

mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
and save it.
3and make it executable:

Code: Select all

sudo chmod +x /etc/rc.local

Finished with the /etc/rc.local file
*************************************************
The ~/.bashrc file
Paste this on top of the file:

Code: Select all

#The superduper Kernel patch for sound berserks
if [ "$PS1" ] ; then
   mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1
   echo $$ > /dev/cgroup/cpu/user/$$/tasks
   echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
fi

And save it.
Finished with the ~/.bashrc file
*********************************************
The cgroup_clean file
1 We open it (it is a new empty file):

Code: Select all

sudo nano /usr/local/sbin/cgroup_clean

2 We put this code in there:

Code: Select all

#!/bin/sh
if [ "$*" != "/user" ]; then
rmdir /dev/cgroup/cpu/$*
fi

3. Save it and make it executable

Code: Select all

sudo chmod +x /usr/local/sbin/cgroup_clean

Finished with the /usr/local/sbin/cgroup_clean file
***********************************************************************
Restart your computer
Finished!

Capiche :?: 8-)

Re: New Kernel patch to speed things up - a lot!

Posted: 23 Dec 2010, 11:17
by dedanna1029
Thank you! Will give it a go when I wake up (I'm asleep right now, supposedly at 3:18 a.m. :P )

Re: New Kernel patch to speed things up - a lot!

Posted: 23 Dec 2010, 20:18
by viking60
What! You make me go through all that and then you do nothing :f

Re: New Kernel patch to speed things up - a lot!

Posted: 24 Dec 2010, 07:13
by dedanna1029
I will. It's been a very rough time lately. I'm sorry. It's not for naught. Thank you for posting that.