Re: [patch] CFS (Completely Fair Scheduler), v2

From: Ingo Molnar
Date: Tue Apr 17 2007 - 04:21:08 EST



* Davide Libenzi <davidel@xxxxxxxxxxxxxxx> wrote:

> > ok - fortunately the delta between -v2-rc0 and -v2-final is pretty
> > small. One difference is the child-runs-first fix. To restore the
> > parent-runs-first logic, do this:
> >
> > echo 0 > /proc/sys/kernel/sched_child_runs_first
>
> Sorry, I did not follow the latest developments, but how many tunables
> we have so far in CFS? Are those for debug only or they're supposed to
> stay?

yeah, debug only. I strongly suspect the Kaffeine breakage for example
was related to child-runs-first, so userspace developers might be
interested in a switch to turn this on/off.

while reviewing the upstream scheduler it occured to me that we are
probably _not_ doing child-runs-first there due to the list_add_tail()
[it should be a list_add() for it to be child-first. But i havent
instrumented this heavily and this portion of the mainline scheduler is
pretty fragile.]. So via this flag we could also see the performance
impact, besides the compatibility impact.

> Weren't those listed inside the Axis of Evil (just to remain in topic
> :) till yesterday?

heh ;)

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/