mirror of
https://github.com/JakeHillion/scx.git
synced 2024-12-03 22:37:11 +00:00
d7bb5a7cba
Introuce a TopologyMap object, represented as an array of arrays, where each inner array corresponds to a core containing its associated CPU IDs. This object can be used as a cache to facilitate efficient iteration over the entire host's topology. Example usage: let topo = Topology::new()?; let topo_map = TopologyMap::new(topo)?; for (core_id, core) in topo_map.iter().enumerate() { for cpu in core { println!("core={} cpu={}", core_id, cpu); } } Signed-off-by: Andrea Righi <andrea.righi@canonical.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
bindings.h | ||
bpf_h | ||
build.rs | ||
Cargo.toml | ||
LICENSE | ||
meson.build | ||
README.md |
Utility collection for sched_ext schedulers
sched_ext is a Linux kernel feature which enables implementing kernel thread schedulers in BPF and dynamically loading them.
Thie crate is a collection of utilities for sched_ext scheduler implementations which use Rust for userspace component. This enables implementing hot paths in BPF while offloading colder and more complex operations to userspace Rust code which can be significantly more convenient and powerful.
Please see documentation for more details.