login
Header Space

 
 

[patch] CFS scheduler, -v19

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Mike Galbraith <efault@...>, Arjan van de Ven <arjan@...>, Thomas Gleixner <tglx@...>, Dmitry Adamushko <dmitry.adamushko@...>, Srivatsa Vaddagiri <vatsa@...>
Date: Friday, July 6, 2007 - 1:33 pm

i'm pleased to announce release -v19 of the CFS scheduler patchset.

The rolled-up CFS patch against today's -git kernel, v2.6.22-rc7, 
v2.6.22-rc6-mm1, v2.6.21.5 or v2.6.20.14 can be downloaded from the 
usual place:

    http://people.redhat.com/mingo/cfs-scheduler/
 
The biggest user-visible change in -v19 is reworked sleeper fairness: 
it's similar in behavior to -v18 but works more consistently across nice 
levels. Fork-happy workloads (like kernel builds) should behave better 
as well. There are also a handful of speedups: unsigned math, 32-bit 
speedups, O(1) task pickup, debloating and other micro-optimizations.

Changes since -v18:

 - merged the group-scheduling CFS-core changes from Srivatsa Vaddagiri. 
   This makes up for the bulk of the changes in -v19 but has no
   behavioral impact. The final group-fairness enabler patch is now a 
   small and lean add-on patch to CFS.

 - fix the bloat noticed by Andrew. On 32-bit it's now this:

      text    data     bss     dec     hex   filename
     24362    3905      24   28291    6e83   sched.o-rc7
     33015    2538      20   35573    8af5   sched.o-v18
     25805    2426      20   28251    6e5b   sched.o-v19

   so it's a net win compared to vanilla. On 64-bit it's even better:

      text    data     bss     dec     hex   filename
     35732   40314    2168   78214   13186   sched.o.x64-rc7
     41397   37642    2168   81207   13d37   sched.o.x64-v18
     36132   37410    2168   75710   127be   sched.o.x64-v19

   ( and there's also a +1.5K data win per CPU on x32, which is not
     shown here. [+3.0K data win per CPU on x64.] )

 - good number of core code updates, cleanups and streamlining.
   (Mike Galbraith, Srivatsa Vaddagiri, Dmitry Adamushko, me.)

 - use unsigned data types almost everywhere in CFS. This produces 
   faster and smaller code, and simplifies the logic.

 - turn as many 'u64' data types into 'unsigned long' as possible, to 
   reduce the 32-bit footprint and to reduce 64-bit arithmetics.

 - replaced the nr_running based 'sleep fairness' logic with a more 
   robust concept. The end-result is similar in behavior to v18, but 
   negative nice levels are handled much better in this scheme.

 - speedup: O(1) task pickup by Srivatsa Vaddagiri. [sleep/wakeup is
   O(log2(nr_running)).] This gives 5-10% better hackbench 100/500
   results on a 4-way box.

 - fix: set idle->sched_class back to &idle_sched_class in 
   migration_call(). (Dmitry Adamushko)

 - cleanup: use an enum for the sched_feature flags. (suggested by 
   Andrew Morton)

 - cleanup: turn the priority macros into inlines. (suggested by
   Andrew Morton)

 - (other cleanups suggested by Andrew Morton)

 - debug: split out the debugging data into CONFIG_SCHED_DEBUG.
 
