jlelli / linux

SCHED_DEADLINE. An implementation of the popular Earliest Deadline First (EDF) scheduling algorithm or the Linux kernel. Fork tracking upstream. Intended for further development and issues tracking.
https://en.wikipedia.org/wiki/SCHED_DEADLINE
Other
0 stars 1 forks source link

Is instantaneously removing running bandwidth theoretically wrong? #7

Open jlelli opened 6 years ago

jlelli commented 6 years ago

As done @ https://github.com/jlelli/linux/blob/af3e79d29555b97dd096e2f8e36a0f50213808a8/kernel/sched/deadline.c#L1522 we instantaneously remove a task's running and total bandwidth contribution when the task is migrated between CPUs (see also push/pull functions), same also happens when setscheduler/affinity are called (the task in that case is dequeued and enqueued back with different scheduling/affinity parameters).

@lucabe72 shouldn't we wait the 0-lag time?