New Kernel patch to speed things up - a lot!

Linux pure!

Moderators: b1o, jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8494
Joined: 14 Mar 2010, 20:29
Contact:

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

Postby dedanna1029 » 22 Dec 2010, 22:15

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.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9284
Joined: 14 Mar 2010, 16:34

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

Postby viking60 » 22 Dec 2010, 23:36

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....
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8494
Joined: 14 Mar 2010, 20:29
Contact:

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

Postby dedanna1029 » 23 Dec 2010, 00:27

Go for it! I must haz a few with a real good-looking man, too. :)
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9284
Joined: 14 Mar 2010, 16:34

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

Postby viking60 » 23 Dec 2010, 10:19

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-)
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8494
Joined: 14 Mar 2010, 20:29
Contact:

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

Postby dedanna1029 » 23 Dec 2010, 11:17

Thank you! Will give it a go when I wake up (I'm asleep right now, supposedly at 3:18 a.m. :P )
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9284
Joined: 14 Mar 2010, 16:34

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

Postby viking60 » 23 Dec 2010, 20:18

What! You make me go through all that and then you do nothing :f
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8494
Joined: 14 Mar 2010, 20:29
Contact:

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

Postby dedanna1029 » 24 Dec 2010, 07:13

I will. It's been a very rough time lately. I'm sorry. It's not for naught. Thank you for posting that.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Kernel”