Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1378405
| From | Yuyang Du <yuyang.du@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue |
| Date | 2016-04-14 04:30 +0200 |
| Message-ID | <rnFcB-2RY-1@gated-at.bofh.it> (permalink) |
| References | <rmDmx-1gf-3@gated-at.bofh.it> <rmDmx-1gf-1@gated-at.bofh.it> <rnuKd-3cP-1@gated-at.bofh.it> <rnuTU-3hb-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Apr 13, 2016 at 05:28:18PM +0200, Vincent Guittot wrote: > > For a periodic task, the signals really get much more unstable. Even for > > a steady state (load/util related) periodic task there is a meander > > pattern which depends on if we for instance hit a dequeue (decay + > > accrue) or an enqueue (decay only) after the 1ms has elapsed. > > > > IMHO, 1ms is too big to create signals describing task and cpu load/util > > signals given the current scheduler dynamics. We simply see too many > > signal driving points (e.g. enqueue/dequeue) bailing out of > > __update_load_avg(). By "bailing out", you mean return without update because the delta is less than 1ms? > > Examples of 1 periodic task pinned to a cpu on an ARM64 system, HZ=250 > > in steady state: > > > > (1) task runtime = 100us period = 200us > > > > pelt load/util signal > > > > 1us: 488-491 > > > > 1ms: 483-534 100us/200us = 50%, so the util should center around 512, it seems in this regard, it is better, but the variance is undesirable. > > We get ~2 dequeues (load/util example: 493->504) and ~2 enqueues > > (load/util example: 496->483) in the meander pattern in the 1ms case. > > > > (2) task runtime = 100us period = 1000us > > > > pelt load/util signal > > > > 1us: 103-105 > > > > 1ms: 84-145 > > > > We get ~3-4 dequeues (load/util example: 104->124->134->140) and ~16-20 > > enqueues (load/util example: 137->134->...->99->97) in the meander > > pattern in the 1ms case. The same as above. > > yes, similarly i have some use cases with 2ms running task in a period > of 5.12ms. it will be seen either as a 1ms running task or a 2ms > running tasks depending on how the running is synced with the 1ms > boundary > > so the load will vary between 197-215 up to 396-423 depending of when > the 1ms boundary occurs in the 2ms running > Same as above, and this time, the util is "expected" to be 2/5.242*1024=391 of all the samples. We solve the problem of overly-decay, but the precision loss is a new problem. Let me see if we can get to a 2-level period scheme, :)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Yuyang Du <yuyang.du@intel.com> - 2016-04-11 08:20 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Vincent Guittot <vincent.guittot@linaro.org> - 2016-04-11 11:10 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Yuyang Du <yuyang.du@intel.com> - 2016-04-12 05:30 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Vincent Guittot <vincent.guittot@linaro.org> - 2016-04-12 14:00 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Yuyang Du <yuyang.du@intel.com> - 2016-04-13 07:00 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Vincent Guittot <vincent.guittot@linaro.org> - 2016-04-13 13:20 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Dietmar Eggemann <dietmar.eggemann@arm.com> - 2016-04-12 14:10 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Yuyang Du <yuyang.du@intel.com> - 2016-04-13 06:00 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Joe Perches <joe@perches.com> - 2016-04-13 06:10 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Morten Rasmussen <morten.rasmussen@arm.com> - 2016-04-13 10:40 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Dietmar Eggemann <dietmar.eggemann@arm.com> - 2016-04-13 17:20 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Vincent Guittot <vincent.guittot@linaro.org> - 2016-04-13 17:30 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Vincent Guittot <vincent.guittot@linaro.org> - 2016-04-13 18:30 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Yuyang Du <yuyang.du@intel.com> - 2016-04-14 04:30 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Dietmar Eggemann <dietmar.eggemann@arm.com> - 2016-04-14 15:00 +0200
Re: [PATCH 2/4] sched/fair: Drop out incomplete current period when sched averages accrue Yuyang Du <yuyang.du@intel.com> - 2016-04-15 05:50 +0200
csiph-web