> -----Original Message-----
> From: Mattias Rönnblom <hof...@lysator.liu.se>
> Sent: Wednesday, September 13, 2023 10:48 AM
> To: Sevincer, Abdullah <abdullah.sevin...@intel.com>; Stephen Hemminger
> <step...@networkplumber.org>; tho...@monjalon.net
> Cc: dev@dpdk.org; Tyler Retzlaff <roret...@linux.microsoft.com>
> Subject: Re: quick thread in DLB2
> 
> On 2023-09-11 16:28, Sevincer, Abdullah wrote:
> > Mattias,
> > Yes that’s correct.
> >
> >
> 
> There is no way to cleaner and more robust way to achieve the same result?
> For example, by accessing /proc, or better, an DPDK abstraction of the same.
There similar issues in other areas. For ex: the CPUs with large core count 
have larger interconnect. The SLC to CPU distance starts to matter and the 
memory latency increases. The distance of the cores on the interconnect also 
impacts lock behaviors. We probably need a common mechanism/library to export 
such details. Not sure how much of this would be a security risk.

> 
> > -----Original Message-----
> > From: Mattias Rönnblom <hof...@lysator.liu.se>
> > Sent: Friday, September 8, 2023 12:28 AM
> > To: Sevincer, Abdullah <abdullah.sevin...@intel.com>; Stephen
> > Hemminger <step...@networkplumber.org>; Thomas Monjalon
> > <tho...@monjalon.net>
> > Cc: dev@dpdk.org; Tyler Retzlaff <roret...@linux.microsoft.com>
> > Subject: Re: quick thread in DLB2
> >
> > On 2023-09-08 00:09, Sevincer, Abdullah wrote:
> >> Hi Stephen,
> >> It is probing ports for best CPU. Yes it collects cycles. We may rework in 
> >> the
> future.
> >
> > Best, in what sense? Is this some kind of topology exploration? One DLB
> port being closer to (cheaper to access for) certain cores?
> >
> >> Open to suggestions.
> >>
> >> -----Original Message-----
> >> From: Stephen Hemminger <step...@networkplumber.org>
> >> Sent: Wednesday, September 6, 2023 12:45 PM
> >> To: Thomas Monjalon <tho...@monjalon.net>
> >> Cc: Sevincer, Abdullah <abdullah.sevin...@intel.com>; dev@dpdk.org;
> >> Tyler Retzlaff <roret...@linux.microsoft.com>
> >> Subject: Re: quick thread in DLB2
> >>
> >> On Fri, 01 Sep 2023 16:08:48 +0200
> >> Thomas Monjalon <tho...@monjalon.net> wrote:
> >>
> >>> Hello Abdullah,
> >>>
> >>> In the DLB2 code, I see a thread is created for a single operation:
> >>> In drivers/event/dlb2/pf/base/dlb2_resource.c
> >>> pthread_create(&pthread, NULL, &dlb2_pp_profile_func,
> >>> &dlb2_thread_data[i]); and just after:
> >>> pthread_join(pthread, NULL);
> >>>
> >>> Can we avoid creating this thread?
> >>> I guess no, because it must spawn on a specific CPU.
> >>>
> >>>
> >>
> >> The per thread data seems to break lots of expectations in EAL.
> >> It all seems to be about capturing the number of cycles on different cores.
> >> Looks like a mess.

Reply via email to