From: Bruce Richardson <bruce.richardson@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: Mohammed Hawari <mohammed@hawari.fr>, <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 1/1] build: allow disabling libs
Date: Thu, 15 Jun 2023 09:42:58 +0100 [thread overview]
Message-ID: <ZIrPEvhdD+A2ljRp@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <20230614120945.3e386d16@hermes.local>
On Wed, Jun 14, 2023 at 12:09:51PM -0700, Stephen Hemminger wrote:
> On Fri, 18 Sep 2020 14:57:50 +0100
> Bruce Richardson <bruce.richardson@intel.com> wrote:
>
> > On Fri, Sep 18, 2020 at 02:54:21PM +0200, Mohammed Hawari wrote:
> > > Hello Bruce,
> > >
> > > Thanks for the quick response, see inline
> > >
> > > Best regards,
> > >
> > > Mohammed
> > >
> > > > On 18 Sep 2020, at 13:43, Bruce Richardson <bruce.richardson@intel.com> wrote:
> > > >
> > > > On Fri, Sep 18, 2020 at 10:49:23AM +0200, Mohammed Hawari wrote:
> > > >> Similarly to the disable_drivers option, the disable_libs option is
> > > >> introduced. This allows to selectively disable the build of elements
> > > >> in libs to speed-up the build process.
> > > >>
> > > >> Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
> > > >> ---
> > > >
> > > > While I don't particularly like allowing libs to be enabled and disabled
> > > > since it complicates the build, I can see why it's necessary. This is an
> > > > area that does need some discussion, as I believe others have some opinions
> > > > in this area too.
> > > >
> > > > However, for now, some additional thoughts, both on this patch and in
> > > > general:
> > > >
> > > > 1. I see you included disabling apps if their required libs are not
> > > > available. What about the drivers though?
> > > To my understanding, in the current code, the drivers/meson.build file already
> > > does that check with:
> > >
> > > foreach d:deps
> > > if not is_variable('shared_rte_' + d)
> > > build = false
> > >
> >
> > Yes, my mistake, I forgot that that was added as one driver could depend
> > upon another. :-(
> >
> > > > 2. A bigger issue is whether this is really what we want to do, guarantee a
> > > > passing build even if vast chunks of DPDK are actually enabled? I'd tend
> > > > towards "no" in this case, and I'd rather see disabling of libs more
> > > > constrained.
> > > > 3. To this end, I think I'd rather see us maintain a set of libs which are
> > > > allowed to be disabled, and prevent the rest from being so. For example,
> > > > it makes no sense in DPDK to disable the EAL or mempool libs, since nothing
> > > > will build, while the bitrate_stats or latency_stats libs could likely
> > > > be disabled with little or no impact.
> > > I tend to agree with that more structured approach, but I am going to wait until
> > > we get some more thoughts from the community before starting that work.
> > >
> >
> > That seems a wise approach. If there is no consensus after a while here, it
> > probably needs to go to the technical board.
>
>
> Marking current patch as "Changes requested".
> Assume that if someone wants to go further then and propose a more
> targeted build setting. Something like minimal??
The more targetted approach has been implemented and can constantly be
improved upon. We can already disable a set of libraries, with only those
validated as being ok to disable on that list. Therefore, I think this
patch can just be rejected as obsolete. Any additional work in this area
should be:
* increasing list of optional libs
* looking again at adding an "enable_libs" flag. I was against this
previously, but now think it's time may have come!
/Bruce
next prev parent reply other threads:[~2023-06-15 8:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 8:49 [dpdk-dev] [PATCH 0/1] " Mohammed Hawari
2020-09-18 8:49 ` [dpdk-dev] [PATCH 1/1] " Mohammed Hawari
2020-09-18 11:43 ` Bruce Richardson
2020-09-18 12:54 ` Mohammed Hawari
2020-09-18 13:57 ` Bruce Richardson
2023-06-14 19:09 ` Stephen Hemminger
2023-06-15 8:42 ` Bruce Richardson [this message]
2023-06-15 15:43 ` David Marchand
2023-06-15 16:07 ` Bruce Richardson
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=ZIrPEvhdD+A2ljRp@bricha3-MOBL.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=mohammed@hawari.fr \
--cc=stephen@networkplumber.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).