diff options
author | 2025-04-02 18:12:11 +0200 | |
---|---|---|
committer | 2025-04-02 18:12:11 +0200 | |
commit | 13384d91fa7e84723ce239ef3d27dab8fdd07e18 (patch) | |
tree | d3c5a1a3e4dbe092f2dfc92789b2a6d2f7bac7a2 /resources/libraries/python/TrafficGenerator.py | |
parent | bcc39e4e73d367178a542540935457c8051df7fe (diff) |
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 <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/TrafficGenerator.py')
-rw-r--r-- | resources/libraries/python/TrafficGenerator.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |