Framework: main heap size value multiplication 77/29077/3
authorJan Gelety <jgelety@cisco.com>
Fri, 11 Sep 2020 00:37:25 +0000 (02:37 +0200)
committerJan Gelety <jgelety@cisco.com>
Wed, 30 Sep 2020 10:15:28 +0000 (10:15 +0000)
- 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>
resources/libraries/robot/performance/performance_utils.robot
resources/libraries/robot/shared/default.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44det-h262144-p63-s16515072-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44det-h65536-p63-s4128758-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-udir-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot
tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-udir-ndrpdr.robot

index d820d5c..34c8c99 100644 (file)
 | ${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
index f3d7ed4..4f83d1c 100644 (file)
 | | | 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
index 2595f2d..a993e57 100644 (file)
@@ -88,6 +88,8 @@
 # Trial data overwrite
 | ${trial_duration}= | ${1.1}
 | ${trial_multiplicity}= | ${1}
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${3}
 
 *** Keywords ***
 | Local Template
index 7f9ac68..8ee1aca 100644 (file)
@@ -88,6 +88,8 @@
 # Trial data overwrite
 | ${trial_duration}= | ${1.1}
 | ${trial_multiplicity}= | ${1}
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${2}
 
 *** Keywords ***
 | Local Template
index 9400336..91f658a 100644 (file)
@@ -81,6 +81,8 @@
 | ${n_sessions}= | ${${n_hosts} * ${n_ports}}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4udp-262144u63p
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${3}
 
 *** Keywords ***
 | Local Template
index 983afe9..6dea556 100644 (file)
@@ -81,6 +81,8 @@
 | ${n_sessions}= | ${${n_hosts} * ${n_ports}}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4udp-65536u63p
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${2}
 
 *** Keywords ***
 | Local Template
index 87af299..3749553 100644 (file)
@@ -88,6 +88,8 @@
 # Trial data overwrite
 | ${trial_duration}= | ${1.1}
 | ${trial_multiplicity}= | ${1}
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${3}
 
 *** Keywords ***
 | Local Template
index 22e4cab..023604e 100644 (file)
@@ -82,6 +82,8 @@
 | ${out_mask}= | ${24}
 # Traffic profile:
 | ${traffic_profile}= | trex-stl-ethip4udp-262144u63p-udir
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${3}
 
 *** Keywords ***
 | Local Template
index f0017e9..4e2b0bf 100644 (file)
@@ -88,6 +88,8 @@
 # Trial data overwrite
 | ${trial_duration}= | ${1.1}
 | ${trial_multiplicity}= | ${1}
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${2}
 
 *** Keywords ***
 | Local Template
index c2a67ca..b98c2d0 100644 (file)
@@ -82,6 +82,8 @@
 | ${out_mask}= | ${26}
 # Traffic profile:
 | ${traffic_profile}= | trex-stl-ethip4udp-65536u63p-udir
+# Main heap size multiplicator
+| ${heap_size_mult}= | ${2}
 
 *** Keywords ***
 | Local Template