From ff39aed7eaea6cda13a1e2fe7957dd2a32a38b88 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Mon, 19 Feb 2024 15:24:12 +0100 Subject: [PATCH] Scheduler-test: fix feedback adjustments for breaking point search Various misconceptions identified in the feedback path of the test algorithm. - statistics are cumulative, which must be incorporated by norming on time base - average concurrency includes idle times, which is besides the point within this test setup, since additional wait-phases are injected when reducing stress --- tests/vault/gear/test-chain-load.hpp | 4 +- wiki/thinkPad.ichthyo.mm | 61 +++++++++++++++++++++++++++- 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/tests/vault/gear/test-chain-load.hpp b/tests/vault/gear/test-chain-load.hpp index ddae88241..46d2b8f89 100644 --- a/tests/vault/gear/test-chain-load.hpp +++ b/tests/vault/gear/test-chain-load.hpp @@ -1964,7 +1964,9 @@ namespace test { ENSURE (0.0 < stat.avgConcurrency); if (not concurrency) concurrency = defaultConcurrency(); - double formFac = concurrency / stat.avgConcurrency; + double worktimeRatio = 1 - stat.timeAtConc(0) / stat.coveredTime; + double workConcurrency = stat.avgConcurrency / worktimeRatio; + double formFac = concurrency / workConcurrency; double expectedNodeTime = _uSec(compuLoad_->timeBase) * chainLoad_.getWeightSum() / chainLoad_.size(); double realAvgNodeTime = stat.activeTime / stat.activationCnt; formFac *= realAvgNodeTime / expectedNodeTime; diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 044a5dbd2..ee34531f1 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -111473,8 +111473,8 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- - + + @@ -111578,6 +111578,63 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +