DPDK usage discussions
 help / color / mirror / Atom feed
From: "Ernesto Ruffini" <eruffini@outsys.org>
To: <users@dpdk.org>
Subject: Blocked rte_sched queue
Date: Wed, 7 May 2025 12:24:12 +0200	[thread overview]
Message-ID: <081c01dbbf3a$2d56c030$88044090$@outsys.org> (raw)

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

Hi,

We use DPDK 24.11.1 rte_sched library for shaping traffic, and it happens
that some queues, mainly low-bandwidth TCs, from time to time stop sending
traffic.

After investigating, we found that this happens when a large packet is
enqueued: if this is accepted and enqueued in the sched port, it might be
too big to be sent out, completely blocking the queue, as there is no
mechanism to get rid of that packet, even if it will never be dequeued.

 

In particular, in function grinder_credits_check_with_tc_ov(),
pipe_tc_credits are lower than pkt_len, making enough_credit always false,
so the packet is never dequeued.

 

This can be seen also using the qos_sched example, setting pipe tc rates to
6250 (50Kbps) on a 100Gbps nic: pipe_tc_credits will be 250, and any packet
larger that that will completely block the queue, and no other packets, even
small, will ever pass.

 

We could not find any solution other than preventing long packets to be
enqueued.

Is there any other way to prevent queues from blocking?

 

Thanks

 


[-- Attachment #2: Type: text/html, Size: 3359 bytes --]

                 reply	other threads:[~2025-05-15  6:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='081c01dbbf3a$2d56c030$88044090$@outsys.org' \
    --to=eruffini@outsys.org \
    --cc=users@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).