Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1371682 > unrolled thread
| Started by | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| First post | 2016-04-05 16:50 +0200 |
| Last post | 2016-04-05 19:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC v2 3/7] Improve the tracking of active utilisation Peter Zijlstra <peterz@infradead.org> - 2016-04-05 16:50 +0200
Re: [RFC v2 3/7] Improve the tracking of active utilisation luca abeni <luca.abeni@unitn.it> - 2016-04-05 19:20 +0200
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Date | 2016-04-05 16:50 +0200 |
| Subject | Re: [RFC v2 3/7] Improve the tracking of active utilisation |
| Message-ID | <rkAsN-5ez-1@gated-at.bofh.it> |
On Fri, Apr 01, 2016 at 05:12:29PM +0200, Luca Abeni wrote: > + /* > + * We cannot use inactive_task_timer() to invoke sub_running_bw() > + * at the 0-lag time, because the task could have been migrated > + * while SCHED_OTHER in the meanwhile. > + */ > + if (hrtimer_active(&p->dl.inactive_timer) && > + !hrtimer_callback_running(&p->dl.inactive_timer)) > sub_running_bw(&p->dl, &rq->dl); hrtimer_is_queued() ?
[toc] | [next] | [standalone]
| From | luca abeni <luca.abeni@unitn.it> |
|---|---|
| Date | 2016-04-05 19:20 +0200 |
| Message-ID | <rkCNX-7ui-9@gated-at.bofh.it> |
| In reply to | #1371682 |
On Tue, 5 Apr 2016 16:48:03 +0200 Peter Zijlstra <peterz@infradead.org> wrote: > On Fri, Apr 01, 2016 at 05:12:29PM +0200, Luca Abeni wrote: > > + /* > > + * We cannot use inactive_task_timer() to invoke sub_running_bw() > > + * at the 0-lag time, because the task could have been migrated > > + * while SCHED_OTHER in the meanwhile. > > + */ > > + if (hrtimer_active(&p->dl.inactive_timer) && > > + !hrtimer_callback_running(&p->dl.inactive_timer)) > > sub_running_bw(&p->dl, &rq->dl); > > hrtimer_is_queued() ? Uhm... I do not remember why I used this condition, but hrtimer_is_queued() should be the right thing to be used, yes... I'll update the patch. Thanks, Luca
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web