Messages in this thread | | | Subject | Re: [PATCH RFC] sched/deadline: Use the revised wakeup rule for suspending constrained dl tasks | From | Daniel Bristot de Oliveira <> | Date | Mon, 24 Apr 2017 22:43:45 +0200 |
| |
On 04/24/2017 05:18 PM, Daniel Bristot de Oliveira wrote: > remaining runtime = 4 > laxity = 5 Oops! The laxity is 5... so...
> Knowing the laxity of a task (deadline - t), it is possible to move > it to the other side of the equality, thus enabling to define max > remaining runtime a task can use within the absolute deadline, without > over-running the allowed density: > > runtime = (dl_runtime / dl_deadline) * (deadline - t) > > For instance, in our previous example, the task could still run: > > runtime = ( 5 / 7 ) * 4 > runtime = 2.85 ms
This should be: runtime = ( 5 / 7 ) * 5 runtime = 3.57 ms
even better :-)
-- Daniel
| |