lkml.org 
[lkml]   [2007]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: CFS review
Hi,

On Thu, 2 Aug 2007, Ingo Molnar wrote:

> Most importantly, CFS _already_ includes a number of measures that act
> against too frequent math. So even though you can see 64-bit math code
> in it, it's only rarely called if your clock has a low resolution - and
> that happens all automatically! (see below the details of this buffered
> delta math)
>
> I have not seen Roman notice and mention any of these important details
> (perhaps because he was concentrating on finding faults in CFS - which a
> reviewer should do), but those measures are still very important for a
> complete, balanced picture, especially if one focuses on overhead on
> small boxes where the clock is low-resolution.
>
> As Peter has said it in his detailed review of Roman's suggested
> algorithm, our main focus is on keeping total complexity down - and we
> are (of course) fundamentally open to changing the math behind CFS, we
> ourselves tweaked it numerous times, it's not cast into stone in any
> way, shape or form.

You're comparing apples with oranges, I explicitely said:

"At this point I'm not that much interested in a few localized
optimizations, what I'm interested in is how can this optimized at the
design level"

IMO it's very important to keep computational and algorithmic complexity
separately, I want to concentrate on the latter, so unless you can _prove_
that a similiar set of optimizations is impossible within my example, I'm
going to ignore them for now. CFS has already gone through several
versions of optimization and tuning, expecting the same from my design
prototype is a little confusing...

I want to analyze the foundation CFS is based on, in the review I
mentioned a number of other issues and design related questions. If you
need more time, that's fine, but I'd appreciate more background
information related to that and not that you only jump on the more trivial
issues.

> In Roman's variant of CFS's algorithm the variables are 32-bit, but the
> error is rolled forward in separate fract_* (fractional) 32-bit
> variables, so we still have 32+32==64 bit of stuff to handle. So we
> think that in the end such a 32+32 scheme would be more complex (and
> anyone who took a look at fs2.c would i think agree - it took Peter a
> day to decypher the math!)

Come on, Ingo, you can do better than that, I did mention in my review
some of the requirements for the data types.
I'm amazed how you can get to that judgement so quickly, could you please
substantiate that a little more?

I admit that the lack of source comments is an open invitation for further
questions and Peter did exactly this and his comments were great - I'm
hoping for more like that. You OTOH jump to conclusions based on a partial
understanding what I'm actually trying to do.
Ingo, how about you provide some of the mathematical prove CFS is based
on? Can you prove that the rounding errors are irrelevant? Can you prove
that all the limit checks can have no adverse effect? I tried that and I'm
not entirely convinced of that, but maybe it's just me, so I'd love to see
someone else's attempt at this.
A major goal of my design is it to be able to define the limits within the
scheduler is working correctly, so I know which information is relevant
and what can be approximated.

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

\
 
 \ /
  Last update: 2007-08-03 00:41    [W:0.429 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site