From: "Dong, Shaojie (NSB - CN/Hangzhou)" <shaojie.dong@nokia-sbell.com>
To: David Marchand <david.marchand@redhat.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>,
"users@dpdk.org" <users@dpdk.org>,
"Meunier,
Julien (Nokia - FR/Paris-Saclay)" <julien.meunier@nokia.com>
Subject: Re: [dpdk-users] [DPDK 20.11] rte_eal_init() appear additional thread
Date: Wed, 18 Aug 2021 01:53:42 +0000 [thread overview]
Message-ID: <cfabecdf093f4f7590188a7374dc24df@nokia-sbell.com> (raw)
In-Reply-To: <CAJFAV8zFyq-9Oka0L-p8q5phQm_xm4cNxArwMuH1GX32WxTT5w@mail.gmail.com>
Hello, David
Thank you very much for your information !
I found DPDK version 21.05 set this thread name as "telemetry-v2"
https://code.dpdk.org/dpdk/v21.05/source/lib/telemetry/telemetry.c#L541
-----Original Message-----
From: David Marchand <david.marchand@redhat.com>
Sent: Tuesday, August 17, 2021 5:26 PM
To: Dong, Shaojie (NSB - CN/Hangzhou) <shaojie.dong@nokia-sbell.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>; users@dpdk.org; Meunier, Julien (Nokia - FR/Paris-Saclay) <julien.meunier@nokia.com>
Subject: Re: [dpdk-users] [DPDK 20.11] rte_eal_init() appear additional thread
On Tue, Aug 17, 2021 at 11:19 AM Dong, Shaojie (NSB - CN/Hangzhou) <shaojie.dong@nokia-sbell.com> wrote:
> I found the additional thread was created by following path on DPDK
> 20.11 version
>
> rte_eal_init()->rte_telemetry_init()->telemetry_v2_init()->pthread_cre
> ate()
>
> Only call pthread_create() function to create this additional thread
> and then sleep all the time DPDK code do not set this thread's name So
> it inherits the main thread's name
>
> Two threads with the same name are easy to confuse by business code
> Does DPDK code support its name change ?
>
> It was not worker/slave thread
telemetry threads are renamed since 5da7736f8c53 ("telemetry: set socket listener thread name") (with a followup fix).
--
David Marchand
next prev parent reply other threads:[~2021-08-18 1:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-17 1:51 Dong, Shaojie (NSB - CN/Hangzhou)
2021-08-17 3:43 ` Stephen Hemminger
2021-08-17 9:19 ` Dong, Shaojie (NSB - CN/Hangzhou)
2021-08-17 9:26 ` David Marchand
2021-08-18 1:53 ` Dong, Shaojie (NSB - CN/Hangzhou) [this message]
2021-08-17 15:24 ` Stephen Hemminger
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=cfabecdf093f4f7590188a7374dc24df@nokia-sbell.com \
--to=shaojie.dong@nokia-sbell.com \
--cc=david.marchand@redhat.com \
--cc=julien.meunier@nokia.com \
--cc=stephen@networkplumber.org \
--cc=users@dpdk.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).