[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250622093621.1669-1-henry.hj@antgroup.com>
Date: Sun, 22 Jun 2025 17:36:20 +0800
From: "Henry Huang" <henry.hj@...group.com>
To: changwoo@...lia.com,
arighi@...dia.com,
tj@...nel.org,
void@...ifault.com
Cc: "谈鉴锋" <henry.tjf@...group.com>,
"Yan Yan(cailing)" <yanyan.yan@...group.com>,
<linux-kernel@...r.kernel.org>,
<sched-ext@...ts.linux.dev>,
"Henry Huang" <henry.hj@...group.com>
Subject: [PATCH v1] include SCX_OPS_TRACK_MIGRATION
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
Powered by blists - more mailing lists