From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91942A0A02 for ; Thu, 14 Jan 2021 01:20:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68537140D25; Thu, 14 Jan 2021 01:20:07 +0100 (CET) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mails.dpdk.org (Postfix) with ESMTP id 4087C140D24 for ; Thu, 14 Jan 2021 01:20:04 +0100 (CET) Received: by mail-lf1-f41.google.com with SMTP id s26so5458896lfc.8 for ; Wed, 13 Jan 2021 16:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7/rJtcyIuO/TQPO0VFGI9gBIHJuB+ZJp1jnBip+l564=; b=TBYKEAOPj/k6VSwblxTrwsyZrifw5SrTE6h9m2WLzUu8IY6BZFEa0f76be26XbaUWn P97k4Th8KRnLQpy2XZCMPfyE2pP/DNX4PORMohZo4Er1roF9kB+/lFycyk4m4XsfptBU A/wwkkYgVl7WGWRd9Hml8MTJlXBXKTg/C0CvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7/rJtcyIuO/TQPO0VFGI9gBIHJuB+ZJp1jnBip+l564=; b=Nf8Nv/tXSd9n8Ekh8/0whIT2grzCI0Dm3ARbAGY9joPPh+W7Fk4xLbC7VjzyfjF7Wy QIthd3rVNIRF9jQLQ562Llne195dOcha6CLTeDMi8+fq2kZTH/s0o0/hfHZOCLE3OtLj WnmplRCx5jI9u0eEkkYqGVi+bD08Kk8ciD5nXMhWfgou/reJWVTdkqLLRcqBAhJMNHiv i9rfuB9J+tdaiAF4oM5WKnQCZV/j/l3Xofjp1Z5luuTCswfcVlu5DXWgbhab2msofhFT 7B4VxqII/UowgeSsBgepNJMypFNirM78E/zqTZA16i+WzR5RFlRCsV8x353t2Qn5v/ep v+Sg== X-Gm-Message-State: AOAM5306a61+o6u/nHE2ujx4kbS1NErP0m1r1YfTDm2mKlC9NKe6VKyB Sc42GJgJn+p841bWGKD1VIqGrikuWaqIVKZIrS4QNw== X-Google-Smtp-Source: ABdhPJxK3yqiBtsgAWKSXkHsoQyRRiuC6w+0NtLc3fIOeYmW4ZdbD3dCC6I57CR9k5dLM4TG4dPD4CaU/LQJepGMQYw= X-Received: by 2002:a19:f203:: with SMTP id q3mr1907853lfh.166.1610583603756; Wed, 13 Jan 2021 16:20:03 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: David Liu Date: Wed, 13 Jan 2021 19:19:27 -0500 Message-ID: To: Ajit Khaparde Cc: ci@dpdk.org, dpdklab Content-Type: multipart/alternative; boundary="000000000000955eb705b8d13799" Subject: Re: [dpdk-ci] [DPDKLAB] 25G Broadcom NIC in Arm hardware X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Sender: "ci" --000000000000955eb705b8d13799 Content-Type: text/plain; charset="UTF-8" Hi Ajit, Thank you for helping out. We have it working on the x86, but not the Arm. Thanks, David On Wed, Jan 13, 2021 at 5:34 PM Ajit Khaparde wrote: > Hi David, > I will take a look. > Do you see similar issues on x86? I am asking because > even I would start with that to create a baseline and then > attempt on ARM. > > Thanks > Ajit > > On Wed, Jan 13, 2021 at 12:08 PM David Liu wrote: > >> Hi Ajit, >> >> We have a 25G Broadcom NIC that is installed on an Arm machine. >> And I am running into a problem when I try to run nic_single_core_perf on >> the NIC. >> Currently, we are using: Trex v2.86 and dts from >> http://git.dpdk.org/tools/dts/ >> All the NICs are up and running when testing. >> >> The problem is an error when I try to run the test case inside >> the nic_single_core_perf: >> >> TestNicSingleCorePerf: Test running at parameters: framesize: 64, >>> rxd/txd: 512 >>> 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 >>> dut.172.18.0.41: start >>> TestNicSingleCorePerf: Test Case test_perf_nic_single_core >>> Result ERROR: Traceback (most recent call last): >>> File "/opt/dts/framework/test_case.py", line 319, in _execute_test_case >>> case_obj() >>> File "tests/TestSuite_nic_single_core_perf.py", line 196, in >>> test_perf_nic_single_core >>> self.perf_test(self.nb_ports) >>> File "tests/TestSuite_nic_single_core_perf.py", line 270, in perf_test >>> _, packets_received = >>> self.tester.pktgen.measure_throughput(stream_ids=streams, >>> options=traffic_opt) >>> File "/opt/dts/framework/pktgen_base.py", line 245, in >>> measure_throughput >>> self._prepare_transmission(stream_ids=stream_ids) >>> File "/opt/dts/framework/pktgen_trex.py", line 778, in >>> _prepare_transmission >>> self._conn.reset(ports=self._ports) >>> File >>> "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", >>> line 51, in wrap2 >>> ret = f(*args, **kwargs) >>> File >>> "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py", >>> line 339, in reset >>> self.clear_stats(ports) >>> File >>> "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", >>> line 51, in wrap2 >>> ret = f(*args, **kwargs) >>> File >>> "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py", >>> line 1492, in clear_stats >>> self._clear_stats_common(ports, clear_global, clear_xstats) >>> File >>> "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/common/trex_client.py", >>> line 2876, in _clear_stats_common >>> raise TRexError(rc) >>> trex.common.trex_exceptions.TRexError: *** [RPC] - Failed to get server >>> response from tcp://172.18.0.40:4501 >> >> >> I also try to run TRex in stateless mode with./t-rex-64 -i --cfg >> /etc/trex_cfg.yaml and connect with ./trex-console >> >> Then start sending traffic with command >> >>> trex>start -f stl/imix.py >> >> >> But this will cause an error to turn off Trex. >> >> trex> >>> 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 >>> *** traceback follows *** >>> 1 0x561be173cf5a ./_t-rex-64(+0x19af5a) [0x561be173cf5a] >>> 2 0x7feea3ac0980 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980) >>> [0x7feea3ac0980] >>> 3 0x561be1a05a2a rte_delay_us_block + 106 >>> 4 0x561be16ce874 CCoreEthIF::send_burst(CCorePerPort*, unsigned >>> short, CVirtualIFPerSideStats*) + 3220 >>> 5 0x561be16abf57 CCoreEthIF::flush_tx_queue() + 31 >>> 6 0x561be171e3d9 >>> CNodeGenerator::handle_maintenance(CFlowGenListPerThread*) + 265 >>> 7 0x561be171f7ec CNodeGenerator::handle_flow_sync(CGenNode*, >>> CFlowGenListPerThread*, bool&) + 92 >>> 8 0x561be171fc98 CNodeGenerator::handle_slow_messages(unsigned >>> char, CGenNode*, CFlowGenListPerThread*, bool) + 184 >>> 9 0x561be16cb5f1 int CNodeGenerator::flush_file_realtime<23, >>> false>(double, double, CFlowGenListPerThread*, double&) + 881 >>> 10 0x561be1905212 TrexStatelessDpCore::start_scheduler() + 226 >>> 11 0x561be1883ae9 TrexDpCore::start() + 89 >>> 12 0x561be1714113 >>> CFlowGenListPerThread::start(std::__cxx11::basic_string>> std::char_traits, std::allocator >&, CPreviewMode&) + 115 >>> 13 0x561be16af8dd CGlobalTRex::run_in_core(unsigned char) + 487 >>> 14 0x561be16d11ad ./_t-rex-64(+0x12f1ad) [0x561be16d11ad] >>> 15 0x561be1a1dfaa eal_thread_loop + 426 >>> 16 0x7feea3ab56db /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) >>> [0x7feea3ab56db] >>> 17 0x7feea2a8571f clone + 63 >>> >>> *** addr2line information follows *** >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ??:0 >>> ' >> >> >> I believe if everything is working, this should not turn off trex but >> please correct me if I am wrong. >> I wonder if you have any suggestion of how I can approach this issue? >> >> Best, >> David >> >> >> --000000000000955eb705b8d13799 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ajit,

