From: "Henry Huang" <henry.hj@antgroup.com>
To: changwoo@igalia.com, arighi@nvidia.com, tj@kernel.org,
void@manifault.com
Cc: 谈鉴锋 <henry.tjf@antgroup.com>,
"Yan Yan(cailing)" <yanyan.yan@antgroup.com>,
linux-kernel@vger.kernel.org, sched-ext@lists.linux.dev,
"Henry Huang" <henry.hj@antgroup.com>
Subject: [PATCH v1] include SCX_OPS_TRACK_MIGRATION
Date: Sun, 22 Jun 2025 17:36:20 +0800 [thread overview]
Message-ID: <20250622093621.1669-1-henry.hj@antgroup.com> (raw)
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
next reply other threads:[~2025-06-22 9:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-22 9:36 Henry Huang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250622093621.1669-1-henry.hj@antgroup.com \
--to=henry.hj@antgroup.com \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=henry.tjf@antgroup.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sched-ext@lists.linux.dev \
--cc=tj@kernel.org \
--cc=void@manifault.com \
--cc=yanyan.yan@antgroup.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®