test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Chen, BoX C" <box.c.chen@intel.com>
To: "Chen, BoX C" <box.c.chen@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] tests/TestSuite_telemetry: Adapting python3 code rules
Date: Tue, 19 Jan 2021 08:36:59 +0000	[thread overview]
Message-ID: <DM6PR11MB309913D2207A9607B32C640DD9A30@DM6PR11MB3099.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20210119083220.16249-1-box.c.chen@intel.com>

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

Tested-by: ChenBo <box.c.chen@intel.com>

Regards,
Chen Bo

> -----Original Message-----
> From: ChenBo <box.c.chen@intel.com>
> Sent: January 19, 2021 16:32
> To: dts@dpdk.org
> Cc: Chen, BoX C <box.c.chen@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_telemetry: Adapting python3 code


[-- Attachment #2: TestTelemetry.log --]
[-- Type: application/octet-stream, Size: 16913 bytes --]

19/01/2021 16:25:28                            dts: 
TEST SUITE : TestTelemetry
19/01/2021 16:25:28                            dts: NIC :        fortville_spirit
19/01/2021 16:25:28              dut.10.240.183.77: 
19/01/2021 16:25:28                         tester: 
19/01/2021 16:25:28              dut.10.240.183.77: rm -f /root/dpdk/dpdk_telemetry_client.py;cp -f /root/dpdk/usertools/dpdk-telemetry-client.py /root/dpdk/dpdk_telemetry_client.py;sed -i -e 's/class Client:/class Client(object):/g' /root/dpdk/dpdk_telemetry_client.py
19/01/2021 16:25:28              dut.10.240.183.77: 
19/01/2021 16:25:29              dut.10.240.183.77: scp -v /home/chenbo/fvl40g_dts/output/telemetry/query_tool.py root@10.240.183.77:/root/dpdk
19/01/2021 16:25:31                  TestTelemetry: Test Case test_basic_connection Begin
19/01/2021 16:25:31              dut.10.240.183.77: 
19/01/2021 16:25:31                         tester: 
19/01/2021 16:25:31              dut.10.240.183.77: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2 -n 4 -a 0000:0a:00.0 -a 0000:0a:00.1 --file-prefix=dpdk_15632_20210119162509  --telemetry -- -i 
19/01/2021 16:25:32              dut.10.240.183.77: EAL: Detected 40 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/dpdk_15632_20210119162509/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL:   using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:0a:00.0 (socket 0)
EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:0a:00.1 (socket 0)
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
Port 0: 68:05:CA:30:68:70
Configuring Port 1 (socket 0)
Port 1: 68:05:CA:30:68:71
Checking link statuses...
Done
19/01/2021 16:25:42              dut.10.240.183.77: start
19/01/2021 16:25:42              dut.10.240.183.77: 
io packet forwarding - ports=2 - cores=1 - streams=2 - NUMA support enabled, MP allocation mode: native
Logical Core 2 (socket 0) forwards packets on 2 streams:
  RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
  RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=2
  port 0: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x0 Tx offloads=0x10000
    RX queue: 0
      RX desc=2048 - RX free threshold=32
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=1024 - TX free threshold=32
      TX threshold registers: pthresh=32 hthresh=0  wthresh=0
      TX offloads=0x10000 - TX RS bit threshold=32
  port 1: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x0 Tx offloads=0x10000
    RX queue: 0
      RX desc=2048 - RX free threshold=32
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=1024 - TX free threshold=32
      TX threshold registers: pthresh=32 hthresh=0  wthresh=0
      TX offloads=0x10000 - TX RS bit threshold=32
19/01/2021 16:25:42              dut.10.240.183.77: sed -i 's/self.socket.send_fd.connect("\/var\/run\/dpdk\/.*\/telemetry")/self.socket.send_fd.connect("\/var\/run\/dpdk\/dpdk_15632_20210119162509\/telemetry")/g' /root/dpdk/usertools/dpdk-telemetry-client.py
19/01/2021 16:25:42              dut.10.240.183.77: 
19/01/2021 16:25:43              dut.10.240.183.77: sed -i 's/self.socket.send_fd.connect("\/var\/run\/dpdk\/.*\/telemetry")/self.socket.send_fd.connect("\/var\/run\/dpdk\/dpdk_15632_20210119162509\/telemetry")/g' /root/dpdk/dpdk_telemetry_client.py
19/01/2021 16:25:43              dut.10.240.183.77: 
19/01/2021 16:25:48              dut.10.240.183.77: ps aux | grep -i 'dpdk-telemetry-client.py' | grep -v grep | awk {'print $2'}
19/01/2021 16:25:48              dut.10.240.183.77: 
19/01/2021 16:25:49              dut.10.240.183.77: stop
19/01/2021 16:25:49              dut.10.240.183.77: 
Telling cores to ...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 0  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.
19/01/2021 16:25:49              dut.10.240.183.77: quit
19/01/2021 16:25:50              dut.10.240.183.77: 

Stopping port 0...
Stopping ports...
Done

Stopping port 1...
Stopping ports...

Port 0: link state change event
Done

Shutting down port 0...
Closing ports...
Port 0 is closed
Invalid port_id=0
Done

Shutting down port 1...
Closing ports...
Port 1 is closed
Invalid port_id=1
Done

Bye...
19/01/2021 16:25:50              dut.10.240.183.77: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2 -n 4 -a 0000:0a:00.0 -a 0000:0a:00.1 --file-prefix=dpdk_15632_20210119162509  --telemetry -- -i 
19/01/2021 16:25:51              dut.10.240.183.77: EAL: Detected 40 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/dpdk_15632_20210119162509/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL:   using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:0a:00.0 (socket 0)
EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:0a:00.1 (socket 0)
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
Port 0: 68:05:CA:30:68:70
Configuring Port 1 (socket 0)
Port 1: 68:05:CA:30:68:71
Checking link statuses...
Done
19/01/2021 16:26:01              dut.10.240.183.77: start
19/01/2021 16:26:01              dut.10.240.183.77: 
io packet forwarding - ports=2 - cores=1 - streams=2 - NUMA support enabled, MP allocation mode: native
Logical Core 2 (socket 0) forwards packets on 2 streams:
  RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
  RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=2
  port 0: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x0 Tx offloads=0x10000
    RX queue: 0
      RX desc=2048 - RX free threshold=32
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=1024 - TX free threshold=32
      TX threshold registers: pthresh=32 hthresh=0  wthresh=0
      TX offloads=0x10000 - TX RS bit threshold=32
  port 1: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x0 Tx offloads=0x10000
    RX queue: 0
      RX desc=2048 - RX free threshold=32
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=1024 - TX free threshold=32
      TX threshold registers: pthresh=32 hthresh=0  wthresh=0
      TX offloads=0x10000 - TX RS bit threshold=32
19/01/2021 16:26:01              dut.10.240.183.77: cd /root/dpdk;chmod 777 query_tool.py;python3 query_tool.py -c 1 -j /root/dpdk/metric.json
19/01/2021 16:26:04              dut.10.240.183.77: Options Menu
[1] Send for Metrics for all ports
Unregister client
Get metrics done
19/01/2021 16:26:05              dut.10.240.183.77: scp -v root@10.240.183.77:/root/dpdk/metric.json /home/chenbo/fvl40g_dts/output/telemetry/metric.json
19/01/2021 16:26:06                  TestTelemetry: {0: {'mac_local_errors': 0,
     'mac_remote_errors': 0,
     'rx_broadcast_packets': 0,
     'rx_crc_errors': 0,
     'rx_dropped_packets': 0,
     'rx_error_bytes': 0,
     'rx_errors': 0,
     'rx_flow_director_atr_match_packets': 0,
     'rx_flow_director_sb_match_packets': 0,
     'rx_fragmented_errors': 0,
     'rx_good_bytes': 332,
     'rx_good_packets': 4,
     'rx_illegal_byte_errors': 0,
     'rx_jabber_errors': 0,
     'rx_length_errors': 0,
     'rx_low_power_idle_count': 0,
     'rx_low_power_idle_status': 0,
     'rx_mac_short_dropped': 0,
     'rx_mbuf_allocation_errors': 0,
     'rx_missed_errors': 0,
     'rx_multicast_packets': 4,
     'rx_oversize_errors': 0,
     'rx_priority0_xoff_packets': 0,
     'rx_priority0_xon_packets': 0,
     'rx_priority1_xoff_packets': 0,
     'rx_priority1_xon_packets': 0,
     'rx_priority2_xoff_packets': 0,
     'rx_priority2_xon_packets': 0,
     'rx_priority3_xoff_packets': 0,
     'rx_priority3_xon_packets': 0,
     'rx_priority4_xoff_packets': 0,
     'rx_priority4_xon_packets': 0,
     'rx_priority5_xoff_packets': 0,
     'rx_priority5_xon_packets': 0,
     'rx_priority6_xoff_packets': 0,
     'rx_priority6_xon_packets': 0,
     'rx_priority7_xoff_packets': 0,
     'rx_priority7_xon_packets': 0,
     'rx_q0_bytes': 0,
     'rx_q0_errors': 0,
     'rx_q0_packets': 0,
     'rx_size_1024_to_1522_packets': 0,
     'rx_size_128_to_255_packets': 0,
     'rx_size_1523_to_max_packets': 0,
     'rx_size_256_to_511_packets': 0,
     'rx_size_512_to_1023_packets': 0,
     'rx_size_64_packets': 0,
     'rx_size_65_to_127_packets': 4,
     'rx_undersized_errors': 0,
     'rx_unicast_packets': 0,
     'rx_unknown_protocol_packets': 4,
     'rx_xoff_packets': 0,
     'rx_xon_packets': 0,
     'tx_broadcast_packets': 0,
     'tx_dropped_packets': 0,
     'tx_errors': 0,
     'tx_good_bytes': 0,
     'tx_good_packets': 0,
     'tx_link_down_dropped': 0,
     'tx_low_power_idle_count': 0,
     'tx_low_power_idle_status': 0,
     'tx_multicast_packets': 0,
     'tx_priority0_xoff_packets': 0,
     'tx_priority0_xon_packets': 0,
     'tx_priority0_xon_to_xoff_packets': 0,
     'tx_priority1_xoff_packets': 0,
     'tx_priority1_xon_packets': 0,
     'tx_priority1_xon_to_xoff_packets': 0,
     'tx_priority2_xoff_packets': 0,
     'tx_priority2_xon_packets': 0,
     'tx_priority2_xon_to_xoff_packets': 0,
     'tx_priority3_xoff_packets': 0,
     'tx_priority3_xon_packets': 0,
     'tx_priority3_xon_to_xoff_packets': 0,
     'tx_priority4_xoff_packets': 0,
     'tx_priority4_xon_packets': 0,
     'tx_priority4_xon_to_xoff_packets': 0,
     'tx_priority5_xoff_packets': 0,
     'tx_priority5_xon_packets': 0,
     'tx_priority5_xon_to_xoff_packets': 0,
     'tx_priority6_xoff_packets': 0,
     'tx_priority6_xon_packets': 0,
     'tx_priority6_xon_to_xoff_packets': 0,
     'tx_priority7_xoff_packets': 0,
     'tx_priority7_xon_packets': 0,
     'tx_priority7_xon_to_xoff_packets': 0,
     'tx_q0_bytes': 0,
     'tx_q0_packets': 0,
     'tx_size_1024_to_1522_packets': 0,
     'tx_size_128_to_255_packets': 0,
     'tx_size_1523_to_max_packets': 0,
     'tx_size_256_to_511_packets': 0,
     'tx_size_512_to_1023_packets': 0,
     'tx_size_64_packets': 0,
     'tx_size_65_to_127_packets': 0,
     'tx_unicast_packets': 0,
     'tx_xoff_packets': 0,
     'tx_xon_packets': 0},
 1: {'mac_local_errors': 0,
     'mac_remote_errors': 0,
     'rx_broadcast_packets': 0,
     'rx_crc_errors': 0,
     'rx_dropped_packets': 0,
     'rx_error_bytes': 0,
     'rx_errors': 0,
     'rx_flow_director_atr_match_packets': 0,
     'rx_flow_director_sb_match_packets': 0,
     'rx_fragmented_errors': 0,
     'rx_good_bytes': 332,
     'rx_good_packets': 4,
     'rx_illegal_byte_errors': 0,
     'rx_jabber_errors': 0,
     'rx_length_errors': 0,
     'rx_low_power_idle_count': 0,
     'rx_low_power_idle_status': 0,
     'rx_mac_short_dropped': 0,
     'rx_mbuf_allocation_errors': 0,
     'rx_missed_errors': 0,
     'rx_multicast_packets': 4,
     'rx_oversize_errors': 0,
     'rx_priority0_xoff_packets': 0,
     'rx_priority0_xon_packets': 0,
     'rx_priority1_xoff_packets': 0,
     'rx_priority1_xon_packets': 0,
     'rx_priority2_xoff_packets': 0,
     'rx_priority2_xon_packets': 0,
     'rx_priority3_xoff_packets': 0,
     'rx_priority3_xon_packets': 0,
     'rx_priority4_xoff_packets': 0,
     'rx_priority4_xon_packets': 0,
     'rx_priority5_xoff_packets': 0,
     'rx_priority5_xon_packets': 0,
     'rx_priority6_xoff_packets': 0,
     'rx_priority6_xon_packets': 0,
     'rx_priority7_xoff_packets': 0,
     'rx_priority7_xon_packets': 0,
     'rx_q0_bytes': 0,
     'rx_q0_errors': 0,
     'rx_q0_packets': 0,
     'rx_size_1024_to_1522_packets': 0,
     'rx_size_128_to_255_packets': 0,
     'rx_size_1523_to_max_packets': 0,
     'rx_size_256_to_511_packets': 0,
     'rx_size_512_to_1023_packets': 0,
     'rx_size_64_packets': 0,
     'rx_size_65_to_127_packets': 4,
     'rx_undersized_errors': 0,
     'rx_unicast_packets': 0,
     'rx_unknown_protocol_packets': 4,
     'rx_xoff_packets': 0,
     'rx_xon_packets': 0,
     'tx_broadcast_packets': 0,
     'tx_dropped_packets': 0,
     'tx_errors': 0,
     'tx_good_bytes': 0,
     'tx_good_packets': 0,
     'tx_link_down_dropped': 0,
     'tx_low_power_idle_count': 0,
     'tx_low_power_idle_status': 0,
     'tx_multicast_packets': 0,
     'tx_priority0_xoff_packets': 0,
     'tx_priority0_xon_packets': 0,
     'tx_priority0_xon_to_xoff_packets': 0,
     'tx_priority1_xoff_packets': 0,
     'tx_priority1_xon_packets': 0,
     'tx_priority1_xon_to_xoff_packets': 0,
     'tx_priority2_xoff_packets': 0,
     'tx_priority2_xon_packets': 0,
     'tx_priority2_xon_to_xoff_packets': 0,
     'tx_priority3_xoff_packets': 0,
     'tx_priority3_xon_packets': 0,
     'tx_priority3_xon_to_xoff_packets': 0,
     'tx_priority4_xoff_packets': 0,
     'tx_priority4_xon_packets': 0,
     'tx_priority4_xon_to_xoff_packets': 0,
     'tx_priority5_xoff_packets': 0,
     'tx_priority5_xon_packets': 0,
     'tx_priority5_xon_to_xoff_packets': 0,
     'tx_priority6_xoff_packets': 0,
     'tx_priority6_xon_packets': 0,
     'tx_priority6_xon_to_xoff_packets': 0,
     'tx_priority7_xoff_packets': 0,
     'tx_priority7_xon_packets': 0,
     'tx_priority7_xon_to_xoff_packets': 0,
     'tx_q0_bytes': 0,
     'tx_q0_packets': 0,
     'tx_size_1024_to_1522_packets': 0,
     'tx_size_128_to_255_packets': 0,
     'tx_size_1523_to_max_packets': 0,
     'tx_size_256_to_511_packets': 0,
     'tx_size_512_to_1023_packets': 0,
     'tx_size_64_packets': 0,
     'tx_size_65_to_127_packets': 0,
     'tx_unicast_packets': 0,
     'tx_xoff_packets': 0,
     'tx_xon_packets': 0}}
19/01/2021 16:26:21              dut.10.240.183.77: 
19/01/2021 16:26:21              dut.10.240.183.77: stop
19/01/2021 16:26:22              dut.10.240.183.77: 
Telling cores to ...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 0  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.
19/01/2021 16:26:22              dut.10.240.183.77: quit
19/01/2021 16:26:22              dut.10.240.183.77: 

Stopping port 0...
Stopping ports...
Done

Stopping port 1...
Stopping ports...

Port 0: link state change event
Done

Shutting down port 0...
Closing ports...

Port 1: link state change event
Port 0 is closed
Invalid port_id=0
Done

Shutting down port 1...
Closing ports...
Port 1 is closed
Invalid port_id=1
Done

Bye...
19/01/2021 16:26:22                  TestTelemetry: Test Case test_basic_connection Result PASSED:
19/01/2021 16:26:22                            dts: 
TEST SUITE ENDED: TestTelemetry

  reply	other threads:[~2021-01-19  8:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19  8:32 ChenBo
2021-01-19  8:36 ` Chen, BoX C [this message]
2021-01-19  9:13   ` Zhao, HaiyangX
2021-01-21  8:24 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR11MB309913D2207A9607B32C640DD9A30@DM6PR11MB3099.namprd11.prod.outlook.com \
    --to=box.c.chen@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).