mirror of
https://github.com/JakeHillion/scx.git
synced 2024-12-02 13:57:11 +00:00
bbe388e3bc
With Intel Turbo Boost enabled, some CPUs might show a higher maximum frequency than others, even if they are not actually faster cores. This can potentially confuse some auto-detection logic for distinguishing between fast and slow cores in certain schedulers. The base CPU frequency reported in /sys/devices/system/cpu/cpuN/cpufreq/base_frequency represents a more reliable indicator for identifying truly fast and slow cores. To address this, provide a new base_freq() method in the struct Cpu, which will return the base operational frequency of a CPU when Turbo Boost is present. If Turbo Boost is not available, base_freq() will return the maximum frequency, functioning the same as max_freq(). Signed-off-by: Andrea Righi <andrea.righi@linux.dev> |
||
---|---|---|
.. | ||
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.
This 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.