Skip to content
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

scx_nest: Reset schedulings when a task is dispatched #18

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

Byte-Lab
Copy link
Contributor

@Byte-Lab Byte-Lab commented Dec 8, 2023

In scx_nest, we currently count the number of times that a core is scheduled for compaction before we eventually just eagerly compact the core. The idea is that the core could thrash between being scheduled and then "de-scheduled" for compaction if there are a couple of tasks that are bouncing between cores in the primary nest often enough to kick them out of being compacted.

We're currently resetting schedulings when a core is eagerly compacted, but to be precise we should probably also reset the count when a core consumes a task from the fallback DSQ, at this indicates that the system is overcommitted and that we likely won't benefit from compacting the primary nest.

In scx_nest, we currently count the number of times that a core is
scheduled for compaction before we eventually just eagerly compact the
core. The idea is that the core could thrash between being scheduled and
then "de-scheduled" for compaction if there are a couple of tasks that
are bouncing between cores in the primary nest often enough to kick them
out of being compacted.

We're currently resetting schedulings when a core is eagerly compacted,
but to be precise we should probably also reset the count when a core
consumes a task from the fallback DSQ, at this indicates that the system
is overcommitted and that we likely won't benefit from compacting the
primary nest.

Signed-off-by: David Vernet <void@manifault.com>
@Byte-Lab Byte-Lab requested a review from htejun December 8, 2023 19:18
@htejun htejun merged commit 330e104 into main Dec 8, 2023
@htejun htejun deleted the num_schedulings branch January 10, 2024 19:51
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.

None yet

2 participants