DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Bruce Richardson" <bruce.richardson@intel.com>, <dev@dpdk.org>
Cc: <techboard@dpdk.org>
Subject: Re: [dpdk-dev] Minutes of Technical Board Meeting, 2020-11-18
Date: Mon, 23 Nov 2020 10:30:52 +0100	[thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35C61442@smartserver.smartshare.dk> (raw)
In-Reply-To: <DM6PR11MB330899BE2BE4A963890FBC989AFD0@DM6PR11MB3308.namprd11.prod.outlook.com>


Here's my input as a developer of hardware appliances. It is my opinion, and as such may contradict the trend towards making DPDK a library, rather than a development kit.

> DPDK build configuration - future enhancements
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> There are multiple requests (sometimes controversial) for new abilities
> to add into DPDK build system.
> In particular, request from few different teams:
>   - add ability to enable/disable individual apps/libs
>   - override some build settings for specific libs/drivers

My wish list, in prioritized order:

1. The ability to remove features to reduce complexity - and thus the likelihood of bugs!

Remember to consider this in application context.

Background: Our previous firmware used the Linux kernel, and some loadable modules. We ran into a lot of extremely rare and unexpected cases where the Linux kernel network stack did something completely unusual, and our firmware needed to consider all these exceptional cases. This is one of the key reasons we switched to DPDK - the fast path libraries are clean and simple, and don't do anything we didn't ask them to do.

DPDK example: If support for segmented packets are considered "required" by DPDK libraries and drivers, is it also required for applications to support segmented packet? If the application doesn’t need segmented packets, can it safely assume that no DPDK libraries or drivers create segmented packets under any circumstances? If support for segmented packets is a compile time option, there is an implicit guarantee that they don't appear.

2. The ability to remove/tweak features to improve *application* performance in specific environments would be good.

E.g. removing support for multiple mbuf pools would free up an mbuf field (m->pool) for application use.
So would removing support for segmented packets (m->nb_segs, m->next).

Both of these modifications would also reduce complexity, although they would increase source code complexity in all the libraries and drivers needing to support a multidimensional matrix of features. (I highly doubt that all libraries support the combination of all features today... I remember having to argue strongly for the DPDK eBPF library to support reading data inside segmented packets.)

3. Removing cruft that has no effect on performance or similar, is "nice to have".

E.g. drivers for hardware that we do not use.

> As a first step to move forward - produce design doc of current build
> system.
> Discuss further enhancements based on that doc.

> While planning changes to the build system backward compatibility
> with 20.11 should be considered.

Backward compatibility is not a high priority for us. It is an extremely rare event for us to upgrade to a new version of any external software (Linux Kernel, DPDK and other libraries) or build tools, because we consider switching any of it to another version high effort (e.g. it requires extensive testing). In this perspective, having to change some details in the build system is a relatively small effort.

With this said, the documentation of each DPDK release should include a chapter describing what an application developer should do different than with the previous release. E.g. the Release Note enumerates the key modifications as bullet points, but it is not always obvious how that affects an application being developed. (DPDK generally has great documentation, but is somewhat lacking in this area.)

I know that ABI Stability is supposed to make much of this go away, but DPDK is clearly not there yet.

> AR to Bruce to create initial version of the DD.

The following may be scope creep, so just consider it me thinking out loud:

Consider a general design documents in the form of a "life of an mbuf" document, describing how mbufs are pre-allocated for driver RX descriptors, and then handed over to the application trough the receive function, and then possibly going through defragmentation and reordering libraries, and then handed over to another driver's transmit function, which uses the mbufs to set up TX descriptors, and after transmission frees the mbufs to their original pool, where they are ultimately allocated again by a driver to refill its RX descriptor pool.

The document can start off with the simple case with a single non-segmented, non-fragmented, in-order packet. And then it can be extended with variations, e.g. adding the description of segmented packets would explain how the m->nb_segs and m->next are being used when the packet is handled by the drivers and libraries.

In the context of being able to enable/disable libraries and features, the purpose of this document would be to help showing interdependencies.

Med venlig hilsen / kind regards
- Morten Brørup

  reply	other threads:[~2020-11-23  9:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 13:40 Ananyev, Konstantin
2020-11-23  9:30 ` Morten Brørup [this message]
2020-11-23 10:00   ` [dpdk-dev] [dpdk-techboard] " Thomas Monjalon
2020-11-23 11:16     ` Morten Brørup

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98CBD80474FA8B44BF855DF32C47DC35C61442@smartserver.smartshare.dk \
    --to=mb@smartsharesystems.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=techboard@dpdk.org \


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