Skip to content

sched/fair: reduce repeated work in enqueue path

Kayra Cizmeci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 9 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/fair: reuse the ENQUEUE_DELAYED calculation in enqueue_task_fair()kernel/sched/fair.c+3 -30 replies
1/2sched/fair: reuse the ENQUEUE_DELAYED calculation in enqueue_task_fair()kernel/sched/fair.c+3 -34 replies
2/2sched/fair: avoid recalculating curr status in place_entity() and requeue_delayed_entity()kernel/sched/fair.c+22 -140 replies
2/2sched/fair: avoid recalculating curr status in place_entity() and requeue_delayed_entity()kernel/sched/fair.c+22 -1416 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchChristian Loehle
1/2
1/2
2/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] sched/fair: reduce repeated work in enqueue path

1/2: Gather the flags & DELAYED_QUEUE controls in one place.

2/2: give the calculated curr == se onto requeue_delayed_entity() and place_entity()

Changelog:

1/2: No changes.

2/2: add (is_curr || curr->on_rq) condition to the
check for calculating curr_weight so when both of them are false the curr_weight won't go to waste.

v1: https://lore.kernel.org/lkml/[email protected]/

Kayra Cizmeci (2):
sched/fair: reuse the ENQUEUE_DELAYED calculation in
enqueue_task_fair()
sched/fair: avoid recalculating curr status in place_entity() and
requeue_delayed_entity()

 kernel/sched/fair.c | 42 +++++++++++++++++++++++++-----------------
 1 file changed, 25 insertions(+), 17 deletions(-)
Signature · 1 line
2.53.0