donate Pinguy OS Forum
    irc IRC Chat
  • Search
  • Calendar
Hello There, Guest! Login Register
Pinguy OS Forum›Support›Tutorial/How-to
nav_bitThe ~200 Line Linux Kernel Patch That Does Wonders

Welcome, guest!
If this is your first visit, be sure to register to be able to post and partake on the forum. Registration is free, simple and fast. If you are already a member be sure to login.

Advertisement


User(s) browsing this thread: 1 Guest(s)
Post Reply 
Pages (6): 12345 6Next »
 
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode

The ~200 Line Linux Kernel Patch That Does Wonders

pinguy
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
United Kingdom
Developer
********
Pinguy OS Developers



Points: 63,960.35 exp.

Joined: Oct 2010
Likes Given: 82
Likes Received: 936 in 538 posts
Reputation: 54 - (Rate)


Offline

mobile ▲ Post: #1 ▼
The ~200 Line Linux Kernel Patch That Does Wonders


What does it do?

Explain how his patch works Mike wrote:

Quote:Each task’s signal struct contains an inherited pointer to a refcounted autogroup struct containing a task group pointer, the default for all tasks pointing to the init_task_group. When a task calls __proc_set_tty(), the process wide reference to the default group is dropped, a new task group is created, and the process is moved into the new task group. Children thereafter inherit this task group, and increase it’s refcount. On exit, a reference to the current task group is dropped when the last reference to each signal struct is dropped. The task group is destroyed when the last signal struct referencing it is freed. At runqueue selection time, If a task has no cgroup assignment, it’s current autogroup is used.

Phoronix has a put two videos showing the desktop running the latest Kernel git snapshot, glxgears, a web browser, a HD video clip and compiling a kernel with 64 jobs







[More Info at Phoronix.com]

DONATE TO PINGUY OS or show some love on Patreon.com
17-11-2010 12:00 PM
Visit this user's websiteFind all posts by this user Like PostQuote this message in a reply
[+]
y2b
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
Canada
(╯°□°)╯︵ ┻━┻
******
Super Moderators



Points: 11,988.15 exp.

Joined: Oct 2010
Likes Given: 223
Likes Received: 148 in 109 posts
Reputation: 11 - (Rate)


Offline

mobile ▲ Post: #2 ▼
RE: The ~200 Line Linux Kernel Patch That Does Wonders


Yeah, saw that yesterday. It's great. I really want Ubuntu to be using 2.6.38 in 11.04. Lets just hope someone gets started on a ppa for this kernel patch for 10.10

Click THIS to make Pinguy OS popular!
[Image: eGInc.gif]
17-11-2010 02:48 PM
Visit this user's websiteFind all posts by this user Like PostQuote this message in a reply
[+]
pinguy
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
United Kingdom
Developer
********
Pinguy OS Developers



Points: 63,960.35 exp.

Joined: Oct 2010
Likes Given: 82
Likes Received: 936 in 538 posts
Reputation: 54 - (Rate)


Offline

mobile ▲ Post: #3 ▼
RE: The ~200 Line Linux Kernel Patch That Does Wonders


Lennart Poettering, a RedHat developer replied to Linus Torvalds on a maling list with an alternative to this patch that does the same thing.

To use Lennart's solution in Pinguy OS, you have to add the following commands in your /etc/init.d/rc.local (open it with: gksu gedit /etc/init.d/rc.local) file, add this to the bottom of the file:

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
sudo bash -c "echo '
#!/bin/sh
if [ "$*" != "/user" ]; then
rmdir /dev/cgroup/cpu/$*
fi' > /usr/local/sbin/cgroup_clean

Then save and close.

And then add the following to your ~/.bashrc file (to open it: gedit ~/.bashrc):

Code: [Select All]
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

Run the following command:
Code: [Select All]
sudo gedit /usr/local/sbin/cgroup_clean

And paste this:
Code: [Select All]
#!/bin/sh
if [ "$1" != "/user" ]; then
rmdir /dev/cgroup/cpu/$1
fi

then save the file and make it executable:
Code: [Select All]
sudo chmod +x /usr/local/sbin/cgroup_clean

