Re: [PATCH v4 6/7] sched/deadline: Deferrable dl server

From: Peter Zijlstra
Date: Fri Sep 08 2023 - 12:12:03 EST


On Fri, Sep 08, 2023 at 05:28:46PM +0200, Daniel Bristot de Oliveira wrote:

> Let me see if I got it:
>
> - Always start the server, but throttled with full runtime...
> - Unconditionally decrement fair_server.dl_runtime from update_curr_fair()
> (check if it is not decremented twice as it runs)
> - When the dl timer fire, replenish or throttle for the next period?
>
> is that the base for it?

Yes. So if dl timer fires and it still has runtime replenish will not
move the deadline and it will become eligible to run. If it has 0
runtime, replenish does it's thing, ups runtime and moves the deadline
forward and then the zero-laxity condition will re-throttle, goto 1
etc..