The 2.6.38 kernel's "wonder patch"

Here you can discuss every aspect of Debian. Note: not for support requests!

The 2.6.38 kernel's "wonder patch"

Postby gradinaruvasile » 2011-03-30 10:46

It seems to be working just as advertised - you have to open your cpu hungry stuff in different terminals though to take advantage of its power.
Edit: maybe launching programs with setsid has the same result, maybe someone can enlighten me about it...

AND enable it - it is disabled by default:

sysctl kernel.sched_autogroup_enabled=1

Disabling it:

sysctl kernel.sched_autogroup_enabled=0

I use the 2.6.38-2-686-bigmem kernel from experimental (4 GB RAM) on an Athlon II x2 250 @3.00 GHz CPU.
I compiled Wine with "make -j 20" (that are 20 parallel threads) and i did not feel it on my desktop/browsing tasks.
With that above value set to 0, i had very slow desktop redrawing, extremely slow program launch - opening a gnome-terminal for example took a few seconds, whereas with it enabled it is instant.
BTW on previous kernels such as the 2.6.32 i remember trying the exactly same command (make -j 20 on wine) and it led to complete desktop lockup after 15-20 seconds - so the 2.6.38 kernel has some other tweaks that help in this area.
User avatar
gradinaruvasile
 
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania

Re: The 2.6.38 kernel's "wonder patch"

Postby Tadeas » 2011-03-31 20:20

Well, the "wonder patch" is the reason why I've used 2.6.38 since -rc1. It worked great by then, it works great now! The difference is obvious. This is what I love about open source - you get great upgrades very often. When did Windows users get an enhancement like this last time?

BTW it's enabled by default if you enable it when compling :)
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: The 2.6.38 kernel's "wonder patch"

Postby kevin01123 » 2011-04-03 02:01

Works great. Compiled 2.6.38.2 on Squeeze just now. Compiled emacs, xulrunner, and linux-mainline while surfing youtube to test it. No slow downs what so ever.
User avatar
kevin01123
 
Posts: 97
Joined: 2009-05-18 02:19

Re: The 2.6.38 kernel's "wonder patch"

Postby dark_stang » 2011-04-03 02:36

You guys are making me compile a new kernel...
if (You_Dont_Care_Enough_To_Reasearch_Your_Own_Problems)
return "Why would I?";
else
return Helpful_Response;
User avatar
dark_stang
 
Posts: 243
Joined: 2008-08-21 05:31
Location: St. Louis, MO, USA

Re: The 2.6.38 kernel's "wonder patch"

Postby kevin01123 » 2011-04-03 02:44

Not only that, but I've noticed a general performance improvement overall compared to the stock squeeze kernel.
User avatar
kevin01123
 
Posts: 97
Joined: 2009-05-18 02:19

Re: The 2.6.38 kernel's "wonder patch"

Postby hellfire[bg] » 2011-04-03 20:39

Is this patch enabled by default? Will "kernel.sched_autogroup_enabled=1" work on a stock debian kernel?
...to boldly go where no one has gone before...
User avatar
hellfire[bg]
 
Posts: 499
Joined: 2006-06-21 19:15
Location: Sliven, Bulgaria

Re: The 2.6.38 kernel's "wonder patch"

Postby kevin01123 » 2011-04-03 23:57

cat /proc/sys/kernel/sched_autogroup_enabled

If 1, it's enabled. If 0, then it's not. I don't know how to enable it on a stock kernel. I compiled the functionality into mine.
User avatar
kevin01123
 
Posts: 97
Joined: 2009-05-18 02:19

Re: The 2.6.38 kernel's "wonder patch"

Postby eric1959 » 2011-04-04 00:17

Code: Select all
$ cat /proc/sys/kernel/sched_autogroup_enabled
1
$uname -r
2.6.36-1.dmz.1-liquorix-amd64


http://liquorix.net/
Debian Bits And Snips
Squeeze, Gnome, amd64, Intel Core i3-530, Geforce GT330
eric1959
 
