[LITMUS^RT] LLF policy and litmus_clock() function

Marov Gazaal adamagaghz at gmail.com
Wed Sep 23 18:30:49 CEST 2020


Hello all. I am trying to implement Least Laxity first scheduling policy,
and as we know this policy makes its scheduling decisions by calling it at
each time unit and takes the remaining execution cost into account. for
this, I used litmus_clock() function in the laxity computation like this:
laxity = get_deadline(first) - litmus_clock() -
(get_execution_cost(first)-i );
where i is a variable I used in some way to decrease the exec_cost of the
task by 1 each time unit it executes.

My question here is, does litmus_clock() function benefits to do laxity
calculation at each time unit as I mentioned in the laxity relation above,
or there is something else should be taken to make laxity computation
excutes at each time unit( for instance, by using "for loop" as if we say
"for each litmus_clock() tick ........ do laxity calculation").
I took the gsn_edf policy file and I adjust it to include my code taking
into account that it is "gsn" policy, but I want to be sure about the
laxity calculation idea, so I ask you about it.

Thank you for your help.
Marouf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20200923/b9e7827d/attachment.html>


More information about the litmus-dev mailing list