DPDK usage discussions
 help / color / mirror / Atom feed
From: "Vic Wang(BJ-RD)" <VicWang@zhaoxin.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] it seems something wrong in pktgen .
Date: Sat, 29 Dec 2018 07:14:35 +0000	[thread overview]
Message-ID: <16587cc6ccff461b972d20d29730cc5f@zhaoxin.com> (raw)

Hi,

I use dpdk and pktgen-dpdk to test the performance of the platform performance .
The system configuration as follows:
Senders: Intel i5-6600k with two sumsang ddr4 drams (dual channel), one intel XL710 40G NIC.
Command: ./pktgen -C 0xf -n 2 -- -P -m "2.0,3.1"
The packet size set to 64 bytes.

Receiver: Intel i5-660k with two sumsang ddr4 drams(dual channel), one intel XL710 40G NIC.
Command: ./testpmd -C 0xf -n2 -- -i --portmask=0x3 --coremask=0xc
However, when starting to forward the packets, the pktgen will stop after sending severl thousands packets .

I trace the question, and I found it seems something wrong in pktgen program.
In the pktgen_send_pkts, if the pg_pktmbuf_alloc_bulk fails because nobufs, it can't goto the pktgen_send_burst forever. So it can't free mbuf in the pktgen_send_burst , and it will be failed every loop when pg_pktmbuf_alloc_bulk.
>static __inline__ void
>pktgen_send_pkts(port_info_t *info, uint16_t qid, struct rte_mempool *mp)
>{
>     uint32_t flags;
>     int rc = 0;
>
>     flags = rte_atomic32_read(&info->port_flags);
>
>     if (flags & SEND_FOREVER) {
>            rc = pg_pktmbuf_alloc_bulk(mp,
>                                    info->q[qid].tx_mbufs.m_table,
>                                    info->tx_burst);
>            if (rc == 0) {
>                   info->q[qid].tx_mbufs.len = info->tx_burst;
>                   info->q[qid].tx_cnt += info->tx_burst;
>
>                   pktgen_send_burst(info, qid);
>            }
>     } else {
>            int64_t txCnt;

This is my thought, please comment me.

Best Regards!
VicWang



?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

             reply	other threads:[~2018-12-29  7:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-29  7:14 Vic Wang(BJ-RD) [this message]
2018-12-29 15:54 ` Wiles, Keith

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=16587cc6ccff461b972d20d29730cc5f@zhaoxin.com \
    --to=vicwang@zhaoxin.com \
    --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).