quick thread in DLB2

Sevincer, Abdullah abdullah.sevincer at intel.com
Fri Sep 8 00:09:06 CEST 2023


Hi Stephen,
It is probing ports for best CPU. Yes it collects cycles. We may rework in the future.
Open to suggestions.

-----Original Message-----
From: Stephen Hemminger <stephen at networkplumber.org> 
Sent: Wednesday, September 6, 2023 12:45 PM
To: Thomas Monjalon <thomas at monjalon.net>
Cc: Sevincer, Abdullah <abdullah.sevincer at intel.com>; dev at dpdk.org; Tyler Retzlaff <roretzla at linux.microsoft.com>
Subject: Re: quick thread in DLB2

On Fri, 01 Sep 2023 16:08:48 +0200
Thomas Monjalon <thomas at 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.


More information about the dev mailing list