Slashdot Mirror


Linux Gets Completely Fair Scheduler

SchedFred writes "KernelTrap is reporting that CFS, Ingo Molnar's Completely Fair Scheduler, was just merged into the Linux kernel. The new CPU scheduler includes a pluggable framework that completely replaces Molnar's earlier O(1) scheduler, and is described to 'model an "ideal, precise multi-tasking CPU" on real hardware. CFS tries to run the task with the "gravest need" for more CPU time. So CFS always tries to split up CPU time between runnable tasks as close to "ideal multitasking hardware" as possible.' The new CPU scheduler should improve the desktop Linux experience, and will be part of the upcoming 2.6.23 kernel."

5 of 274 comments (clear)

  1. Neato by friedman101 · · Score: 4, Insightful

    What sort of gain can the typical linux user expect because of this?

  2. Re:For the attention of karma whores by garcia · · Score: 4, Insightful

    The sad thing is that the summary reads almost identical:

    "Kernel trap has a nice summary of what is going on behind the scenes to change the Linux Scheduler. The O(1) Linux scheduler is going to be changed so that it is fair to interactive tasks. You will be surprised to know that O(1) is really too good not to have any side-effects on fairness to all tasks."

  3. Re:CFS vs. O(1) by SillyPerson · · Score: 4, Insightful

    Am I the only person worried that the main author of CFS does not seem to understand big O notation and red-black trees?

  4. Politics are destroying Linux too by TeXMaster · · Score: 4, Insightful

    How does CFS work? CFS follows an approach similar to Con Kolivas' SD project:

    Too bad that the NIH syndrome hit Linux Kernel development too, and Ingo Molnar, after blocking all the attempts to merge SD into mainline because "it couldn't be done", uses the same idea, whips out his own scheduler calling it "Completely Fair", and woosh it gets merged (easily, given that Ingo Molnar himself is the maintainer of that part of the kernel).

    Con Kolivas is (obviously and justifiably) disgruntled, to say the least, he stops working on the SD project, and Linux loses an excellent developer because of politics.

    --
    "I'm never quite so stupid as when I'm being smart" (Linus van Pelt)
  5. Angsty nerds are not destroying Linux by Per+Abrahamsen · · Score: 5, Insightful

    Well, given that he is the maintainer, Ingo Molnar's code is presumably more maintainable. It happens all the time in free software projects, someone submits a patch, the idea in the patch is good, but the section of the code is important enough that the maintainer must be certain he understands it. Rewriting it is a good way to gain such understanding.

    Back when I was a maintainer, I guess I rewrote half the patches I got. Most submitters are just happy to see the functionality in there, but there was a few people with fragile egos take it as a personal insult That happens, life goes on, and usually the fragile egos grow more robust with time, and learn that developing what amounts to a prototype of the final code is also a valuable contribution.