-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scx_bpfland: Virtual deadline with partial execution vruntime
Evaluate the deadline of a task as following: deadline = vruntime + exec_vruntime Here, vruntime represents the task's total runtime, scaled inversely by its weight, while exec_vruntime accounts for the vruntime accumulated from the moment the task becomes runnable until it voluntarily releases the CPU. Fairness is ensured through vruntime, whereas exec_vruntime helps in prioritizing latency-sensitive tasks: tasks that are frequently blocked waiting for an event (typically latency sensitive) will accumulate a smaller exec_vruntime, compared to tasks that continuously consume CPU without interruption. As a result, tasks with a smaller exec_vruntime will have a shorter deadline and will be dispatched earlier, ensuring better responsiveness for latency-sensitive tasks. Signed-off-by: Andrea Righi <[email protected]>
- Loading branch information
Showing
1 changed file
with
78 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters