[PATCH v3 0/5] GRUB reclaiming fixes

From: Vineeth Pillai
Date: Sun May 14 2023 - 22:57:38 EST


Current reclaim calculation for GRUB is a bit inaccurate and the
inaccuracy gets larger as the bandwidth of tasks becomes smaller.

There are couple of issues with the existing implementation:
- Loss of precision in division due to rounding off.
- Minor bug in the reclaim calculation.
- In SMP, tasks with smaller reservation tend to reclaim less
even if its the only task on a cpu.
- Inaccuracy when normal deadline tasks and SCHED_FLAG_RECLAIM
tasks share the cpu.

This patch series aims to fix the above mentioned issues.

Changes in v3
-------------
1. Split the fixes into multiple self contained patches
2. Cover letter.

Vineeth Pillai (5):
sched/deadline: Fix bandwidth reclaim equation in GRUB
sched/deadline: Fix reclaim inaccuracy with SMP
sched/deadline: Remove unused variable extra_bw
sched/deadline: Account for normal deadline tasks in GRUB
Documentation: sched/deadline: Update GRUB description

Documentation/scheduler/sched-deadline.rst | 28 ++--
kernel/sched/deadline.c | 160 ++++++++++-----------
kernel/sched/sched.h | 18 ++-
3 files changed, 112 insertions(+), 94 deletions(-)

--
2.40.1