From: ankit bhardwaj <ankitbhrdwj27@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] Effect of batching done at NIC and in application
Date: Fri, 17 Mar 2017 12:49:22 +0530 [thread overview]
Message-ID: <CAC4R1nmwTw1ZE16x2RNcNnWOUdpMzQrYMF4Z7N3teXwfwyXfGg@mail.gmail.com> (raw)
Hi All,
I am using DPDK 16.07 for my use. NIC attached to my server is X520, which
is using IXGBE Driver. I am a bit confusion about the batching factor and
on what basis it is done.
In file "dpdk-16.07/drivers/net/ixgbe/ixgbe_rxtx.h" there are two macros -
#define RTE_PMD_IXGBE_TX_MAX_BURST 32
#define RTE_PMD_IXGBE_RX_MAX_BURST 32
which according to me are the batch size at NIC. RTE_PMD_IXGBE_TX_MAX_BURST
declares the batch size for transmitting and RTE_PMD_IXGBE_RX_MAX_BURST
declares the batch size for receiving.
And similarly in the examples, for ex: dpdk-16.07/examples/l2fwd/main.c we
are using BURST_SIZE
#define MAX_PKT_BURST 32.
Now the questions are -
Q1: Is my understanding correct about the batch size at NIC and batch size
at CPU ?
Q2: Why the batch size is 32 and not some other number, shouldn't we decide
the batch size depending on the machine configuration ? What are the
factors which should be used in deciding the batch size ? I am assuming
that latency/per packet is not an issue and we are interested in the
throughput.
Q3: If first part is not the batch size at NIC, how to add functionality
for that ?
Thanks
Ankit Bhardwaj
reply other threads:[~2017-03-17 7:19 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=CAC4R1nmwTw1ZE16x2RNcNnWOUdpMzQrYMF4Z7N3teXwfwyXfGg@mail.gmail.com \
--to=ankitbhrdwj27@gmail.com \
--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 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).