Re: [announce] CFS-devel, performance improvements

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roman Zippel <zippel@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Mike Galbraith <efault@...>
Date: Thursday, September 13, 2007 - 7:35 am

On Thu, 2007-09-13 at 00:17 +0200, Roman Zippel wrote:


The rounding error we now still have is accumulative over the long time
but has no real effect. The only effect is that a nice level would be a
little different that it would have been had the division been perfect,
not dissimilar to having a small error in the divisor series to being
with. (note that in order to see this little fuzz you need amazingly
high context switch rates)

We've measured the effect with the strongest nice levels -20 and 19, a
normal loop against two yield loops (this generated 700.000 context
switches per second), and the effect is <1%. Not something worth fixing
IMHO (unless it comes for free).=20

At that high switching rates the overhead of scheduling itself and
caching causes more skew than this - the small error is totally swamped
by the time lost scheduling.


While I agree that having this average is nice, your particular
implementation has the problem that it quickly overflows u64 at which
point it becomes a huge problem (a CPU hog could basically lock up your
box when that happens).

I solved the wrap around problem in cfs-devel, and from that base I
_could_ probably maintain the average without overflow problems, but
have yet to try.


Currently we have 2 approximations in place:

  (leftmost + rightmost) / 2

and

  leftmost + period/2   (where period should match the span of the tree)

neither are perfect but they seem to work quite well.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[announce] CFS-devel, performance improvements, Ingo Molnar, (Tue Sep 11, 4:04 pm)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Wed Sep 12, 6:17 pm)
Re: [announce] CFS-devel, performance improvements, Willy Tarreau, (Thu Sep 13, 7:08 pm)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Fri Sep 14, 9:10 am)
Re: [announce] CFS-devel, performance improvements, Willy Tarreau, (Fri Sep 14, 1:54 pm)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 8:47 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Fri Sep 14, 7:46 am)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Thu Sep 13, 7:35 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Thu Sep 13, 8:14 am)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Thu Sep 13, 8:44 am)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Fri Sep 14, 7:16 am)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 5:19 am)
Re: [announce] CFS-devel, performance improvements, debian developer, (Thu Sep 13, 3:34 am)
Re: [announce] CFS-devel, performance improvements, debian developer, (Thu Sep 13, 3:17 am)
Re: [announce] CFS-devel, performance improvements, Mike Galbraith, (Wed Sep 12, 2:20 am)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Tue Sep 11, 9:16 pm)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 4:42 am)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 5:06 am)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 5:24 am)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 5:31 am)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 5:36 am)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 7:48 am)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 9:47 pm)
Re: [announce] CFS-devel, performance improvements, Kyle Moffett, (Fri Sep 14, 2:59 am)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 10:26 pm)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 5:43 am)
Re: [announce] CFS-devel, performance improvements, Rob Hussey, (Thu Sep 13, 6:17 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Tue Sep 11, 8:42 pm)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 3:52 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Thu Sep 13, 8:35 am)
Re: [announce] CFS-devel, performance improvements, Sam Ravnborg, (Thu Sep 13, 3:01 pm)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Fri Sep 14, 8:26 am)
Re: [announce] CFS-devel, performance improvements, Ingo Molnar, (Thu Sep 13, 10:28 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Thu Sep 13, 12:50 pm)
Re: [announce] CFS-devel, performance improvements, Arjan van de Ven, (Fri Sep 14, 11:26 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Fri Sep 14, 10:50 am)
Re: [announce] CFS-devel, performance improvements, Arjan van de Ven, (Fri Sep 14, 11:56 am)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Fri Sep 14, 11:13 am)
Re: [announce] CFS-devel, performance improvements, Kyle Moffett, (Thu Sep 13, 2:28 pm)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Thu Sep 13, 3:08 pm)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Thu Sep 13, 1:06 pm)
Re: [announce] CFS-devel, performance improvements, Roman Zippel, (Fri Sep 14, 8:04 am)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Fri Sep 14, 8:17 am)
Re: [announce] CFS-devel, performance improvements, Peter Zijlstra, (Thu Sep 13, 1:09 pm)