Skip to content

RFC sched: Deprecate DOUBLE_TICK feature

Vishal Chourasia lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1sched: Deprecate DOUBLE_TICK featurekernel/sched/fair.c kernel/sched/features.h+0 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/1] sched: Deprecate DOUBLE_TICK feature

Upon examining commit 5e963f2bd465, titled "sched/fair: Commit to EEVDF," it was noted that the method check_preempt_tick was removed. This change has rendered the DOUBLE_TICK feature, which previously played a role within the entity_tick function, inconsequential in the scheduling decisions. Historically, DOUBLE_TICK enabled periodic ticks to proceed even when a high-resolution timer (hrtick) was active, with the potential to cancel the hrtick timer in __schedule if it was active.

With the removal of decision point where DOUBLE_TICK played a role by commit 5e963f2bd465, questions arise regarding its current utility.

The discussion centers on whether there is a continued need for the hrtick timer as the system transitions towards EEVDF for calculating preemption points, based on entity lag, and as the scheduler manages resource allocation in quanta. Particularly, in scenarios involving multiple processes with different nice values, where EEVDF governs their preemption according to their lag, however the behavior depends on the specific values of base_slice_ns and config_hz.

Vishal Chourasia (1):
sched: Deprecate DOUBLE_TICK feature

 kernel/sched/fair.c     | 6 ------
 kernel/sched/features.h | 1 -
 2 files changed, 7 deletions(-)
Signature · 1 line
2.43.0