From bab78589c715a9c38aa395f6f15018e23b95d186 Mon Sep 17 00:00:00 2001 From: Valentin Schneider Date: Tue, 24 Oct 2017 12:44:28 +0100 Subject: [PATCH] tests/eas/generic: Lower ramp tests duration Each test in generic.py has a time duration set to 2s. However, the "time_s" entry for rt-app ramps is the duration of each step, and not the duration of the whole ramp. As such, each ramp test lasts 26 seconds instead of 2. This commit lowers the duration of each step to 500ms. Quoting @derkling: " If we consider a standard 32ms half-life PELT, a 70% task with 16ms period can take up to 250ms to enter the stable region. " This means the step duration can't be lowered too much, hence why 500ms seems a good enough choice. --- tests/eas/generic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/eas/generic.py b/tests/eas/generic.py index ce090d0c5..c43a98e20 100644 --- a/tests/eas/generic.py +++ b/tests/eas/generic.py @@ -442,7 +442,7 @@ class RampUp(_EnergyModelTest): "start_pct" : 5, "end_pct" : 70, "delta_pct" : 5, - "time_s" : 2, + "time_s" : .5, }, }, }, @@ -461,7 +461,6 @@ class RampDown(_EnergyModelTest): """ Test EAS for a task ramping from 70% down to 5% over 2 seconds """ - # The main purpose of this test is to ensure that as it reduces in load, a # task is migrated from big to LITTLE CPUs on a big.LITTLE system. # This migration naturally happens some time _after_ it could possibly be @@ -482,7 +481,7 @@ class RampDown(_EnergyModelTest): "start_pct" : 70, "end_pct" : 5, "delta_pct" : 5, - "time_s" : 2, + "time_s" : .5, }, }, }, -- GitLab