And finally,

Code: [Select All]
sudo apt-get install cgroup-bin libcgroup1


then restart the computer.

You can also try install the bfs kernel instead. Its meant to be faster but the kernel is still at a beta stage.

32-Bit
http://www.multiupload.com/A50C2RQXNA
http://www.multiupload.com/2WR0LGQAP0

64-Bit
http://www.multiupload.com/LGXOVBD9K4
http://www.multiupload.com/JCOWBLRPPT

Here's a quick video demonstrating how fast programs like OOo open when the BFS Kernel 2.6.36 is installed.





[via Webupd8]

DONATE TO PINGUY OS or show some love on Patreon.com
18-11-2010 06:03 PM
Visit this user's websiteFind all posts by this user Like PostQuote this message in a reply
[+] The following 1 user Likes pinguy's post:1 user Likes pinguy's post
yugnip (11-18-2010)
Jeff91
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
Undisclosed
Linux Blogger
***
Active User



Points: 2,267.70 exp.

Joined: Oct 2010
Likes Given: 3
Likes Received: 6 in 5 posts
Reputation: 3 - (Rate)


Offline

mobile ▲ Post: #4 ▼
RE: The ~200 Line Linux Kernel Patch That Does Wonders


Just applied this to my netbook... Not noticing anything major right out of the gate. Will report back in a week or so if I notice an improvement.

~Jeff

Why E17 is Best - Installing Firefox 4 in Pinguy
18-11-2010 10:13 PM
Visit this user's websiteFind all posts by this user Like PostQuote this message in a reply
[+]
y2b
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
Canada
(╯°□°)╯︵ ┻━┻
******
Super Moderators



Points: 11,988.15 exp.

Joined: Oct 2010
Likes Given: 223
Likes Received: 148 in 109 posts
Reputation: 11 - (Rate)


Offline

mobile ▲ Post: #5 ▼
RE: The ~200 Line Linux Kernel Patch That Does Wonders


Thanks for putting the 32-bit version. Appreciate it.

Click THIS to make Pinguy OS popular!
[Image: eGInc.gif]
18-11-2010 11:57 PM
Visit this user's websiteFind all posts by this user Like PostQuote this message in a reply
[+]
E-man
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
Finland
20+ Posts
***
Active User



Points: 1,779.55 exp.

Joined: Oct 2010
Likes Given: 1
Likes Received: 5 in 5 posts
Reputation: 2 - (Rate)


Offline

mobile ▲ Post: #6 ▼
RE: The ~200 Line Linux Kernel Patch That Does Wonders


Works great in my -06 HP Pavilion desktop. Applications are a lot faster now, Firefox, OO etc, and the system starts up quicker too. That's really good news, because PinguyOS isn't very fast really. Very nice it is though.

Thanks!
19-11-2010 07:58 AM
Find all posts by this user Like PostQuote this message in a reply
[+]
Jeff91
profile ViewProfilepm SendPM
thread ViewThreadsemail SendEmail
post ViewPosts
Undisclosed
Linux Blogger
***
Active User



Points: 2,267.70 exp.

Joined: Oct 2010
Likes Given: 3
Likes Received: 6 in 5 posts
Reputation: 3 - (Rate)


Offline

mobile ▲ Post: #7 ▼
RE: The ~200 Line Linux Kernel Patch That Does Wonders


Just so we are clear - you need to apply the patch you list AND install the kernel for the speed increase? Was just confused because Webup8 lists the patch you describe as an alternative to the patched kernel, which I thought meant it is not needed.

~Jeff

Why E17 is Best - Installing Firefox 4 in Pinguy
19-11-2010 01:27 PM
Visit this user's websiteFind all posts by this user Like PostQuote this message in a reply
[+]
« Next Oldest | Next Newest »
Pages (6): 12345 6Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread

  • new_pm Contact Us
  • home Pinguy OS Home Page
  • buddies Meet The Team
  • rss RSS Syndication
  • help Help
  • top_donors Top Donors
  • mobile MyBB GoMobile
Current time: 08-01-2018, 01:17 AM Powered By MyBB, © 2002-2018 | Cookie Consent Settings