Thank you for helping out.

We have it working on the x86, but not the Arm.
=


Thanks,
David

<= div class=3D"gmail_quote">
On Wed, Jan= 13, 2021 at 5:34 PM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote:
Hi=C2=A0David,
I will take a = look.
Do you see similar issues on x86? I am asking because
even I would sta= rt with that to create a baseline and then
attempt on ARM.

Thanks
Ajit=

On Wed, Jan 13, 2021 at 12:08 PM David Liu <dliu@iol.unh.edu> wrote:
Hi Ajit,

We have a 25G Broad= com NIC that is installed on an Arm machine.
And=C2=A0I am running into a problem when I try to run = nic_single_core_perf on the NIC.
Currently, we are using: Trex v2.86 and dts from=C2=A0http://git.dpdk.org/tools/dts= /
All the NICs are up= and running when testing.

The problem is an error when I try to run the test case insi= de the=C2=A0nic_single_core_perf:

TestNicSingleCorePerf: Test running a= t parameters: framesize: 64, rxd/txd: 512
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0dut.172.18.0.41: x86_64-native-linuxapp-gcc/app/= dpdk-testpmd -l 32,33 -n 4 =C2=A0--file-prefix=3Ddpdk_15311_20210113190237 = =C2=A0 -a 0000:93:00.0 -a 0000:93:00.1 -- -i --portmask=3D0x3 --txd=3D512 -= -rxd=3D512 --nb-cores=3D1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0dut.172.18.0.41: start
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TestN= icSingleCorePerf: Test Case test_perf_nic_single_core Result ERROR: Traceba= ck (most recent call last):
=C2=A0 File "/opt/dts/framework/test_ca= se.py", line 319, in _execute_test_case
=C2=A0 =C2=A0 case_obj()=C2=A0 File "tests/TestSuite_nic_single_core_perf.py", line 196,= in test_perf_nic_single_core
=C2=A0 =C2=A0 self.perf_test(self.nb_ports= )
=C2=A0 File "tests/TestSuite_nic_single_core_perf.py", line = 270, in perf_test
=C2=A0 =C2=A0 _, packets_received =3D self.tester.pktg= en.measure_throughput(stream_ids=3Dstreams, options=3Dtraffic_opt)
=C2= =A0 File "/opt/dts/framework/pktgen_base.py", line 245, in measur= e_throughput
=C2=A0 =C2=A0 self._prepare_transmission(stream_ids=3Dstrea= m_ids)
=C2=A0 File "/opt/dts/framework/pktgen_trex.py", line 7= 78, in _prepare_transmission
=C2=A0 =C2=A0 self._conn.reset(ports=3Dself= ._ports)
=C2=A0 File "/opt/trex/v2.86/automation/trex_control_plane= /interactive/trex/common/trex_api_annotators.py", line 51, in wrap2=C2=A0 =C2=A0 ret =3D f(*args, **kwargs)
=C2=A0 File "/opt/trex/v2= .86/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py&q= uot;, line 339, in reset
=C2=A0 =C2=A0 self.clear_stats(ports)
=C2=A0= File "/opt/trex/v2.86/automation/trex_control_plane/interactive/trex/= common/trex_api_annotators.py", line 51, in wrap2
=C2=A0 =C2=A0 ret= =3D f(*args, **kwargs)
=C2=A0 File "/opt/trex/v2.86/automation/tre= x_control_plane/interactive/trex/stl/trex_stl_client.py", line 1492, i= n clear_stats
=C2=A0 =C2=A0 self._clear_stats_common(ports, clear_global= , clear_xstats)
=C2=A0 File "/opt/trex/v2.86/automation/trex_contro= l_plane/interactive/trex/common/trex_client.py", line 2876, in _clear_= stats_common
=C2=A0 =C2=A0 raise TRexError(rc)
trex.common.trex_excep= tions.TRexError: *** [RPC] - Failed to get server response from tcp://172.18.0.40:4501
<= /blockquote>
=
=

