Report: Latency only 1C and prim NIC 09/24909/2
authorTibor Frank <tifrank@cisco.com>
Mon, 10 Feb 2020 16:23:58 +0000 (17:23 +0100)
committerTibor Frank <tifrank@cisco.com>
Mon, 10 Feb 2020 16:26:56 +0000 (16:26 +0000)
Change-Id: Ibb9f6ed27047ac2beca25d9462dc321cf73f7546
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_plots.py
resources/tools/presentation/specification.yaml

index 08cf1a9..51f3097 100644 (file)
@@ -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"])
 
index 32739e9..84a56cd 100644 (file)
         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
         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)"
            'NF_DENSITY' and
            'VHOST' and
            'VXLAN' and
-           'CHAIN' a
+           'CHAIN' and
            'IMIX' and
            '2T1C' and
            'NDRPDR'"
   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"
 
   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"
 
   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"
 
   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"
 
   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"