Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1626487

[PATCH 0/2] sched/cfs: make util/load_avg stable

From Vincent Guittot <vincent.guittot@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 0/2] sched/cfs: make util/load_avg stable
Date 2017-04-19 18:40 +0200
Message-ID <ty0O5-5Ir-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


In the current implementation of load/util_avg, we assume that the ongoing
time segment has fully elapsed and util/load_sum is divided by LOAD_AVG_MAX,
even if part of the time segment still remains to run . As a consequence,
this remaining part is considered as idle time and generates unexpected
variations of util_avg of a busy CPU in the range ]1002..1024[ whereas
util_avg should stay at 1023.

The 1st patch implements Peter's proposal to remove the contribution of the
current time segment when computing the util/load_avg. The 2nd one keeps
using the current segment but update the max value instead. Both solutions
make load/util_avg being stable with the advantage of using the most up to
date value for the 2nd patch. I have split it into 2 patches to show the 2
versions but if the 2nd patch looks ok, we should probably squashed them into
one.

Vincent Guittot (2):
  sched/cfs: make util/load_avg more stable
  sched/cfs: take into account current segment

 kernel/sched/fair.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] sched/cfs: make util/load_avg stable  Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 18:40 +0200
  [PATCH 2/2] sched/cfs: take into account current time segment Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 18:40 +0200
  [PATCH 1/2] sched/cfs: make util/load_avg more stable Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 18:40 +0200
  [PATCH v2] sched/cfs: make util/load_avg more stable Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 19:00 +0200
  [PATCH 1/2] sched/cfs: make util/load_avg more stable Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 19:20 +0200
  [PATCH 2/2] sched/cfs: take into account current time segment Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 19:20 +0200
  [PATCH 0/2] sched/cfs: make util/load_avg stable  Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-19 19:20 +0200

csiph-web