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

Topology refactor #154

Merged
merged 2 commits into from
Feb 23, 2024
Merged

Topology refactor #154

merged 2 commits into from
Feb 23, 2024

Conversation

Byte-Lab
Copy link
Contributor

The topology.rs crate is insufficiently generic, and reflects
implementation details of scx_rusty more than it provides generic use
cases for modeling a host's topology. This adds a new topology crate
that replaces topology.rs, and also updates scx_rusty to use the new
create.

@Byte-Lab
Copy link
Contributor Author

Error: Failed to open or read file "/sys/devices/system/node/node0/cpu0/cpufreq/scaling_min_freq"

Do we need to compile with CONFIG_CPU_FREQ?

@htejun
Copy link
Contributor

htejun commented Feb 23, 2024

Error: Failed to open or read file "/sys/devices/system/node/node0/cpu0/cpufreq/scaling_min_freq"

Do we need to compile with CONFIG_CPU_FREQ?

I guess, but maybe make that part optional?

@htejun
Copy link
Contributor

htejun commented Feb 23, 2024

Looks great to me. Down the line it may be useful to have an ability to mock an arbitrary topology so that scheduler developers can test behaviors without actually having to have actual machines.

The topology.rs crate is insufficiently generic, and reflects
implementation details of scx_rusty more than it provides generic use
cases for modeling a host's topology. This adds a new topology2.rs crate
that will replace topology.rs. We have this as an intermediate commit so
that we don't bundle updating scx_rusty with adding this crate.

Signed-off-by: David Vernet <void@manifault.com>
Now that we have this new Topology crate, let's update Rusty to use it
instead of using the old one.

Signed-off-by: David Vernet <void@manifault.com>
@Byte-Lab
Copy link
Contributor Author

Looks great to me. Down the line it may be useful to have an ability to mock an arbitrary topology so that scheduler developers can test behaviors without actually having to have actual machines.

Definitely. It shouldn't be terribly difficult to do with a builder pattern. As you said, we can add it down the line when needed.

@Byte-Lab Byte-Lab merged commit 9904d03 into main Feb 23, 2024
1 check passed
@Byte-Lab Byte-Lab deleted the topology_refactor branch February 23, 2024 17:02
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