Skip to content

Conversation

@jordalgo
Copy link
Contributor

No description provided.

@davemarchevsky
Copy link
Contributor

Refactoring LGTM, not very familiar w/ scx_rusty BPF logic so will let someone else push the button

stat_add(RUSTY_STAT_DIRECT_DISPATCH, 1);
} else {
stat_add(RUSTY_STAT_PINNED, 1);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can simplify the if on line 442 by removing the first p->nr_cpus_allowed > 1 clause, which should always be true now that we're always doing local dispatching if p->nr_cpus_allowed == 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Will fix.

@Byte-Lab
Copy link
Contributor

Looks great, thanks for the cleanup. Just left a comment for one more small cleanup we can do because of this refactor.

@jordalgo jordalgo force-pushed the minor-rusty-refactor branch from 2fb70e8 to ba35b97 Compare December 14, 2023 15:34
@Byte-Lab Byte-Lab self-requested a review December 14, 2023 15:34
@Byte-Lab Byte-Lab merged commit b8f70fa into sched-ext:main Dec 14, 2023
@jordalgo jordalgo deleted the minor-rusty-refactor branch December 18, 2023 15:23
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