DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Ixgbe empty queue stats
@ 2021-02-24 13:24 Trevor Highland
  2021-02-27 18:45 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Highland @ 2021-02-24 13:24 UTC (permalink / raw)
  To: users

Hi all,

We have a DPDK application that’s running using 82599 NICs with the ixgbe driver. Our application makes use of RSS and runs with 8 or 16 queues depending on the environment. I was reviewing xstats from a DPDK application that we run, and found that ‘rx_qN_packets’ was 0 for all queues except queue 0.

I was able to reproduce this using dpdk-testpmd from the 20.11 release. Additionally I used the ethregs tool and confirmed that the registers are indeed 0. Is this expected behavior, and is there a proper way to get per queue packet counts from hardware registers?

./dpdk-testpmd -l 0-8 -n 4 -m5120,5120 -- -i  --forward-mode=rxonly --rxq=2 --txq=2 --portmask=0xc --rxd=65536 --nb-cores=8 --rss-ip

I then run ‘start’

Truncated uput from ‘show port xstats all’
###### NIC extended statistics for port 2
rx_good_packets: 480147
tx_good_packets: 0
rx_good_bytes: 558567639
tx_good_bytes: 0
rx_missed_errors: 602293
rx_errors: 0
tx_errors: 0
rx_mbuf_allocation_errors: 0
rx_q0_packets: 480147
rx_q0_bytes: 558567639
rx_q0_errors: 0
rx_q1_packets: 0
###### NIC extended statistics for port 3
rx_good_packets: 419519
tx_good_packets: 0
rx_good_bytes: 438407091
tx_good_bytes: 0
rx_missed_errors: 441020
rx_errors: 0
tx_errors: 0
rx_mbuf_allocation_errors: 0
rx_q0_packets: 419519
rx_q0_bytes: 438407091
rx_q0_errors: 0
rx_q1_packets: 0
rx_q1_bytes: 0
rx_q1_errors: 0

Output at shutdown which shows both queues servicing packets
  ------- Forward Stats for RX Port= 2/Queue= 0 -> TX Port= 3/Queue= 0 -------
  RX-packets: 116794         TX-packets: 0              TX-dropped: 0

  ------- Forward Stats for RX Port= 3/Queue= 0 -> TX Port= 2/Queue= 0 -------
  RX-packets: 156055         TX-packets: 0              TX-dropped: 0

  ------- Forward Stats for RX Port= 2/Queue= 1 -> TX Port= 3/Queue= 1 -------
  RX-packets: 607297         TX-packets: 0              TX-dropped: 0

  ------- Forward Stats for RX Port= 3/Queue= 1 -> TX Port= 2/Queue= 1 -------
  RX-packets: 451971         TX-packets: 0              TX-dropped: 0

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

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

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

Thanks,
Trevor

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Ixgbe empty queue stats
  2021-02-24 13:24 [dpdk-users] Ixgbe empty queue stats Trevor Highland
@ 2021-02-27 18:45 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2021-02-27 18:45 UTC (permalink / raw)
  To: Trevor Highland; +Cc: users

On Wed, 24 Feb 2021 13:24:37 +0000
Trevor Highland <tsh@vectra.ai> wrote:

> Hi all,
> 
> We have a DPDK application that’s running using 82599 NICs with the ixgbe driver. Our application makes use of RSS and runs with 8 or 16 queues depending on the environment. I was reviewing xstats from a DPDK application that we run, and found that ‘rx_qN_packets’ was 0 for all queues except queue 0.
> 
> I was able to reproduce this using dpdk-testpmd from the 20.11 release. Additionally I used the ethregs tool and confirmed that the registers are indeed 0. Is this expected behavior, and is there a proper way to get per queue packet counts from hardware registers?
> 
> ./dpdk-testpmd -l 0-8 -n 4 -m5120,5120 -- -i  --forward-mode=rxonly --rxq=2 --txq=2 --portmask=0xc --rxd=65536 --nb-cores=8 --rss-ip
> 

Are you sending packets with different IP addresses?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-27 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 13:24 [dpdk-users] Ixgbe empty queue stats Trevor Highland
2021-02-27 18:45 ` Stephen Hemminger

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).