Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Forum

  Home arrow News arrow Miracle patch set to turbocharge Linux kernel

Miracle patch set to turbocharge Linux kernel
By Eric Brown

Rate This Article: Add This Article To:

Heralded by Linus Torvalds as a "huge improvement," a 233-line kernel scheduling patch written by Mike Galbraith is making the rounds to rave reviews, reports Phoronix. Due for possible inclusion into Linux kernel 2.6.38, the "sched: autogroup" patch is claimed to reduce latency by a factor of 10, with noticeable improvements in 1080p video playback, according to "before-and-after" videos run at Phoronix.

Galbraith's scheduling patch is currently going through revisions, but his latest tests show the maximum latency dropping by over ten times and the average latency of the desktop reduced by about 60 times, says Phoronix.

The publication has yet to perform its own formal timed benchmarks, but has posted a "before and after" set of YouTube videos that show remarkable performance and video playback improvements during heavy multitasking on a Linux desktop (see farther below).

It's a "miracle patch" that "does wonders for the Linux desktop," writes the publication's Michael Larabel.

The "sched: autogroup" patch is already turning heads throughout the Linux kernel community, including that of the usually reserved Linus Torvalds (pictured).

"I'm (very happily) surprised by just how small that patch really ends up being, and how it's not intrusive or ugly either," writes the Linux creator in an email posted Nov. 14.. "I'm also very happy with just what it does to interactive performance."

Torvalds goes on to note, "It is a huge improvement" and makes group scheduling "a killer feature."

Torvalds, who helped "inspire" the idea for the patch, according to Phoronix, was particularly surprised at how much the patch improved web page loads. He had assumed that the CPU would not play such a big role there.

Torvalds, who oversees Linux kernel development under the auspices of the Linux Foundation, was also impressed by the small size of the patch. The patch adds 224 lines of code to the kernel's scheduler, says Phoronix. It strips away nine lines of code, so only 233 lines of code are in play.

The patch automatically creates task groups per TTY in an effort to improve the desktop interactivity under system strain, says Phoronix. In addition, it is said to allow the automated per TTY task grouping to be done dynamically on the kernel in real-time.

According to Larabel, the patch "has been working out extremely great on all of the test systems I tried it out on so far, from quad-core AMD Phenom CPUs systems to Intel Atom netbooks."

The test videos shown below ran on an Intel Core i7 970 system loaded with Ubuntu 10.10 (x86_64) and the GNOME desktop. The system was said to have used a prerelease version of the Linux kernel "nearing a Linux 2.6.37-rc2 state." The last formal kernel release was last month's Linux 2.6.36.



YouTube
video of test system before patch was installed

Source: Phoronix
(Click to play)

Above is the "before" video taken by Phoronix, and the video below shows improvements after loading the scheduling patch. Both videos show Ogg 1080p playback plus a glxgears session, two Mozilla Firefox browser windows, two terminal windows, the GNOME System Monitor, and the Nautilus file manager, all open at once.


YouTube
video of test system after patch was installed

Source: Phoronix
(Click to play)

Installing the patch made for "a night and day difference." writes Larabel. While compiling the Linux kernel with 64 jobs, the 1080p Ogg video "still played smoothly a majority of the time," he adds. In addition, the Glxgears session was improved, and the general window movements and desktop interactivity "was far better," he writes.

When the Linux kernel compilation load was doubled to 128 jobs, "the results are even more dramatic, but it is not great for a video demonstration," writes Larabel. He explains that the first video recorded under greater strain made the "before" video appear as like a still photograph.

Phoronix recently published the results of benchmarks performed on 26 Linux kernels dating back five years, from Linux 2.6.12 to a prerelease version of the upcoming Linux 2.6.37. Despite the addition of numerous features over the years, the results show remarkable consistency.

In addition to Galbraith's "sched: autogroup" patch, expected for merger into Linux 2.6.38, other recently developed patches may improve the kernel's performance considerably compared to recent years. These include Con Kolivas' BFS scheduler patches, as well as even more recent desktop responsiveness patches from Wu Fengguang and Kosaki Motohiro.

Availability

The latest revision of the Galbraith "sched: autogroup" kernel scheduling patch may be found here. The Phoronix story may be found here.


Related Stories:


Discuss Miracle patch set to turbocharge Linux kernel
 
>>> Be the FIRST to comment on this article!
 
 
 
>>> More News Articles          >>> More By Eric Brown
 



FUEL Database on MontaVista Linux
Whether building a mobile handset, a car navigation system, a package tracking device, or a home entertainment console, developers need capable software systems, including an operating system, development tools, and supporting libraries, to gain maximum benefit from their hardware platform and to meet aggressive time-to-market goals.

Breaking New Ground: The Evolution of Linux Clustering
With a platform comprising a complete Linux distribution, enhanced for clustering, and tailored for HPC, Penguin Computing¿s Scyld Software provides the building blocks for organizations from enterprises to workgroups to deploy, manage, and maintain Linux clusters, regardless of their size.

Data Monitoring with NightStar LX
Unlike ordinary debuggers, NightStar LX doesn¿t leave you stranded in the dark. It¿s more than just a debugger, it¿s a whole suite of integrated diagnostic tools designed for time-critical Linux applications to reduce test time, increase productivity and lower costs. You can debug, monitor, analyze and tune with minimal intrusion, so you see real execution behavior. And that¿s positively illuminating.

Virtualizing Service Provider Networks with Vyatta
This paper highlights Vyatta's unique ability to virtualize networking functions using Vyatta's secure routing software in service provider environments.

High Availability Messaging Solution Using AXIGEN, Heartbeat and DRBD
This white paper discusses a high-availability messaging solution relying on the AXIGEN Mail Server, Heartbeat and DRBD. Solution architecture and implementation, as well as benefits of using AXIGEN for this setup are all presented in detail.

Understanding the Financial Benefits of Open Source
Will open source pay off? Open source is becoming standard within enterprises, often because of cost savings. Find out how much of a financial impact it can have on your organization. Get this methodology and calculator now, compliments of JBoss.

Embedded Hardware and OS Technology Empower PC-Based Platforms
The modern embedded computer is the jack of all trades appearing in many forms.

Data Management for Real-Time Distributed Systems
This paper provides an overview of the network-centric computing model, data distribution services, and distributed data management. It then describes how the SkyBoard integration and synchronization service, coupled with an implementation of the OMG¿s Data Distribution Service (DDS) standard, can be used to create an efficient data distribution, storage, and retrieval system.

7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
PLATINUM SPONSORS

 


ADVERTISEMENT


Check out the latest Linux powered...

Mobile phones!

MIDs, UMPCs
& tablets

Mobile devices

Other cool
gadgets

Resource Library

• Unix, Linux Uptime and Reliability Increase: Patch Management Woes Plague Windows Yankee Group survey finds IBM AIX Unix is highest in ...
• Scalable, Fault-Tolerant NAS for Oracle - The Next Generation For several years NAS has been evolving as a storage ...
• Managing Software Intellectual Property in an Open Source World This whitepaper draws on the experiences of the Black Duck ...
• Open Source Security Myths Dispelled Is it risky to trust mission-critical infrastructure to open source ...
• Bringing IT Operations Management to Open Source & Beyond Download this IDC analyst report to learn how open source ...




Most popular stories -- past 90 days:
· Linux boots in 2.97 seconds
· Tiniest Linux system, yet?
· Linux powers "cloud" gaming console
· Report: T-Mobile sells out first 1.5 million G1s
· Open set-top box ships
· E17 adapted to Linux devices, demo'd on Treo650
· Android debuts
· First ALP Linux smartphone?
· Cortex-A8 gaming handheld runs Linux
· Ubuntu announces ARM port


DesktopLinux headlines:
· Simulator runs Android apps on Ubuntu
· Hypervisor rev'd for higher reliability
· Pluggable NAS now supports Linux desktops
· Moblin v2 beta targets netbooks
· Linux-ready netbook touted as "Student rugged"
· USB display technology heading for Linux
· Ubuntu One takes baby step to the cloud
· Game over for Linux netbooks?
· Linux Foundation relaunches Linux web site
· Dell spins lower-cost netbook


Also visit our sister site:


Sign up for LinuxForDevices.com's...

news feed


Or, follow us on Twitter...