CTU-IIG / demos-sched

Scheduler for simulation of avionics multi-core workloads on Linux
GNU General Public License v3.0
1 stars 2 forks source link

Reactive policies #74

Open bumbarad opened 2 years ago

bumbarad commented 2 years ago

Contains reactive policies. They take single argument, that is temperute level. Bets_policy.hpp contains general policy framework, which reacts on temperature threshold overstepping and increases "level" variable. Higher level means more strict policy application. If level != 0, virtual function execute_policy is executed. Otherwise it acts like imx8_per_window policy. Bets_skip.hpp contains skipping policy. Iterates over all tasks in each window and skips up to 5 of them (to keep one running), based on "level" variable. Bets_soft_throttle.hpp reduces frequency of tasks in each window by 1 - 3 levels based on "level" variable.

codecov-commenter commented 2 years ago

Codecov Report

Merging #74 (073f056) into master (51086b7) will decrease coverage by 1.60%. The diff coverage is 2.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
- Coverage   36.39%   34.79%   -1.61%     
==========================================
  Files          46       50       +4     
  Lines        2459     2578     +119     
  Branches     1117     1172      +55     
==========================================
+ Hits          895      897       +2     
- Misses       1094     1209     +115     
- Partials      470      472       +2     
Impacted Files Coverage Δ
src/power_policy/_power_policy.cpp 22.22% <0.00%> (-1.59%) :arrow_down:
src/power_policy/bets_hard_throttle.hpp 0.00% <0.00%> (ø)
src/power_policy/bets_policy.hpp 0.00% <0.00%> (ø)
src/power_policy/bets_skip.hpp 0.00% <0.00%> (ø)
src/power_policy/bets_soft_throttle.hpp 0.00% <0.00%> (ø)
src/window.hpp 100.00% <ø> (ø)
src/window.cpp 75.00% <50.00%> (-3.13%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 51086b7...073f056. Read the comment docs.