From 6699d6bada9e95b24ec99407bdb27f5e5056874a Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Tue, 22 Aug 2023 10:06:09 +0300 Subject: [PATCH] e2e: relax dynamic demotion first detection round requirement Strict requirement makes the test flaky. Give two more rounds time for detecting first memory moves. --- .../test04-dynamic-page-demotion-deprecated-syntax/code.var.sh | 2 +- .../c4pmem4/test04-dynamic-page-demotion/code.var.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion-deprecated-syntax/code.var.sh b/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion-deprecated-syntax/code.var.sh index 6fd98c016..f91616740 100644 --- a/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion-deprecated-syntax/code.var.sh +++ b/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion-deprecated-syntax/code.var.sh @@ -36,7 +36,7 @@ pages_per_second_per_process="$(awk ' # After how many rounds (seconds) first migrations should be visible. first_migrations_visible="$(awk ' - /PageScanInterval:/{gsub(/[^0-9]/, "", $2); print $2+3} + /PageScanInterval:/{gsub(/[^0-9]/, "", $2); print $2+8} ' < "$cri_resmgr_cfg")" # Expected migrated number of pages when fully migrated. diff --git a/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion/code.var.sh b/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion/code.var.sh index 53ca4e0db..df4be333f 100644 --- a/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion/code.var.sh +++ b/test/e2e/policies.test-suite/topology-aware/c4pmem4/test04-dynamic-page-demotion/code.var.sh @@ -38,7 +38,7 @@ pages_per_second_per_process="$(awk ' # After how many rounds (seconds) first migrations should be visible. first_migrations_visible="$(awk ' - /PageScanInterval:/{gsub(/[^0-9]/, "", $2); print $2+3} + /PageScanInterval:/{gsub(/[^0-9]/, "", $2); print $2+8} ' < "$cri_resmgr_cfg")" # Expected migrated number of pages when fully migrated.