DPDK patches and discussions
 help / color / mirror / Atom feed
From: Tom Barbette <barbette@kth.se>
To: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: nd <nd@arm.com>, Alireza Farshin <farshin@kth.se>
Subject: Re: [dpdk-dev] Minutes of Technical Board Meeting, 2021-03-10
Date: Wed, 31 Mar 2021 10:52:58 +0200	[thread overview]
Message-ID: <d0beb3f2-37cd-b1a3-0a12-6c95582c18f1@kth.se> (raw)
In-Reply-To: <DBAPR08MB58140E39B06DB00DADA152B0987C9@DBAPR08MB5814.eurprd08.prod.outlook.com>

Le 31-03-21 à 02:44, Honnappa Nagarahalli a écrit :
> 	- Ability to tune the values of #defines
>     * Few prominent points discussed
> 	- This will result in #ifdefs in the code (for ex: in testpmd)
> 	- One option is for all the PMDs to document their configurable #defines in PMD specific header files. Having these distributed is much easier to search.
> 	- Can some of the existing #defines be converted to runtime configurations? For ex: RTE_MAX_LCORE? This might impact ABI.
>     * Bruce to think about converting the doc to a blog or an email on the mailing list. But soliciting feedback is most important.

One alternative path worth looking at is to encourage the use of LTO, 
and modify APIs so the configuration can be provided at linking time, 
and propagated by the compiler.

E.g. one can define rte_max_lcore as a weak constant symbol, equal to 
128. At linking time the user may provide a rte_max_lcore that is more 
tailored, and still, dynamic arrays[rte_max_lcore] will be allocatable 
on the .bss section, avoiding an indirection. The compiler will be able 
to optimize loops etc which is impossible with pure runtime configuration.

In packetmill.io we actually pushed this to the next level where the 
driver can completely change its behavior without recompiling DPDK 
itself and spawning ifdefs everywhere.

However the price is the slowiness of LTO...

My 2 cents.

Tom



  reply	other threads:[~2021-03-31  8:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31  0:44 Honnappa Nagarahalli
2021-03-31  8:52 ` Tom Barbette [this message]
2021-04-06 13:13   ` Morten Brørup
2021-04-07  0:47     ` Honnappa Nagarahalli
2021-04-07  7:11       ` Morten Brørup
2021-04-07  9:58         ` Bruce Richardson
2021-04-07 10:29           ` 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:
  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=d0beb3f2-37cd-b1a3-0a12-6c95582c18f1@kth.se \
    --to=barbette@kth.se \
    --cc=Honnappa.Nagarahalli@arm.com \
    --cc=dev@dpdk.org \
    --cc=farshin@kth.se \
    --cc=nd@arm.com \
    /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).