diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-02-10 17:23:58 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-02-10 16:26:56 +0000 |
commit | d7ef5191ec1a7561d6109723980d48b85953a9c7 (patch) | |
tree | 1ea7a5768319a0c9e91a33188f796ed82d91e084 /resources/tools/presentation | |
parent | 256743b509bec8dec3075d91e384b3e6bb01cf77 (diff) |
Report: Latency only 1C and prim NIC
Change-Id: Ibb9f6ed27047ac2beca25d9462dc321cf73f7546
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r-- | resources/tools/presentation/generator_plots.py | 28 | ||||
-rw-r--r-- | resources/tools/presentation/specification.yaml | 18 |
2 files changed, 26 insertions, 20 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 08cf1a9c30..51f3097f56 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -40,7 +40,7 @@ COLORS = [u"SkyBlue", u"Olive", u"Purple", u"Coral", u"Indigo", u"Pink", u"LightGreen", u"LightSeaGreen", u"LightSkyBlue", u"Maroon", u"MediumSeaGreen", u"SeaGreen", u"LightSlateGrey"] -REGEX_NIC = re.compile(r'(\d*ge\dp\d\D*\d*)-') +REGEX_NIC = re.compile(r'(\d*ge\dp\d\D*\d*[a-z]*)-') def generate_plots(spec, data): @@ -204,6 +204,8 @@ def plot_hdrh_lat_by_percentile(plot, input_data): plot, params=[u"latency", u"throughput", u"parent", u"tags", u"type"] )[0][0] + elif plot.get(u"filter", None): + data = input_data.filter_data(plot, continue_on_error=True) else: job = list(plot[u"data"].keys())[0] build = str(plot[u"data"][job][0]) @@ -213,6 +215,18 @@ def plot_hdrh_lat_by_percentile(plot, input_data): logging.error(u"No data.") return + desc = { + u"LAT0": u"No-load.", + u"PDR10": u"Low-load, 10% PDR.", + u"PDR50": u"Mid-load, 50% PDR.", + u"PDR90": u"High-load, 90% PDR.", + u"PDR": u"Full-load, 100% PDR.", + u"NDR10": u"Low-load, 10% NDR.", + u"NDR50": u"Mid-load, 50% NDR.", + u"NDR90": u"High-load, 90% NDR.", + u"NDR": u"Full-load, 100% NDR." + } + graphs = [ u"LAT0", u"PDR10", @@ -238,18 +252,6 @@ def plot_hdrh_lat_by_percentile(plot, input_data): logging.info(f" Generating the graph: {name_link}") - desc = { - u"LAT0": u"No-load.", - u"PDR10": u"Low-load, 10% PDR.", - u"PDR50": u"Mid-load, 50% PDR.", - u"PDR90": u"High-load, 90% PDR.", - u"PDR": u"Full-load, 100% PDR.", - u"NDR10": u"Low-load, 10% NDR.", - u"NDR50": u"Mid-load, 50% NDR.", - u"NDR90": u"High-load, 90% NDR.", - u"NDR": u"Full-load, 100% NDR." - } - fig = plgo.Figure() layout = deepcopy(plot[u"layout"]) diff --git a/resources/tools/presentation/specification.yaml b/resources/tools/presentation/specification.yaml index 32739e9b76..84a56cdf55 100644 --- a/resources/tools/presentation/specification.yaml +++ b/resources/tools/presentation/specification.yaml @@ -1755,13 +1755,13 @@ bgcolor: "rgba(255, 255, 255, 0)" bordercolor: "rgba(255, 255, 255, 0)" xaxis: - type: "log" + type: "linear" title: "<b>Percentile [%]</b>" titlefont: size: 14 autorange: False fixedrange: False - range: [1e-6, 3] + range: [0, 100] gridcolor: "rgb(230, 230, 230)" linecolor: "rgb(220, 220, 220)" linewidth: 1 @@ -1769,13 +1769,12 @@ showline: True showticklabels: True tickcolor: "rgb(220, 220, 220)" - tickvals: [1, 2, 1e1, 20, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8] - tickangle: 315 - ticktext: [0, 50, 90, 95, 99, 99.9, 99.99, 99.999, 99.9999, 99.99999, 99.999999] + tickvals: [0, 25, 50, 75, 100] + ticktext: [0, 25, 50, 75, 100] tickfont: size: 14 yaxis: - title: "<b>Packet Latency [uSec]</b>" + title: "<b>One-Way Latency per Direction [uSec]</b>" titlefont: size: 14 gridcolor: "rgb(230, 230, 230)" @@ -6580,7 +6579,7 @@ 'NF_DENSITY' and 'VHOST' and 'VXLAN' and - 'CHAIN' a + 'CHAIN' and 'IMIX' and '2T1C' and 'NDRPDR'" @@ -26895,6 +26894,7 @@ output-file-links: "{DIR[LAT,VPP]}/2n_skx.rst" target-links: "../../_static/vpp" data: "plot-vpp-hdrh-lat-2n-skx" + filter: "'2T1C' and 'NIC_Intel-XXV710'" layout: layout: "plot-hdrh-latency-by-percentile" @@ -26905,6 +26905,7 @@ output-file-links: "{DIR[LAT,VPP]}/3n_skx.rst" target-links: "../../_static/vpp" data: "plot-vpp-hdrh-lat-3n-skx" + filter: "'2T1C' and 'NIC_Intel-XXV710'" layout: layout: "plot-hdrh-latency-by-percentile" @@ -26915,6 +26916,7 @@ output-file-links: "{DIR[LAT,VPP]}/2n_clx.rst" target-links: "../../_static/vpp" data: "plot-vpp-hdrh-lat-2n-clx" + filter: "'2T1C' and 'NIC_Mellanox-CX556A'" layout: layout: "plot-hdrh-latency-by-percentile" @@ -26925,6 +26927,7 @@ output-file-links: "{DIR[LAT,VPP]}/3n_hsw.rst" target-links: "../../_static/vpp" data: "plot-vpp-hdrh-lat-3n-hsw" + filter: "'1T1C' and 'NIC_Intel-XL710'" layout: layout: "plot-hdrh-latency-by-percentile" @@ -26935,5 +26938,6 @@ output-file-links: "{DIR[LAT,VPP]}/3n_tsh.rst" target-links: "../../_static/vpp" data: "plot-vpp-hdrh-lat-3n-tsh" + filter: "'1T1C' and 'NIC_Intel-X520-DA2'" layout: layout: "plot-hdrh-latency-by-percentile" |