aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2020-09-11 02:37:25 +0200
committerJan Gelety <jgelety@cisco.com>2020-09-30 10:15:28 +0000
commit97e6988950559e98b5abfd73458dfa830727e16b (patch)
treebd3a8e92bee0c013d93557b8632ad9f7765a1025 /resources/libraries/robot
parentba9ef5fc29e02a99ab48acb92f720bcdea43bd97 (diff)
Framework: main heap size value multiplication
- default value for main heap size set to 2G - allow allocation of n x 2G in tests that need it Change-Id: I02dafe6bc61649d2823486a3e983f66f5a213a88 Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r--resources/libraries/robot/performance/performance_utils.robot4
-rw-r--r--resources/libraries/robot/shared/default.robot2
2 files changed, 5 insertions, 1 deletions
diff --git a/resources/libraries/robot/performance/performance_utils.robot b/resources/libraries/robot/performance/performance_utils.robot
index d820d5c187..34c8c997a1 100644
--- a/resources/libraries/robot/performance/performance_utils.robot
+++ b/resources/libraries/robot/performance/performance_utils.robot
@@ -30,6 +30,10 @@
| ${trial_duration}= | ${PERF_TRIAL_DURATION}
| ${trial_multiplicity}= | ${PERF_TRIAL_MULTIPLICITY}
| ${extended_debug}= | ${EXTENDED_DEBUG}
+| # Variable holding multiplicator of main heap size. By default it is set to 1
+| # that means the main heap size will be set to 2G. Some tests may require more
+| # memory for IP FIB (e.g. nat44det tests with 4M or 16M sessions).
+| ${heap_size_mult}= | ${1}
| # Variable holding trial duration extension [s] used in pre_stats action
| # clear-show-runtime-with-traffic. By default it is set to 0 but some
| # tests (e.g. NAT) needs this duration extension in ramp up phase (e.g. to
diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot
index f3d7ed47dd..4f83d1c193 100644
--- a/resources/libraries/robot/shared/default.robot
+++ b/resources/libraries/robot/shared/default.robot
@@ -151,7 +151,7 @@
| | | Run Keyword | ${dut}.Add Unix Nodaemon
| | | Run Keyword | ${dut}.Add Unix Coredump
| | | Run Keyword | ${dut}.Add Socksvr | ${SOCKSVR_PATH}
-| | | Run Keyword | ${dut}.Add Main Heap Size | 6G
+| | | Run Keyword | ${dut}.Add Main Heap Size | ${${heap_size_mult}*${2}}G
| | | Run Keyword | ${dut}.Add Main Heap Page Size | 2M
| | | Run Keyword | ${dut}.Add Statseg Size | 2G
| | | Run Keyword | ${dut}.Add Statseg Page Size | 2M