ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sched.pelt.core Module Reference

Functions

auto zxfoundation::sched::pelt::accumulate_sum (u64 delta_ns, sched_avg &sa, u32 load, u32 runnable, u32 running) noexcept -> u32
 Accumulate a signed-delta running contribution into a PELT averaging record, advancing by zero or more full periods.
auto zxfoundation::sched::pelt::decay_load (u64 value, u64 periods) noexcept -> u64
 Decay a load value by n full periods.
auto zxfoundation::sched::pelt::update_entity_load_avg (sched_avg &sa, u64 now_ns, u32 weight, u32 runnable, u32 running) noexcept -> void
 Drive a full per-entity PELT update cycle.
auto zxfoundation::sched::pelt::update_load_avg (sched_avg &sa, u32 weight) noexcept -> void
 Fold the decayed sums into the public averages.
auto zxfoundation::sched::pelt::update_rq_load_avg (sched_avg_rq &rq, u64 now_ns, u32 runnable) noexcept -> void
 Drive a full per-RQ PELT update cycle for sched_avg_rq.

Variables

constexpr u64 zxfoundation::sched::pelt::LOAD_AVG_MAX = detail::LOAD_AVG_MAX
 Maximum possible value of sched_avg::load_sum and friends.
constexpr u64 zxfoundation::sched::pelt::PELT_HALF_LIFE = detail::PELT_HALF_LIFE
 Half-life in periods.
constexpr u64 zxfoundation::sched::pelt::PELT_PERIOD_NS = detail::PELT_PERIOD_NS
 PELT period in nanoseconds (1 ms).

Files

file  zxfoundation/sched/pelt.zcomponent/core.cxxm
file  zxfoundation/sched/pelt.zcomponent/core.cxx