Re: [PATCH] sched: make decaying sched_avg's variables happen on period boundary

From: Peter Zijlstra
Date: Tue Jul 07 2015 - 18:54:47 EST


On Tue, Jul 07, 2015 at 02:42:56PM +0900, byungchul.park@xxxxxxx wrote:
> From: Byungchul Park <byungchul.park@xxxxxxx>
>
> decaying time happens on every period boundary. if it does not reach
> the period boundary yet, the partial time needs to be kept so that
> the time can be decayed on exactly period boundary at next update.
>
> sa->avg_period is not appropriate for getting partial delta_w because
> the value is a decayed average value, with which we cannnot get partial
> delta at all which does not reach the period boundary yet.

lkml.kernel.org/r/1435018085-7004-1-git-send-email-yuyang.du@xxxxxxxxx

There is a comprehensive rewrite of all this under consideration.
--
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/