I also try to run=C2=A0TRex in stateless mode with./t-rex-64 -i --cfg /etc/trex_cfg.yaml=C2=A0and=C2=A0 connect with=C2=A0./trex-console

Then start send= ing traffic with command
trex>start -f stl/imix.py=C2=A0
=
=C2=A0
But this will cause an error to turn off Trex.

tr= ex>
2021-01-13 19:56:21 - [server][warning] =C2=A0- Server has been s= hutdown - cause: 'WATCHDOG: task 'Trex DP core 1' has not respo= nded for more than 1.00135 seconds - timeout is 1 seconds
*** traceback = follows ***
1 =C2=A0 =C2=A0 =C2=A0 0x561be173cf5a ./_t-rex-64(+0x19af5a)= [0x561be173cf5a]
2 =C2=A0 =C2=A0 =C2=A0 0x7feea3ac0980 /lib/x86_64-linu= x-gnu/libpthread.so.0(+0x12980) [0x7feea3ac0980]
3 =C2=A0 =C2=A0 =C2=A0 = 0x561be1a05a2a rte_delay_us_block + 106
4 =C2=A0 =C2=A0 =C2=A0 0x561be16= ce874 CCoreEthIF::send_burst(CCorePerPort*, unsigned short, CVirtualIFPerSi= deStats*) + 3220
5 =C2=A0 =C2=A0 =C2=A0 0x561be16abf57 CCoreEthIF::flush= _tx_queue() + 31
6 =C2=A0 =C2=A0 =C2=A0 0x561be171e3d9 CNodeGenerator::h= andle_maintenance(CFlowGenListPerThread*) + 265
7 =C2=A0 =C2=A0 =C2=A0 0= x561be171f7ec CNodeGenerator::handle_flow_sync(CGenNode*, CFlowGenListPerTh= read*, bool&) + 92
8 =C2=A0 =C2=A0 =C2=A0 0x561be171fc98 CNodeGenera= tor::handle_slow_messages(unsigned char, CGenNode*, CFlowGenListPerThread*,= bool) + 184
9 =C2=A0 =C2=A0 =C2=A0 0x561be16cb5f1 int CNodeGenerator::f= lush_file_realtime<23, false>(double, double, CFlowGenListPerThread*,= double&) + 881
10 =C2=A0 =C2=A0 =C2=A00x561be1905212 TrexStatelessD= pCore::start_scheduler() + 226
11 =C2=A0 =C2=A0 =C2=A00x561be1883ae9 Tre= xDpCore::start() + 89
12 =C2=A0 =C2=A0 =C2=A00x561be1714113 CFlowGenList= PerThread::start(std::__cxx11::basic_string<char, std::char_traits<ch= ar>, std::allocator<char> >&, CPreviewMode&) + 115
1= 3 =C2=A0 =C2=A0 =C2=A00x561be16af8dd CGlobalTRex::run_in_core(unsigned char= ) + 487
14 =C2=A0 =C2=A0 =C2=A00x561be16d11ad ./_t-rex-64(+0x12f1ad) [0x= 561be16d11ad]
15 =C2=A0 =C2=A0 =C2=A00x561be1a1dfaa eal_thread_loop + 42= 6
16 =C2=A0 =C2=A0 =C2=A00x7feea3ab56db /lib/x86_64-linux-gnu/libpthread= .so.0(+0x76db) [0x7feea3ab56db]
17 =C2=A0 =C2=A0 =C2=A00x7feea2a8571f cl= one + 63

*** addr2line information follows ***
??:0
??:0
??= :0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0<= br>??:0
??:0
??:0
??:0
??:0
'
=C2=A0
I believe if everything is wor= king, this should not turn off trex but please correct me if I am wrong.
I wonder if you have any suggestion of how I can approach=C2=A0= this issue?

Best,
= David

=
--000000000000955eb705b8d13799--