You are not logged in.

#1 2010-11-16 15:58:22

crocowhile
Member
Registered: 2009-10-18
Posts: 54

The kernel patch that does wonders

Offline

#2 2010-11-16 16:06:34

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,791

Re: The kernel patch that does wonders

It looks like it patches against 2.6.37 at least, and I only know of one kernel26-* package in the AUR that is there currently. So no, you'd probably have to wait a bit.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-11-16 16:09:48

crocowhile
Member
Registered: 2009-10-18
Posts: 54

Re: The kernel patch that does wonders

I am compiling right now. If it works as described I'll make a AUR package myself. 10x improvement is not something I'd wait for too long.

Offline

#4 2010-11-16 16:13:19

praavDa
Member
Registered: 2008-08-21
Posts: 34

Re: The kernel patch that does wonders

Hello,

Has anyone tried to run custom kernel with the patch mentioned in this phoronix article: http://www.phoronix.com/scan.php?page=a … 2637_video ?

Does this patch really "does wonders" or at least makes a difference in responsivenes of linux desktops?

Last edited by praavDa (2010-11-16 16:13:38)


gvim -c "exec \"normal itYNQ#v'Z#ABG#GUR#BAYL#BAR\"|%s/#/ /g|normal ggVGg?ggVG~"

Offline

#5 2010-11-16 16:23:35

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: The kernel patch that does wonders

looks promising! If this can be integrated without any flaw....yeaharr smile let's compile it baby! but will this patch useful for older processors ( < I 3/5/7 )?

Further...is there any place to get this patch or do we have to copy it from this mail-list ?

Offline

#6 2010-11-16 16:58:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,092
Website

Re: The kernel patch that does wonders

I wouldn't touch this just yet -- though the idea appears to be sound, it's still in need of some polishing. Read the LKML thread if you want more detail. If you just want to skip ahead to where the problems are discovered, start here.

edit: Didn't bother to look at the dates on the LKML thread... Silly me. I'd still be careful as there's at least a half dozen versions of the patch on that thread, some of them with evil repercussions, and who knows what else will show up. This is certainly something to look forward to for 2.6.38, though.

Last edited by falconindy (2010-11-16 17:06:03)

Offline

#7 2010-11-16 17:21:04

birdspider
Member
From: Vienna
Registered: 2007-12-29
Posts: 30
Website

Re: The kernel patch that does wonders

Hi,

does anyone know if this does any good for low-perfomance cpus ? I currently use kernel26-n130 ( CK patchset) on an atom cpu.
Any ideas how CK and Mike Galbraith's compare? or if comparison makes sense ?

Offline

#8 2010-11-16 18:00:26

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: The kernel patch that does wonders

The new patch is for group scheduling under CFS, correct? Does anyone know if this patch will work under BFS? I think BFS only has a priority group and a standard group?

Offline

#9 2010-11-16 18:53:25

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: The kernel patch that does wonders

crocowhile wrote:

I am compiling right now. If it works as described I'll make a AUR package myself. 10x improvement is not something I'd wait for too long.

And crocowhile? Share the magic . . .

Offline

#10 2010-11-16 20:11:07

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

Re: The kernel patch that does wonders

Where is compiled Arch kernel with this patch? smile

Offline

#11 2010-11-16 21:13:36

Jurassic
Member
Registered: 2006-10-31
Posts: 51

Re: The kernel patch that does wonders

DonVla wrote:
crocowhile wrote:

I am compiling right now. If it works as described I'll make a AUR package myself. 10x improvement is not something I'd wait for too long.

And crocowhile? Share the magic . . .

I guess it didn't go too well hmm


Arch linux

Offline

#12 2010-11-16 21:40:51

crocowhile
Member
Registered: 2009-10-18
Posts: 54

Re: The kernel patch that does wonders

aha. no, I am still alive. The kernel is compiled but I didn't have time to start it up and compare yet. A small baby with a stomach bug is incompatible with any form of kernel hacking. Also, the computer I have at home is old; at work I have a i7 and I better try that one anyway.

Offline

#13 2010-11-16 22:32:56

Jurassic
Member
Registered: 2006-10-31
Posts: 51

Re: The kernel patch that does wonders

crocowhile wrote:

aha. no, I am still alive. The kernel is compiled but I didn't have time to start it up and compare yet. A small baby with a stomach bug is incompatible with any form of kernel hacking. Also, the computer I have at home is old; at work I have a i7 and I better try that one anyway.

Sorry to hear abt the baby, but...you're not going to keep us waiting till tomorrow, are you?? wink Got a PKGBUILD to share?


Arch linux

Offline

#14 2010-11-16 22:50:14

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: The kernel patch that does wonders

^^
Here you go
1. git clone git://kernel.org/sources (use the actual url, I dunno what it is off the top of my head)
1.5: make xconfig
2. make -jX
3. make modules install
4. cp arch/${ARCH}/bzImage /boot/bzImage-2010-11-16-git
5. mkinitcpio --with-your-needed-options
6. Edit menu.list

Bang, bang, boom

Last edited by pyther (2010-11-16 22:54:45)


Website - Blog - arch-home
Arch User since March 2005

Offline

#15 2010-11-17 01:55:06

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 340

Re: The kernel patch that does wonders

Zen-kernel and liquorix should have picked the patch up by now but unfortunately the site is down ....


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

#16 2010-11-17 03:27:38

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 107

Re: The kernel patch that does wonders

The patch isn't in 2.6.37-rc2 as per the article. Have a look at the kernel's source code and you'll see that the files the patch modifies aren't changed (yet).

