]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: Add support for (GRUB) bandwidth reclaim
authorFurkan Caliskan <frn1furkan10@gmail.com>
Mon, 11 May 2026 14:10:30 +0000 (17:10 +0300)
committerKarel Zak <kzak@redhat.com>
Wed, 13 May 2026 08:32:23 +0000 (10:32 +0200)
commit81c2eb29486281367b81baaa8ddf0f27f60877d3
tree905bfb8ed5468160fb26cab140ed647589b2ff8c
parent806e5e566ff4e1f984cc062cb1726decca57391d
chrt: Add support for (GRUB) bandwidth reclaim

The SCHED_DEADLINE policy supports the (GRUB) Greedy Reclamation
of Unused Bandwidth algorithm. This allows tasks to reclaim
bandwidth that are left over by other deadline tasks that finish
their work early, or voluntarily yield the cpu.

Currently, chrt has no way to set the SCHED_FLAG_RECLAIM bit in
the sched_flags field of the sched_attr structure.

Add -G/--reclaim-grub option to allow users to toggle this feature
using the deadline scheduling class.

[kzak@redhat.com: - add missing #ifdef SCHED_FLAG_RECLAIM guards
                  - add comments to #else/#endif for SCHED_DEADLINE block]
Signed-off-by: Furkan Caliskan <frn1furkan10@gmail.com>
bash-completion/chrt
schedutils/chrt.1.adoc
schedutils/chrt.c