From 81d4b5d3234b4d2afb84c97c3960a63b80fabeb5 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Wed, 10 Jan 2024 20:39:20 +0100 Subject: [PATCH] Scheduler-test: setup in Stress-Test-Rig ...use the scheme established thus far --- tests/vault/gear/scheduler-stress-test.cpp | 47 ++++++++++++++++------ wiki/thinkPad.ichthyo.mm | 21 ++++++++-- 2 files changed, 53 insertions(+), 15 deletions(-) diff --git a/tests/vault/gear/scheduler-stress-test.cpp b/tests/vault/gear/scheduler-stress-test.cpp index 2e64aa9e8..916348d97 100644 --- a/tests/vault/gear/scheduler-stress-test.cpp +++ b/tests/vault/gear/scheduler-stress-test.cpp @@ -80,9 +80,9 @@ namespace test { run (Arg) { //smokeTest(); - setup_systematicSchedule(); - search_breaking_point(); - generalFuckup(); +// setup_systematicSchedule(); +// search_breaking_point(); + investigateWorkProcessing(); walkingDeadline(); } @@ -326,16 +326,39 @@ namespace test { * @todo WIP 1/24 🔁 define ⟶ implement */ void - generalFuckup() + investigateWorkProcessing() { - TestChainLoad<8> testLoad{64}; - testLoad.seedingRule(testLoad.rule().probability(0.6).maxVal(2)) - .pruningRule(testLoad.rule().probability(0.44)) - .setSeed(60) - .buildTopology() - .printTopologyDOT() - .printTopologyStatistics() - ; +// TestChainLoad<8> testLoad{64}; +// testLoad.seedingRule(testLoad.rule().probability(0.6).minVal(2)) +// .pruningRule(testLoad.rule().probability(0.44)) +// .setSeed(55) +// .buildTopology() +// .printTopologyDOT() +// .printTopologyStatistics() +// ; + MARK_TEST_FUN + + struct Setup : StressRig + { + usec LOAD_BASE = 500us; +// uint CONCURRENCY = 4; +// bool SCHED_DEPENDS = true; + bool showRuns = true; + + auto + testLoad() + { + TestChainLoad<8> testLoad{64}; + testLoad.seedingRule(testLoad.rule().probability(0.6).minVal(2)) + .pruningRule(testLoad.rule().probability(0.44)) + .setSeed(55); + return testLoad; + } + }; + auto [stress,delta,time] = StressRig::with().searchBreakingPoint(); +SHOW_EXPR(stress) +SHOW_EXPR(delta) +SHOW_EXPR(time) } diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 59837e57b..13238191a 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -110773,9 +110773,9 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- + - + @@ -110790,7 +110790,7 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- + @@ -110893,6 +110893,21 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
+ + + +
+ + + + + + + + + + +