* William Lee Irwin III <[email protected]> wrote:
>> Also, given the general comments it appears clear that some
>> statistical metric of deviation from the intended behavior furthermore
>> qualified by timescale is necessary, so this appears to be headed
>> toward a sort of performance metric as opposed to a pass/fail test
[...]
On Tue, Apr 17, 2007 at 11:24:22AM +0200, Ingo Molnar wrote:
> yeah. If you could come up with a sane definition that also translates
> into low overhead on the algorithm side that would be great! The only
> good generic definition i could come up with (nice levels are isolated
> buckets with a constant maximum relative percentage of CPU time
> available to every active bucket) resulted in having a per-nice-level
> array of rbtree roots, which did not look worth the hassle at first
> sight :-)
Interesting! That's what vdls did, except its fundamental data structure
was more like a circular buffer data structure (resembling Davide
Libenzi's timer ring in concept, but with all the details different).
I'm not entirely sure how that would've turned out performancewise if
I'd done any tuning at all. I was mostly interested in doing something
like what I heard Bob Mullens did in 1976 for basic pedagogical value
about schedulers to prepare for writing patches for gang scheduling as
opposed to creating a viable replacement for the mainline scheduler.
I'm relatively certain a different key calculation will suffice, but
it may disturb other desired semantics since they really need to be
nonnegative for multiplying by a scaling factor corresponding to its
nice number to work properly. Well, as the cfs code now stands, it
would correspond to negative keys. Dividing positive keys by the nice
scaling factor is my first thought of how to extend the method to the
current key semantics. Or such are my thoughts on the subject.
I expect that all that's needed is to fiddle with those numbers a bit.
There's quite some capacity for expression there given the precision.
On Tue, Apr 17, 2007 at 11:24:22AM +0200, Ingo Molnar wrote:
> until now the main approach for nice levels in Linux was always:
> "implement your main scheduling logic for nice 0 and then look for some
> low-overhead method that can be glued to it that does something that
> behaves like nice levels". Feel free to turn that around into a more
> natural approach, but the algorithm should remain fairly simple i think.
Part of my insistence was because it seemed to be relatively close to a
one-liner, though I'm not entirely sure what particular computation to
use to handle the signedness of the keys. I guess I could pick some
particular nice semantics myself and then sweep the extant schedulers
to use them after getting a testcase hammered out.
-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]