aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-05-17 15:03:21 +0200
committerPeter Mikus <pmikus@cisco.com>2022-05-17 15:03:21 +0200
commiteea1611300a7e80694173b0c448865a772746434 (patch)
tree1f644d1f2fe8dc4c27d00d112e95880bfe847e23 /resources/libraries
parentd24fe3f719a8c0c084544a794fae1d00fd3aa05c (diff)
feat(perf): T-Rex core usage 2n-zn2
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ife55633c620a3c762f4d939013a7f6fafb640aa6
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/bash/function/common.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh
index 52e44c796e..7b9cb1cf95 100644
--- a/resources/libraries/bash/function/common.sh
+++ b/resources/libraries/bash/function/common.sh
@@ -1196,13 +1196,16 @@ function set_environment_variables () {
case "${TEST_CODE}" in
*"1n-aws"* | *"2n-aws"* | *"3n-aws"*)
- # T-Rex 2.88+ workaround for ENA NICs
+ # T-Rex 2.88+ workaround for ENA NICs.
export TREX_RX_DESCRIPTORS_COUNT=1024
export TREX_EXTRA_CMDLINE="--mbuf-factor 19"
export TREX_CORE_COUNT=6
- # Settings to prevent duration stretching
+ # Settings to prevent duration stretching.
export PERF_TRIAL_STL_DELAY=0.1
;;
+ *"2n-zn2"*)
+ # Maciek's workaround for Zen2 with lower amount of cores.
+ export TREX_CORE_COUNT=14
esac
}