Skip to content

Conversation

@multics69
Copy link
Contributor

When SCX_OPS_ALLOW_QUEUED_WAKEUP is set, wake-up operations are batch-processed in the kernel. Hence, @current is no longer a waker task, so we cannot correctly track the task's wake frequency. So we disable SCX_OPS_ALLOW_QUEUED_WAKEUP for now.

Also, we limit the wake frequency tracking within userspace tasks under the same parent. The kernel tasks are too broadly related.

When SCX_OPS_ALLOW_QUEUED_WAKEUP is set, wake-up operations are
batch-processed in the kernel. Hence, @current is no longer a waker task,
so we cannot correctly track the task's wake frequency. So we disable
SCX_OPS_ALLOW_QUEUED_WAKEUP for now.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
@multics69 multics69 requested review from arighi, hodgesds and htejun July 5, 2025 11:47
We limit the wake frequency tracking within userspace tasks under the
same parent. The kernel tasks are too broadly related.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
Copy link
Contributor

@hodgesds hodgesds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, thanks for the good description.

@multics69 multics69 changed the title scx_lavd: Disable SCX_OPS_ALLOW_QUEUED_WAKEUP. scx_lavd: Correctly measure wake frequency. Jul 5, 2025
@multics69 multics69 added this pull request to the merge queue Jul 5, 2025
Merged via the queue into sched-ext:main with commit 70988ce Jul 5, 2025
17 checks passed
@multics69 multics69 deleted the lavd-wake-freq branch July 5, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants