]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Turn off child_runs_first
authorMike Galbraith <efault@gmx.de>
Wed, 9 Sep 2009 13:41:37 +0000 (15:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Sep 2009 15:30:05 +0000 (17:30 +0200)
commit3acf500aa3ea7a4157db64ce1d07f3cc063f771e
tree5ac0373fa1d18f043cb27183f9f185ceda598915
parent59dd3b20b1ffd15d257bb8b186943b058b175c21
sched: Turn off child_runs_first

Set child_runs_first default to off.

It hurts 'optimal' make -j<NR_CPUS> workloads as make jobs
get preempted by child tasks, reducing parallelism.

Note, this patch might make existing races in user
applications more prominent than before - so breakages
might be bisected to this commit.

Child-runs-first is broken on SMP to begin with, and we
already had it off briefly in v2.6.23 so most of the
offenders ought to be fixed. Would be nice not to revert
this commit but fix those apps finally ...

Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1252486344.28645.18.camel@marge.simson.net>
[ made the sysctl independent of CONFIG_SCHED_DEBUG, in case
  people want to work around broken apps. ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched_fair.c
kernel/sysctl.c