From 13384d91fa7e84723ce239ef3d27dab8fdd07e18 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Wed, 2 Apr 2025 18:12:11 +0200 Subject: feat(perf): Separate two configurable warmups + First starts disabled, low-rate, to avoid flooding in some labs. + Second starts enabled, max-rate, to avoid unsent packets by TRex. + The one in MLRsearch Python library is no longer used. + Both warmups are called directly, as they apply also to non-VPP DUTs. - Hoststack traffic is not covered yet. - Not deleting infra-warmup action yet, downstream may be using it. Change-Id: I72036d0dec5e8e94f5e7cec4692e4ebb07b1ec69 Signed-off-by: Vratko Polak --- resources/libraries/python/TrafficGenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/libraries/python/TrafficGenerator.py') diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py index ae01f8d3a6..fe9db3cb72 100644 --- a/resources/libraries/python/TrafficGenerator.py +++ b/resources/libraries/python/TrafficGenerator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Cisco and/or its affiliates. +# Copyright (c) 2025 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -1590,7 +1590,7 @@ class OptimizedSearch: config.min_load = min_load config.max_load = max_load config.search_duration_max = search_duration_max - config.warmup_duration = 1.0 + config.warmup_duration = 0.0 algorithm = MultipleLossRatioSearch(config) results = algorithm.search(measurer=tg_instance, debug=logger.debug) return [results[goal] for goal in goals] -- cgit