mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] sched/fair: Update min_vruntime in more relaxed way
@ 2023-11-16 10:54 Yiwei Lin
  2023-11-16 10:54 ` [PATCH 1/1] " Yiwei Lin
  0 siblings, 1 reply; 4+ messages in thread
From: Yiwei Lin @ 2023-11-16 10:54 UTC (permalink / raw)
  To: mingo, peterz
  Cc: vincent.guittot, dietmar.eggemann, wuyun.abel, linux-kernel, s921975628

Because we only use min_vruntime as an offset to avoid
overflow, and we will always update_curr() before making
change to csf_rq. Unlike the requirement on CFS, I
think it is possible to just update_min_vruntime() when
update_curr(), which reduces the cost to evaluate the statistic.

It is worth metioning that maybe we can update_min_vruntime() in
a more relaxed form according to this fact, but we may need more
works to optimize in the future.

The following link shows some discussion which relates to this patch:
https://lore.kernel.org/lkml/20231107090510.71322-1-wuyun.abel@bytedance.com/T/#mc277f045367f4186b34c83e636907ce2f5eb481e

Yiwei Lin (1):
  sched/fair: Update min_vruntime in more relaxed way

 kernel/sched/fair.c | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-16 11:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 10:54 [PATCH 0/1] sched/fair: Update min_vruntime in more relaxed way Yiwei Lin
2023-11-16 10:54 ` [PATCH 1/1] " Yiwei Lin
2023-11-16 11:16   ` Abel Wu
2023-11-16 11:33     ` Yiwei Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®