Skip to content

scx_rustland_core: Ensure migration-disabled tasks are always enqueued #1897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2025

Conversation

arighi
Copy link
Contributor

@arighi arighi commented May 16, 2025

Letting the kernel directly dispatch migration-disabled tasks can lead to inefficiencies and unfairness, as these tasks bypass the user-space scheduler and override others. They also receive the default time slice, which can further amplify the imbalance.

To address this, enable SCX_OPS_ENQ_MIGRATION_DISABLED so that migration-disabled tasks are enqueued and managed by the user-space scheduler like all other tasks.

Letting the kernel directly dispatch migration-disabled tasks can lead
to inefficiencies and unfairness, as these tasks bypass the user-space
scheduler and override others. They also receive the default time slice,
which can further amplify the imbalance.

To address this, enable SCX_OPS_ENQ_MIGRATION_DISABLED so that
migration-disabled tasks are enqueued and managed by the user-space
scheduler like all other tasks.

Signed-off-by: Andrea Righi <[email protected]>
@arighi arighi requested review from htejun, multics69 and hodgesds May 16, 2025 15:28
@arighi arighi added this pull request to the merge queue May 17, 2025
Merged via the queue into main with commit 35937bd May 17, 2025
48 checks passed
@arighi arighi deleted the rustland-migration-disabled branch May 17, 2025 05:33
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.

3 participants