Skip to content

Commit c7d3589

Browse files
k-risterportante
authored andcommitted
Trafficgen updates (#858)
* BenchPostprocess.pm:gen_data(): skip data that is missing timeseries samples * pbench-trafficgen: adopt --traffic-direction call to binary-search.py - Use the same parameter and options as binary-search.py for better consistency. * pbench-trafficgen: add support for trex-txrx-profile traffic generator - Lots of code rework since the trex-txrx-profile traffic generator is a bit different than previous traffic generators since most of the traffic parameters exist in the profile (on a per stream basis) instead of as CLI arguments (and applying to all streams). * pbench-trafficgen: update unit test * trafficgen-postprocess: correct typo * trafficgen-postprocess: add emacs file local variables * trafficgen-postprocess: add profiler-data postprocessing * BenchPostprocess.pm:calc_aggregate_metrics(): allow aggregation to be turned off - It does not make sense to aggregate some data sets so add a flag, get_label('skip_aggregate_label'), which will force datasets to be ignored when aggregation is being performed. * pbench-trafficgen: remove unused & undocumented option * pbench-trafficgen: skip unneccesary code when only postprocessing - This makes it easier to postprocess data since the requirements are lower. This includes the ability to test the postprocessor on a system that does not run the benchmark. * pbench-trafficgen: add postprocessing unit test * pbench-trafficgen: handle inability to determine trafficgen repo version
1 parent ecf68a9 commit c7d3589

File tree

7 files changed

+1024
-421
lines changed

7 files changed

+1024
-421
lines changed

agent/bench-scripts/gold/pbench-trafficgen/test-21.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trafficgen general test options
1010
-------------------------------
1111

1212
--traffic-generator=str
13-
The traffic generation engine to use (trex-txrx or moongen-txrx)
13+
The traffic generation engine to use (trex-txrx or trex-txrx-profile or moongen-txrx)
1414
Default is trex-txrx
1515

1616
--devices=str,str
@@ -47,6 +47,12 @@ trafficgen general test options
4747

4848
would produce 32 different test permutations
4949

50+
--traffic-profile[s]=FILE[,FILE]
51+
A list of traffic profiles to load when --traffic-generator=trex-txrx-profile. The
52+
profile contains a list of streams, each with fine grained options defined on a per
53+
stream basis. See README-trex-txrx-profile.md in the trafficgen distribution for
54+
documentation on the file format.
55+
5056
--rate[s]=value[,value]]
5157
A list of packet rates, in millions of packets per second (mpps), unless
5258
--rate-unit=% is used, where the rate value is interpreted as a percentage
@@ -63,10 +69,11 @@ trafficgen general test options
6369
--rate=50% --rate-unit=% --frame-size=64
6470

6571
--traffic-direction[s]=str[,str]
66-
A list of one or more: unidirec, revunidirec, or bidirec (default bidirec)
67-
unidirec: packets will Tx out the 1st device and Rx in the 2nd device
68-
revunidirec: packets will Tx out the 2nd device and RX in the 1st device
69-
biidirec: packets will Tx out the both devices and Rx in both devices
72+
A list of one or more: unidirectional, revunidirectional, or bidirectional
73+
(default bidirectional)
74+
unidirectional: packets will Tx out the 1st device and Rx in the 2nd device
75+
revunidirectional: packets will Tx out the 2nd device and RX in the 1st device
76+
bidirectional: packets will Tx out the both devices and Rx in both devices
7077

7178
--max-loss-pct[s]=fl,[fl]
7279
A list of maximum allowed percentage of dropped frames, used for binary search

agent/bench-scripts/gold/pbench-trafficgen/test-22.txt

Lines changed: 223 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)