• Linux to gain significant speed boost thanks to small kernel patch
    44 replies, posted
[quote=OMG! ubuntu!]The patch by Linux kernel developer Mike Galbraith which adds a mere 233 lines of code to the Kernel’s scheduler, cuts the desktop latency by a factor of ten! The patch has been praised by Linus himself.[/quote] [B][url=http://www.omgubuntu.co.uk/2010/11/linux-to-get-a-lot-faster-due-to-new-patch/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+d0od+%28Omg!+Ubuntu!%29&utm_content=FaceBook]Source[/url][/B]
sweet
Wow, didn't know such a small amount of code could improve performance that much.
[QUOTE=Fatman55;26113108]Wow, didn't know such a small amount of code could improve performance that much.[/QUOTE] quality over quantity
What does it do? Explain how his patch works Mike wrote 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. Simply, this patch works by enabling the system to automatically create task groups per TTY from what I understand. Don’t believe me? No problem, 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 here. It is a day and night difference!
Was this the guy who stopped hacking linux because people on the mailing lists were such dicks to him?
Yeah, saw this on Slashdot a few days ago. Amazing. But it doesn't work with everything.
My God. :swoon::swoon::swoon: Ultimate :awesome:
[QUOTE=blackdenton;26113837]Was this the guy who stopped hacking linux because people on the mailing lists were such dicks to him?[/QUOTE] Why would he put out such a patch ahead to Linus then?
Cool, but when will I see this update appear on my Arch installation? Can anyone give an estimate, I mean they're talking about 2.6.38 here while 2.6.35-ARCH is the latest kernel version in the official repositories. And I don't want to risk compiling my own kernel.
[QUOTE=FPtje;26117482]Cool, but when will I see this update appear on my Arch installation? Can anyone give an estimate, I mean they're talking about 2.6.38 here while 2.6.35-ARCH is the latest kernel version in the official repositories. And I don't want to risk compiling my own kernel.[/QUOTE] "Risk" compiling your own kernel? Just get the latest git snapshot, compile that bitch, c&p it into your /boot and add another section to your grub config file. Reboot, and choose the new kernel. If it doesn't work, or fuck's up (kernel panics), you can just reboot the computer and choose the old kernel in grub. No worries.
Must.. resist.. trying.. this.. with.. CentOS.. A performance boost on an Pentium 4 would be nice though. Anyone know where to download the patch or is it included in 2.6.37-rc2?[B][/B]
Presumably from kernel.org. I'll be upgrading tonight probably. Maybe even get this patch into android. Shit would be intense.
[QUOTE=blackdenton;26113837]Was this the guy who stopped hacking linux because people on the mailing lists were such dicks to him?[/QUOTE] No. [editline]17th November 2010[/editline] Also it's not a performance boost, it just decreases desktop latency when an intensive task is going on. Linus's example was that he could compile the kernel using 64 compiler threads and Firefox wouldn't get laggy and unresponsive. The kernel would compile at the same speed as always though.
[QUOTE=PvtCupcakes;26122707]No. [editline]17th November 2010[/editline] Also it's not a performance boost, it just decreases desktop latency when an intensive task is going on. Linus's example was that he could compile the kernel using 64 compiler threads and Firefox wouldn't get laggy and unresponsive. The kernel would compile at the same speed as always though.[/QUOTE] I do a lot of compiling and end up unhappy because firefox gets slow as fuck while doing so, so this is great
[QUOTE=ButtsexV2;26122634]Presumably from kernel.org. I'll be upgrading tonight probably. Maybe even get this patch into android. Shit would be intense.[/QUOTE] Where there? I've never compiled the kernel in my life so I understandably have a bit of a problem with navigating the site. Compiling 2.6.37-rc2 right now, going to be the first kernel I'll have compiled. It'll probably not work, cause my Pentium 4 to explode and I'll lose my right leg.
[QUOTE=nikomo;26123948]Where there? I've never compiled the kernel in my life so I understandably have a bit of a problem with navigating the site. Compiling 2.6.37-rc2 right now, going to be the first kernel I'll have compiled. It'll probably not work, cause my Pentium 4 to explode and I'll lose my right leg.[/QUOTE] Read the Gentoo handbook for compiling the kernel if you're in need. [url="http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=7#doc_chap3"]link[/url] Path "/usr/src/linux" is where you extracted the kernel source.
I think I'll wait for CentOS to update. The kernel's been well tested and proven to work great.
Perhaps this will finally allow me to use my shitty laptop properly. When I am running a few things such as Firefox, massive apt updates and compiling a few things, it tends to get a bit sluggish to switch windows and use Firefox. I really need to get myself a desktop installation of Arch going on. I've had the partition ready for months...
I really need to wait and get a bigger external harddrive to offload my movie collection onto so I can backup my laptop and install Mint 10 with the latest kernel and this performance patch. I'm betting it would breath new life into this aging Turion64 1.8GHz single core chip. I have to admit though, it's about on par with my 3.0GHz Pentium 4 in terms of regular everyday usage. Playing flash games and youtube vids beyond 360p is it's only weakness so far. (Not much of a gamer beyond emulators and my Wii).
Oh shit, I'm going to get hyper now :C
[QUOTE=Pixel Heart;26129863]I really need to wait and get a bigger external harddrive to offload my movie collection onto so I can backup my laptop and install Mint 10 with the latest kernel and this performance patch. I'm betting it would breath new life into this aging Turion64 1.8GHz single core chip. I have to admit though, it's about on par with my 3.0GHz Pentium 4 in terms of regular everyday usage. Playing flash games and youtube vids beyond 360p is it's only weakness so far. (Not much of a gamer beyond emulators and my Wii).[/QUOTE] I don't get why people backup all their stuff just because of a kernel update.. What are you afraid of? That the kernel with fuck the OS up? Nope, it'll just kernel panic then. Really, why not just install it alongside any other kernels you've had, and add a new section to your grub/lilo?
I have to reinstall Mint freshly, not just "upgrade it". I'm on Mint 9, and need to rock Mint 10. I'm already on the patched 2.6.37-rc2 kernel.
I'm patching and recompiling on my Arch box (Core 2 Duo), will let you know how it goes (hopefully with some benchmarks).
Oh my god yes!
bah. nvidia module refuses to build on 3.6.37-rc2
[url]http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html[/url]
[QUOTE=q3k;26142541][url]http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html[/url][/QUOTE] wow, this actually made a noticeable difference in my netbook's desktop performance! I have to wait about half a minute for my desktop to load properly on this netbook (I open up chrome, evolution and empathy as soon as I log in too)... now it's like instantaneous!
[QUOTE=q3k;26142541][url]http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html[/url][/QUOTE] bash is for queers
[QUOTE=ButtsexV17;26145861]bash is for queers[/QUOTE] Then write it in the scripting language of your choice. I mean, if you are such an expert, it shouldn't be too hard for you to port this: [code]if [ "$PS1" ] ; then mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$ echo $$ > /sys/fs/cgroup/cpu/user/$$/tasks fi[/code]
Sorry, you need to Log In to post a reply to this thread.