Re: [RFC 08/14] sched/tune: add detailed documentation
From: Ingo Molnar
Date: Wed Sep 16 2015 - 03:47:33 EST
* Steve Muckle <steve.muckle@xxxxxxxxxx> wrote:
> On 09/15/2015 08:19 AM, Peter Zijlstra wrote:
> > Please flip the argument around; providing lots of knobs for vendors to
> > do $magic with is _NOT_ a good thing.
> >
> > The whole out-of-tree cpufreq governor hack fest Android thing is a
> > complete and utter fail on all levels. Its the embedded, ship, forget,
> > not contribute cycle all over again.
> >
> > Making that harder is a _GOOD_ thing.
>
> I get why the plugin-like governor interface may encourage out of tree
> development, but why would providing lots of policy knobs/tunables from
> the scheduler be bad?
There's many disadvantages:
- People/vendors learn to rely on their knob based hacks and start making noise
if one of the knobs changes or goes away, reporting regressions, not always
reporting that they have tunables twiddled.
- If distros start using knobs it's easy to get into a situation where different
distros have different knobs, and people tune them further. For every single
bugreport we'd have to first make 100% sure what the knobs are.
- Workloads can sometimes be improved by twiddling knobs - while breaking lots of
other workloads. We'd like people who contribute to the scheduler to think
about the hard problems and improve the whole picture, not just a small part of
it. There's a rich set of 'knobs' to prevent the scheduler from doing things
(the various resource affinity system calls and facilities), so it's not like
user-space does not have the flexibility.
- Having too much configuration space makes upgrades to newer kernels generally
harder - and we want to have the opposite effects.
> Shouldn't that hopefully reduce the likelihood that someone feels the need to
> roll their own stack of kernel modifications which never make it upstream?
If a scheduler bug or inefficiency can be kludged around with a knob then that
reduces the likelihood of the scheduler getting improved.
Otherwise I'd like to encourage people to change the source if they want to debug
a problem or improve things - so having to roll your own patches isn't an
unconditional negative - it's what this whole OSS thing is about.
Thanks,
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/