All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] include SCX_OPS_TRACK_MIGRATION
@ 2025-06-22  9:36 Henry Huang
  2025-06-22  9:36 ` [PATCH v1] sched_ext: " Henry Huang
  0 siblings, 1 reply; 4+ messages in thread
From: Henry Huang @ 2025-06-22  9:36 UTC (permalink / raw)
  To: changwoo, arighi, tj, void
  Cc: 谈鉴锋, Yan Yan(cailing), linux-kernel,
	sched-ext, Henry Huang

In our environment, we need track task migrations to update per-cpu
map.
Implementing fentry(on enqueue_task_scx & dequeue_task_scx)
is a feasible solution. But there are some limitations:
1. Can't modify p->scx.xxx
2. enqueue_task_scx & dequeue_task_scx can't have some
special compilation optimizations.
3. Has more overhead compared to struct_ops
So we include SCX_OPS_TRACK_MIGRATION to support tracking task
migrations.
If SCX_OPS_TRACK_MIGRATION is set, runnable/quiescent
would be called whether task is doing migration or not.

Henry Huang (1):
  sched_ext: include SCX_OPS_TRACK_MIGRATION

 kernel/sched/ext.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

-- 
Henry


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

end of thread, other threads:[~2025-06-22 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-22  9:36 [PATCH v1] include SCX_OPS_TRACK_MIGRATION Henry Huang
2025-06-22  9:36 ` [PATCH v1] sched_ext: " Henry Huang
2025-06-22 12:41   ` Andrea Righi
2025-06-22 14:55     ` Henry Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.