<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi David,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I will take a look.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Do you see similar issues on x86? I am asking because</div><div class="gmail_default" style="font-family:tahoma,sans-serif">even I would start with that to create a baseline and then</div><div class="gmail_default" style="font-family:tahoma,sans-serif">attempt on ARM.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Ajit</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 13, 2021 at 12:08 PM David Liu <<a href="mailto:dliu@iol.unh.edu">dliu@iol.unh.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><font face="arial, sans-serif">Hi Ajit,</font><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">We have a 25G Broadcom NIC that is installed on an Arm machine.</font></div><div><font face="arial, sans-serif">And I am running into a problem when I try to run nic_single_core_perf on the NIC.</font></div><div><font face="arial, sans-serif">Currently, we are using: Trex v2.86 and dts from <a href="http://git.dpdk.org/tools/dts/" rel="nofollow" style="color:rgb(0,82,204);text-decoration-line:none" target="_blank">http://git.dpdk.org/tools/dts/</a></font></div><div><font face="arial, sans-serif">All the NICs are up and running when testing.</font></div><div><div></div><div></div></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The problem is an error when I try to run the test case inside the nic_single_core_perf:</font></div><div><font face="arial, sans-serif"><br></font></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="arial, sans-serif">TestNicSingleCorePerf: Test running at parameters: framesize: 64, rxd/txd: 512<br>               dut.172.18.0.41: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32,33 -n 4  --file-prefix=dpdk_15311_20210113190237   -a 0000:93:00.0 -a 0000:93:00.1 -- -i --portmask=0x3 --txd=512 --rxd=512 --nb-cores=1<br>               dut.172.18.0.41: start<br>         TestNicSingleCorePerf: Test Case test_perf_nic_single_core Result ERROR: Traceback (most recent call last):<br>  File "/opt/dts/framework/test_case.py", line 319, in _execute_test_case<br>    case_obj()<br>  File "tests/TestSuite_nic_single_core_perf.py", line 196, in test_perf_nic_single_core<br>    self.perf_test(self.nb_ports)<br>  File "tests/TestSuite_nic_single_core_perf.py", line 270, in perf_test<br>    _, packets_received = self.tester.pktgen.measure_throughput(stream_ids=streams, options=traffic_opt)<br>  File "/opt/dts/framework/pktgen_base.py", line 245, in measure_throughput<br>    self._prepare_transmission(stream_ids=stream_ids)<br>  File "/opt/dts/framework/pktgen_trex.py", line 778, in _prepare_transmission<br>    self._conn.reset(ports=self._ports)<br>  File "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 51, in wrap2<br>    ret = f(*args, **kwargs)<br>  File "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py", line 339, in reset<br>    self.clear_stats(ports)<br>  File "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 51, in wrap2<br>    ret = f(*args, **kwargs)<br>  File "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py", line 1492, in clear_stats<br>    self._clear_stats_common(ports, clear_global, clear_xstats)<br>  File "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/common/trex_client.py", line 2876, in _clear_stats_common<br>    raise TRexError(rc)<br>trex.common.trex_exceptions.TRexError: *** [RPC] - Failed to get server response from tcp://<a href="http://172.18.0.40:4501" target="_blank">172.18.0.40:4501</a></font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote></blockquote><font face="arial, sans-serif"><br></font><div><font face="arial, sans-serif">I also try to run <span style="color:rgb(36,41,46)">TRex in stateless mode with</span><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)">./t-rex-64 -i --cfg /etc/trex_cfg.yaml</code><span style="color:rgb(36,41,46)"> and  connect with </span><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)">./trex-console</code></font></div><div><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif"><br></font></code></div><div><span style="color:rgb(36,41,46)"><font face="arial, sans-serif">Then start sending traffic with command</font></span></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif">trex>start -f stl/imix.py </font></code></blockquote><div><font face="arial, sans-serif"> </font></div><div><font face="arial, sans-serif">But this will cause an error to turn off Trex.</font></div></div><div><font face="arial, sans-serif"><br></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="arial, sans-serif">trex><br>2021-01-13 19:56:21 - [server][warning]  - Server has been shutdown - cause: 'WATCHDOG: task 'Trex DP core 1' has not responded for more than 1.00135 seconds - timeout is 1 seconds<br>*** traceback follows ***<br>1       0x561be173cf5a ./_t-rex-64(+0x19af5a) [0x561be173cf5a]<br>2       0x7feea3ac0980 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980) [0x7feea3ac0980]<br>3       0x561be1a05a2a rte_delay_us_block + 106<br>4       0x561be16ce874 CCoreEthIF::send_burst(CCorePerPort*, unsigned short, CVirtualIFPerSideStats*) + 3220<br>5       0x561be16abf57 CCoreEthIF::flush_tx_queue() + 31<br>6       0x561be171e3d9 CNodeGenerator::handle_maintenance(CFlowGenListPerThread*) + 265<br>7       0x561be171f7ec CNodeGenerator::handle_flow_sync(CGenNode*, CFlowGenListPerThread*, bool&) + 92<br>8       0x561be171fc98 CNodeGenerator::handle_slow_messages(unsigned char, CGenNode*, CFlowGenListPerThread*, bool) + 184<br>9       0x561be16cb5f1 int CNodeGenerator::flush_file_realtime<23, false>(double, double, CFlowGenListPerThread*, double&) + 881<br>10      0x561be1905212 TrexStatelessDpCore::start_scheduler() + 226<br>11      0x561be1883ae9 TrexDpCore::start() + 89<br>12      0x561be1714113 CFlowGenListPerThread::start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CPreviewMode&) + 115<br>13      0x561be16af8dd CGlobalTRex::run_in_core(unsigned char) + 487<br>14      0x561be16d11ad ./_t-rex-64(+0x12f1ad) [0x561be16d11ad]<br>15      0x561be1a1dfaa eal_thread_loop + 426<br>16      0x7feea3ab56db /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7feea3ab56db]<br>17      0x7feea2a8571f clone + 63<br><br>*** addr2line information follows ***<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>??:0<br>'</font></blockquote><div><font face="arial, sans-serif"> </font></div><div><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif">I believe if everything is working, this should not turn off trex but please correct me if I am wrong.</font></code></div><div><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif">I wonder if you have any suggestion of how I can approach this issue?</font></code></div><div><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif"><br></font></code></div><div><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif">Best,</font></code></div><div><code style="box-sizing:border-box;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><font face="arial, sans-serif">David</font></code></div><div><font face="arial, sans-serif"><br></font></div><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0.2em 0.4em;margin:0px;border-radius:6px;color:rgb(36,41,46)"><br></code></div></div>
</blockquote></div>