DPDK patches and discussions
 help / color / mirror / Atom feed
From: Konstantin Ananyev <konstantin.ananyev@huawei.com>
To: "Tummala, Sivaprasad" <Sivaprasad.Tummala@amd.com>,
	"Morten Brørup" <mb@smartsharesystems.com>,
	"Thomas Monjalon" <thomas@monjalon.net>,
	"Kevin Traynor" <ktraynor@redhat.com>,
	"David Marchand" <david.marchand@redhat.com>,
	"Yigit, Ferruh" <Ferruh.Yigit@amd.com>,
	"bruce.richardson@intel.com" <bruce.richardson@intel.com>,
	"konstantin.v.ananyev@yandex.ru" <konstantin.v.ananyev@yandex.ru>,
	"maxime.coquelin@redhat.com" <maxime.coquelin@redhat.com>,
	"Aaron Conole" <aconole@redhat.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] config/x86: config support for AMD EPYC processors
Date: Thu, 9 Nov 2023 16:43:59 +0000	[thread overview]
Message-ID: <749b9213446340ea994cbc175d101719@huawei.com> (raw)
In-Reply-To: <DM3PR12MB9286258E81843A1940EBE35986A8A@DM3PR12MB9286.namprd12.prod.outlook.com>



> Hi Konstantin, Morten,
> 
> > -----Original Message-----
> > From: Konstantin Ananyev <konstantin.ananyev@huawei.com>
> > Sent: Tuesday, November 7, 2023 8:03 PM
> > To: Morten Brørup <mb@smartsharesystems.com>; Thomas Monjalon
> > <thomas@monjalon.net>; Kevin Traynor <ktraynor@redhat.com>; Tummala,
> > Sivaprasad <Sivaprasad.Tummala@amd.com>; David Marchand
> > <david.marchand@redhat.com>; Yigit, Ferruh <Ferruh.Yigit@amd.com>;
> > bruce.richardson@intel.com; konstantin.v.ananyev@yandex.ru;
> > maxime.coquelin@redhat.com; Aaron Conole <aconole@redhat.com>
> > Cc: dev@dpdk.org
> > Subject: RE: [PATCH] config/x86: config support for AMD EPYC processors
> >
> > Caution: This message originated from an External Source. Use proper caution
> > when opening attachments, clicking links, or responding.
> >
> >
> > > > > > > > >> From: Tummala, Sivaprasad <Sivaprasad.Tummala@amd.com>
> > > > > > > > >>> From: David Marchand <david.marchand@redhat.com> On Mon,
> > > > > > > > >>> Sep 25, 2023 at 5:11 PM Sivaprasad Tummala
> > > > > > > > >>>> From: Sivaprasad Tummala <Sivaprasad.Tummala@amd.com>
> > > > > > > > >>>>
> > > > > > > > >>>> By default, max lcores are limited to 128 for x86
> > > > platforms.
> > > > > > > > >>>> On AMD EPYC processors, this limit needs to be
> > > > > > > > >>>> increased
> > > > to
> > > > > > > > leverage
> > > > > > > > >>>> all the cores.
> > > > > > > > >>>>
> > > > > > > > >>>> The patch adjusts the limit specifically for native
> > > > > > compilation on
> > > > > > > > >>>> AMD EPYC CPUs.
> > > > > > > > >>>>
> > > > > > > > >>>> Signed-off-by: Sivaprasad Tummala
> > > > <Sivaprasad.Tummala@amd.com>
> > > > > > > > >>>
> > > > > > > > >>> This patch is a revamp of
> > > > > > > > >>>
> > > > > > > > >>
> > > > > > > >
> > > > > >
> > > >
> > http://inbox.dpdk.org/dev/BY5PR12MB3681C3FC6676BC03F0B42CCC96789@BY5
> > > > PR
> > > > > > > > >>> 12MB3681.namprd12.prod.outlook.com/
> > > > > > > > >>> for which a discussion at techboard is supposed to have
> > > > taken
> > > > > > place.
> > > > > > > > >>> But I didn't find a trace of it.
> > > > > > > > >>>
> > > > > > > > >>> One option that had been discussed in the previous
> > > > > > > > >>> thread
> > > > was
> > > > > > to
> > > > > > > > >>> increase the max number of cores for x86.
> > > > > > > > >>> I am unclear if this option has been properly
> > > > > > evaluated/debatted.
> > > > > > >
> > > > > > > Here are the minutes from the previous techboard discussions:
> > > > > > > [1]: http://inbox.dpdk.org/dev/YZ43U36bFWHYClAi@platinum/
> > > > > > > [2]:
> > > > http://inbox.dpdk.org/dev/20211202112506.68acaa1a@hermes.local/
> > > > > > >
> > > > > > > AFAIK, there has been no progress with dynamic max_lcores, so
> > > > > > > I
> > > > guess
> > > > > > the techboard's conclusion still stands:
> > > > > > >
> > > > > > > There is no identified use-case where a single application
> > > > requires
> > > > > > more than 128 lcores. If a case a use-case exists for a single
> > > > > > application that uses more than 128 lcores, the TB is ok to
> > > > > > update
> > > > the
> > > > > > default config value.
> > > > > > >
> > > > > > > > >>>
> > > > > > > > >>> Can the topic be brought again at techboard?
> > > > > > > > >>
> > > > > > > > >> Hi David,
> > > > > > > > >>
> > > > > > > > >> The patch is intended to detect AMD platforms and enable
> > > > > > > > >> all
> > > > CPU
> > > > > > > > cores by default
> > > > > > > > >> on native builds.
> > > > > > >
> > > > > > > This is done on native ARM builds, so why not on native X86
> > > > builds
> > > > > > too?
> > > > > > >
> > > > > > > > >>
> > > > > > > > >> As an optimization for memory footprint, users can
> > > > > > > > >> override
> > > > this
> > > > > > by
> > > > > > > > specifying "-
> > > > > > > > >> Dmax_lcores" option based on DPDK lcores required for
> > > > > > > > >> their
> > > > > > usecases.
> > > > > > > > >>
> > > > > > > > >> Sure, will request to add this topic for discussion at
> > > > > > techboard.
> > > > > >
> > > > > > This is the summary of the techboard meeting:
> > > > > > (see
> > > > > > https://mails.dpdk.org/archives/dev/2023-October/279672.html)
> > > > > >
> > > > > > - There is some asks for more than 128 worker cores
> > > > > > - Discussion about generally increasing the default max core
> > > > > > count
> > > > and
> > > > > > trade-offs with memory consumption but this is longer term issue
> > > > >
> > > > > The distros are currently satisfied with the 128 cores default, so
> > > > the decision here was: Leave the 128 cores default as is, for now.
> > > > >
> > > > > Any long term improvements regarding memory consumption of
> > > > > many-core
> > > > systems are not relevant for this patch.
> > > > >
> > > > > > - Acceptance for the direction of this patch in the short term
> > > > >
> > > > > With the twist that it must work for cross compile. It is the
> > > > properties of the target CPU that matter, not the properties of the
> > > > host
> > > > > CPU. (Although the build may be "native", i.e. the target CPU is
> > > > > the
> > > > same as the host CPU, it is still the target CPU that matters.)
> > > > >
> > > > > > - Details of whether it should be for EPYC only or x86 to be
> > > > figured
> > > > > > out
> > > > > > on mailing list
> > > > >
> > > > > I think this is obvious...
> > > > >
> > > > > ARM already provides ARM CPU specific optimizations.
> > > > > AMD should be allowed to provide AMD CPU specific optimizations too.
> > > > > Intel can also provide Intel CPU specific optimizations.
> > > >
> > > > I suppose no-one stopping AMD/Intel/ARM to provide their CPU
> > > > specific optimizations.
> > > > Though as end-user, my preference would be to have one generic build
> > > > (machine=default) that would work ok on all cpus for given
> > > > architecture (let say x86) instead of maintaining/testing dozens of
> > > > different flavors.
> > >
> > > Agree. Machine specific builds should be explicitly specified. I consider "native" a
> > variant of explicitly specifying the target machine.
> > >
> > > > I suppose for 23.11 we have not much choice but accept that patch as
> > > > it is.
> > >
> > > No. They agreed in the techboard meeting to rework it for cross compile.
> >
> > Ah, yes, cross-builds, nearly forgot about them.
> > I suppose yes, you are right, it needs to be supported for completeness.
> >
> 
> Yes, currently the patch is targeted to support max lcores selection only for native builds.
> Cross-compilation works as it is now.
> 
> Once this patch is merged in this release, we plan to extend for cross builds in the coming releases.

Works for me.
 

  parent reply	other threads:[~2023-11-09 16:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-25 15:10 Sivaprasad Tummala
2023-10-06  7:50 ` David Marchand
2023-10-16  5:14   ` Tummala, Sivaprasad
2023-10-16  5:20     ` Tummala, Sivaprasad
2023-10-17  9:45       ` Kevin Traynor
2023-10-17 10:27         ` Morten Brørup
2023-11-06 21:05           ` Thomas Monjalon
2023-11-06 22:17             ` Morten Brørup
2023-11-07 13:13               ` Konstantin Ananyev
2023-11-07 13:30                 ` Morten Brørup
2023-11-07 14:32                   ` Konstantin Ananyev
2023-11-08 12:24                     ` Tummala, Sivaprasad
2023-11-08 13:06                       ` Morten Brørup
2023-11-09 16:43                       ` Konstantin Ananyev [this message]
2023-10-17 10:58         ` Ferruh Yigit
2023-11-07 12:59 ` Konstantin Ananyev
2023-11-12 13:48 ` Thomas Monjalon
2023-12-20  7:10 Sivaprasad Tummala
2023-12-20  7:27 ` Morten Brørup
2023-12-20  9:22   ` Tummala, Sivaprasad

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=749b9213446340ea994cbc175d101719@huawei.com \
    --to=konstantin.ananyev@huawei.com \
    --cc=Ferruh.Yigit@amd.com \
    --cc=Sivaprasad.Tummala@amd.com \
    --cc=aconole@redhat.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=konstantin.v.ananyev@yandex.ru \
    --cc=ktraynor@redhat.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=mb@smartsharesystems.com \
    --cc=thomas@monjalon.net \
    /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).