These are the files the patch changes from http://marc.info/?l=linux-kernel&m=128978361700898&w=2
---
Documentation/kernel-parameters.txt   |    2
drivers/tty/tty_io.c                                   |    1
include/linux/sched.h                              |   19 ++++
init/Kconfig                                              |   12 +++
kernel/fork.c                                            |    5 +
kernel/sched.c                                         |   25 ++++--
kernel/sched_autogroup.c                      |  140 ++++++++++++++++++++++++++++++++++++
kernel/sched_autogroup.h                      |   18 ++++
kernel/sysctl.c                                         |   11 ++
9 files changed, 224 insertions(+), 9 deletions(-)


So, you just have to create it manually.  Simply copy and paste into a text file beginning with the line 'Index: linux-2.6/include/linux/sched.h' to the end.

The build procedure should be the same after you get, extract, and apply the patch.

$ cd to your linux source
(Assuming you have created the patch file called patch.txt in the parent of where you just extracted the kernel sources).
$ patch -p1 < ../patch.txt

patching file include/linux/sched.h
Hunk #3 succeeded at 1935 (offset -1 lines).
patching file kernel/sched.c
Hunk #2 succeeded at 616 (offset 10 lines).
Hunk #3 succeeded at 2020 (offset 10 lines).
Hunk #4 succeeded at 7967 (offset -17 lines).
Hunk #5 succeeded at 8497 (offset -17 lines).
Hunk #6 succeeded at 8522 (offset -17 lines).
patching file kernel/fork.c
patching file drivers/tty/tty_io.c
patching file kernel/sched_autogroup.h
patching file kernel/sched_autogroup.c
patching file kernel/sysctl.c
patching file init/Kconfig
patching file Documentation/kernel-parameters.txt

Last edited by slytux (2010-11-17 04:45:50)

Offline

#17 2010-11-17 09:10:05

crayxt
Member
Registered: 2008-12-19
Posts: 37

Re: The kernel patch that does wonders

Running 2.6.37-rc2 with this patch now (http://mail.kazgrid.kz/repo/i686/kernel … pkg.tar.xz)

How do I check, whether this patch is working or not?

make -j64 and Youtube shows videos nice

Last edited by crayxt (2010-11-17 09:24:23)


Всем выйти из Сумрака!!!

Уважение - это когда чтобы поприветствовать человека вытаскиваешь оба наушника.
my blog

Offline

#18 2010-11-17 09:21:15

snoopy33
Member
From: Paris
Registered: 2009-09-30
Posts: 14

Re: The kernel patch that does wonders

crayxt wrote:

Running 2.6.37-rc2 with this path now (http://mail.kazgrid.kz/repo/i686/kernel … pkg.tar.xz)

How do I check, whether this patch is working or not?

make -j64 and Youtube shows videos nice

cat /proc/sys/kernel/sched_autogroup_enabled
(I take it from a forum)

Last edited by snoopy33 (2010-11-17 09:21:48)

Offline

#19 2010-11-17 09:24:05

crayxt
Member
Registered: 2008-12-19
Posts: 37

Re: The kernel patch that does wonders

$ cat /proc/sys/kernel/sched_autogroup_enabled
1


Всем выйти из Сумрака!!!

Уважение - это когда чтобы поприветствовать человека вытаскиваешь оба наушника.
my blog

Offline

#20 2010-11-17 09:54:15

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: The kernel patch that does wonders

I've applied it on 2.6.37-rc2 (the dev of this patch applied it on 2.6.36), I can say that it works great.

With make -j64 I can browse, listen to music and all of that without hickups. Swap stays relatively small (~10MB)

Without this patch the whole desktop becomes totally unusable, I barely can close the browser, swap goes skyhigh...

We will se what will become of this smile

Offline

#21 2010-11-17 10:25:00

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,605
Website

Re: The kernel patch that does wonders

Zen stable git has included the patch 3 days ago
http://git.zen-kernel.org/zen-stable/log/?h=cfs
But we BFS users don't care tongue


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#22 2010-11-17 12:46:35

spicausis
Member
From: Latvia
Registered: 2009-07-05
Posts: 3

Re: The kernel patch that does wonders

As nobody seems to tell how they built the wonderous kernel, here's my way. This is a first time I build a kernel under arch, so ymmv, things can be done better, yada yada, hope it helps somebody.

1. built and installed linux-firmware-git from AUR,

2 - 5. took a source package of kernel26-git (yaourt -G kernel26-git), mkdir patches, pasted the magic patch into patches/magic.patch, and makepkg -i.
In the menuconfig checked "Automated process group scheduling", exited menuconfig and waited... waited... waited...

6. In /boot/menu/grub.conf copied and pasted the first entry to a new one,

title  Das Experiment
root   (hd0,0)
kernel /vmlinuz26-git root=/dev/disk/by-uuid/b53854c4-f022-437a-a53d-580f288fdc6b ro
initrd /kernel26-git.img

7. Rebooted, select Das Experiment at the grub prompt
8. cursed a bit, switched to nouveau
9. profit!

Offline

#23 2010-11-17 13:15:03

madgnu
Member
From: Saint-Petersburg
Registered: 2009-12-27
Posts: 10

Re: The kernel patch that does wonders

Offline

#24 2010-11-17 13:23:19

presario
Member
From: Tashkent, Uzbekistan
Registered: 2008-12-07
Posts: 57
Website

Re: The kernel patch that does wonders

@madgnu
The link seems broken.


Running ArchLinux on Compaq Presario v2000

Offline

#25 2010-11-17 14:29:42

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 357
Website

Re: The kernel patch that does wonders

presario wrote:

@madgnu
The link seems broken.

Works for me.


--
JSkier

Offline

Board footer

Powered by FluxBB