From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/ethdev Bug 1848] Using maximum RX descriptor causes 100% imiss
Date: Mon, 08 Dec 2025 10:06:52 +0000 [thread overview]
Message-ID: <bug-1848-3@http.bugs.dpdk.org/> (raw)
http://bugs.dpdk.org/show_bug.cgi?id=1848
Bug ID: 1848
Summary: Using maximum RX descriptor causes 100% imiss
Product: DPDK
Version: 22.11
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: canary.overflow@gmail.com
Target Milestone: ---
I have a server using the following setup:
NIC card:MT27800 (ConnectX-5)
DPDK version: 22.11
driver: mlx5_core
version: 5.7-1.0.2
firmware: 16.35.4506 (MT_0000000011)
Issue: 100% imiss was observed when I tried to use rx_desc=32768 (32768 is the
maximum supported by the NIC)
testpmd command:
dpdk-testpmd -l 1-10 -n 4 -a 0000:45:00.0,rxq_comp_en=1,rxq_pkt_pad_en=1 -– -i
–-max_pkt_len=4096 –-rxq=8 -–txq=8 --nb_cores=8 -–rxd=32768 -–enable_drop_en
–-enable_scatter
After tracing through the DPDK source code, I came across this code:
drivers/net/mlx5/mlx5_devx.c
/*
* For vectorized Rx, it must not be doubled in order to
* make cq_ci and rq_ci aligned.
*/
if (mlx5_rxq_check_vec_support(rxq_data) < 0)
cqe_n *= 2;
The above code doubles the amount of CQE for non-vectorized RX and I'm not sure
if this will affect other drivers or the NIC firmware. In addition, I also saw
a few functions where `cqe_n` was assigned to a uint16_t which will cause
overflow (e.g. rxq_sync_cq(), mlx5_rx_err_handle()).
I further confirmed that imiss is not 100% in vectorized mode (MTU=1500) but
100% imiss in non-vectorized mode (MTU=4096) where rx_desc=32768.
I have also tried upgrading my setup to use the latest version of DPDK
library(25.11) but same observations were made.
As I am not very familiar with the MLX5 driver, can someone assist to check if
the doubling of rx desc from 32768 to 65536 in non-vectorized mode will result
in other issues in the NIC firmware or driver?
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2025-12-08 10:06 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=bug-1848-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.