Posts: 1299
Joined: 2008-12-15 13:17
Location: Amsterdam

Re: The 2.6.38 kernel's "wonder patch"

Postby hellfire[bg] » 2011-04-04 09:00

kevin01123, i understood how to enable it. My question was if it was enabled by default on the stock debian kernel or i should compile my custome kernel.
...to boldly go where no one has gone before...
User avatar
hellfire[bg]
 
Posts: 499
Joined: 2006-06-21 19:15
Location: Sliven, Bulgaria

Re: The 2.6.38 kernel's "wonder patch"

Postby gradinaruvasile » 2011-04-04 19:32

hellfire[bg] wrote:kevin01123, i understood how to enable it. My question was if it was enabled by default on the stock debian kernel or i should compile my custome kernel.


I use the 2.6.38-2 debian kernel installed from experimental. The task grouping is disabled by default, can be enabled with

sysctl kernel.sched_autogroup_enabled=1

No need to compile. You can put that line in /etc/sysctl.conf.
User avatar
gradinaruvasile
 
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania

Re: The 2.6.38 kernel's "wonder patch"

Postby manmath » 2011-04-05 03:14

dark_stang wrote:You guys are making me compile a new kernel...


I saw kernel 2.6.38 (http://darkstang.com/repo/binary/linux- ... _amd64.deb) in the repo mentioned in your signature. Will that install well and work on Debian squeeze?
manmath
 
Posts: 118
Joined: 2009-11-26 07:16

Re: The 2.6.38 kernel's "wonder patch"

Postby dark_stang » 2011-04-05 03:45

manmath wrote:
dark_stang wrote:You guys are making me compile a new kernel...


I saw kernel 2.6.38 (http://darkstang.com/repo/binary/linux- ... _amd64.deb) in the repo mentioned in your signature. Will that install well and work on Debian squeeze?

It works all right for me on Debian Unstable. If you want to use it feel free, there are also 2.6.38 images in the official Debian Unstable repo if you'd prefer one of them.

Edit: Note, that kernel doesn't have the automatic process grouping enabled though. A new one that I'm making will. I think the ones in the Debian sources already do.
if (You_Dont_Care_Enough_To_Reasearch_Your_Own_Problems)
return "Why would I?";
else
return Helpful_Response;
User avatar
dark_stang
 
Posts: 243
Joined: 2008-08-21 05:31
Location: St. Louis, MO, USA

Re: The 2.6.38 kernel's "wonder patch"

Postby sidRo » 2011-04-07 18:47

I use the 2.6.38-2 debian kernel installed from experimental. The task grouping is disabled by default, can be enabled with

sysctl kernel.sched_autogroup_enabled=1

No need to compile. You can put that line in /etc/sysctl.conf.

Doesn't work.

kernel variable sysctl kernel.sched_autogroup_enabled=1 unknown ...
User avatar
sidRo
 
Posts: 106
Joined: 2010-12-08 10:21
Location: Romania, Valcea

Re: The 2.6.38 kernel's "wonder patch"

Postby vbrummond » 2011-04-07 19:39

I think it is a good start but far from a wonder, especially for an average user. Currently I do not feel it offers me much that a simple "nice make -j 4" does not do already. The only strength I see of it is that it is automatic. Perhaps in the future they may have better parameters for splitting the jobs? Me, for now I will turn off cgroups and just nice anything I do not want to bother my foreground work.

I am quite sure if you download the debian 2.6.38-2 sources or if you are running .38 in unstable it is automatically enabled. You need .38 or later to use this unless you find a backport for an older kernel and manually patch/compile yourself.
Always on Debian Testing
vbrummond
 
Posts: 4468
Joined: 2010-03-02 01:42

Re: The 2.6.38 kernel's "wonder patch"

Postby Bulkley » 2011-04-08 02:04

It's enabled in the Liquorix 2.6.37-0 kernel and probably those since.
Bulkley
 
Posts: 5848
Joined: 2006-02-11 18:35

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable