Skip to main content

Crate scx_cosmos

Crate scx_cosmos 

Source

Re-exportsΒ§

pub use bpf_intf::*;

ModulesΒ§

bpf_intf
bpf_skel πŸ”’
stats πŸ”’
types

StructsΒ§

BpfLinks
BpfMaps
BpfProgs
BpfSkel
BpfSkelBuilder
CpuTimes πŸ”’
OpenBpfMaps
OpenBpfProgs
OpenBpfSkel
Opts πŸ”’
Scheduler πŸ”’
StructOps

EnumsΒ§

Powermode πŸ”’

ConstantsΒ§

DYNAMIC_THRESHOLD_INIT_VALUE πŸ”’
Initial value for the dynamic threshold (in BPF units).
DYNAMIC_THRESHOLD_RATE_HIGH πŸ”’
Target event rate (per second) above which we consider migrations/sticky dispatches too high.
DYNAMIC_THRESHOLD_RATE_LOW πŸ”’
Target event rate (per second) below which we consider migrations/sticky dispatches too low.
DYNAMIC_THRESHOLD_SCALE_MAX πŸ”’
Maximum scale factor when far from target (fast convergence when initial threshold is way off).
DYNAMIC_THRESHOLD_SCALE_MIN πŸ”’
Minimum scale factor when just outside the target band (slow convergence near optimal).
DYNAMIC_THRESHOLD_SLOPE_HIGH πŸ”’
Slope for β€œtoo high” case: scale grows with (rate/HIGH - 1) so we step much harder when rate is many times over target.
DYNAMIC_THRESHOLD_SLOPE_LOW πŸ”’
Slope for β€œtoo low” case: scale grows with deficit so we step harder when rate is near zero.
PERF_MAP_STRIDE πŸ”’
Must match lib/pmu.bpf.c SCX_PMU_STRIDE for perf_events map key layout.
SCHEDULER_NAME πŸ”’

FunctionsΒ§

adjust_dynamic_threshold πŸ”’
dynamic_threshold_scale πŸ”’
get_primary_cpus πŸ”’
main πŸ”’
parse_cpu_list
parse_hex πŸ”’
Parse hexadecimal value from command line (requires β€œ0x” prefix, e.g., β€œ0x2”)
setup_perf_events πŸ”’
Setup performance counter events for a specific CPU and counter index. counter_idx 0 = migration event (-e), 1 = sticky event (-y).