As usual, any sort of feedback, bugreport, fix and suggestion is more 
than welcome!
 
	Ingo
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] CFS scheduler, -v19, Ingo Molnar, (Fri Jul 6, 1:33 pm)
Re: [patch] CFS scheduler, -v19, Ed Tomlinson, (Sat Jul 14, 1:19 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Mon Jul 16, 5:17 am)
Re: [patch] CFS scheduler, -v19, Ed Tomlinson, (Mon Jul 16, 7:10 am)
Re: [patch] CFS scheduler, -v19, Mike Galbraith, (Sun Jul 15, 1:25 am)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Mon Jul 16, 4:00 am)
Re: [patch] CFS scheduler, -v19, Markus, (Sun Jul 15, 8:53 am)
Re: [patch] CFS scheduler, -v19, Mike Galbraith, (Sun Jul 15, 3:46 pm)
Re: [patch] CFS scheduler, -v19, Markus, (Sun Jul 15, 5:11 pm)
Re: [patch] CFS scheduler, -v19, Mike Galbraith, (Mon Jul 16, 2:42 am)
Re: [patch] CFS scheduler, -v19, Markus, (Sat Jul 14, 7:34 am)
Re: [patch] CFS scheduler, -v19, Markus, (Sat Jul 14, 11:11 am)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Mon Jul 16, 5:41 am)
Re: [patch] CFS scheduler, -v19, Markus, (Mon Jul 16, 1:59 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 3:37 am)
Re: [patch] CFS scheduler, -v19, Markus, (Tue Jul 17, 9:06 am)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 1:06 pm)
Re: [patch] CFS scheduler, -v19, Markus, (Tue Jul 17, 3:42 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 4:09 pm)
Re: [patch] CFS scheduler, -v19, Linus Torvalds, (Tue Jul 17, 4:37 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 4:43 pm)
Re: [patch] CFS scheduler, -v19, Markus, (Tue Oct 16, 8:02 pm)
Re: [patch] CFS scheduler, -v19, Markus, (Thu Aug 9, 1:34 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Fri Aug 10, 3:46 am)
Re: [patch] CFS scheduler, -v19, Markus, (Tue Aug 14, 1:15 pm)
Re: [patch] CFS scheduler, -v19, Markus, (Fri Jul 20, 6:26 pm)
Re: [patch] CFS scheduler, -v19, Markus, (Tue Jul 17, 6:03 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 1:13 pm)
Re: [patch] CFS scheduler, -v19, Mike Galbraith, (Tue Jul 10, 4:08 am)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Wed Jul 11, 1:26 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Wed Jul 11, 4:55 pm)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Fri Jul 13, 5:19 pm)
Re: [patch] CFS scheduler, -v19, Chuck Ebbert, (Mon Jul 16, 5:34 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Mon Jul 16, 5:55 pm)
Re: [patch] CFS scheduler, -v19, Ian Kent, (Tue Jul 17, 1:01 am)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 3:45 am)
Re: [patch] CFS scheduler, -v19, Linus Torvalds, (Wed Jul 18, 12:03 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Thu Jul 19, 4:16 am)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Wed Jul 18, 5:37 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Thu Jul 19, 10:32 am)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Thu Jul 19, 10:32 pm)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Thu Jul 19, 1:06 pm)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Thu Jul 19, 1:26 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Thu Jul 19, 1:42 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Thu Jul 19, 1:17 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Thu Jul 19, 1:10 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Thu Jul 19, 4:53 am)
Re: [patch] CFS scheduler, -v19, Ian Kent, (Wed Jul 18, 1:31 pm)
RE: [patch] CFS scheduler, -v19, David Schwartz, (Tue Jul 17, 5:16 pm)
RE: [patch] CFS scheduler, -v19, Ian Kent, (Wed Jul 18, 1:59 am)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Wed Jul 18, 3:54 am)
Re: [patch] CFS scheduler, -v19, Linus Torvalds, (Wed Jul 18, 1:23 pm)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Wed Jul 18, 9:50 am)
Re: [patch] CFS scheduler, -v19, Chuck Ebbert, (Tue Jul 17, 12:30 pm)
Re: [patch] CFS scheduler, -v19, Ian Kent, (Tue Jul 17, 7:17 am)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Tue Jul 17, 1:16 pm)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Tue Jul 17, 9:24 pm)
Re: [patch] CFS scheduler, -v19, Ian Kent, (Wed Jul 18, 2:19 am)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Tue Jul 17, 12:22 am)
Re: [patch] CFS scheduler, -v19, Bill Davidsen, (Thu Jul 12, 8:41 am)
Re: [patch] CFS scheduler, -v19, Willy Tarreau, (Sun Jul 8, 1:46 pm)
Re: [patch] CFS scheduler, -v19, Ingo Molnar, (Mon Jul 9, 6:39 pm)
Re: [patch] CFS scheduler, -v19, Willy Tarreau, (Tue Jul 17, 5:44 pm)
speck-geostationary