From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ADE14A0547; Wed, 29 Sep 2021 08:21:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26FCC410D7; Wed, 29 Sep 2021 08:21:21 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 25DAB4068F for ; Wed, 29 Sep 2021 08:21:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632896479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lXTsX28ccxigSOPYDzX+HYyEnhq/AEstARGDJoItB5A=; b=FuZU+Yq6EQVwxPQn+1ydiRX30gOd8VqrDeWL6fRNtAeRCd8gLtZ5pLxgOZGG3oKLRRbTHk UOkVmWajZT4vCLxcixde4MYqj0N+aY1AR9JUSk4K4gOIyTrT+sw0Y9vhvNna+OzeR0jb1v GYVrZkmnSlTMhMVPWLMCwXaLkZ2OuGg= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-507-sNhEE5hWPDeimH8eK7MQVg-1; Wed, 29 Sep 2021 02:21:16 -0400 X-MC-Unique: sNhEE5hWPDeimH8eK7MQVg-1 Received: by mail-lf1-f69.google.com with SMTP id z9-20020a0565120c0900b003fce36c1f74so1430883lfu.9 for ; Tue, 28 Sep 2021 23:21:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lXTsX28ccxigSOPYDzX+HYyEnhq/AEstARGDJoItB5A=; b=G3e5VLtBXXtSLGCb9IDCj5MD45LRjiJcY3KWuS/f2uDhtCQLA8Hz7PihqpWb0Zoo27 MTE1LvRfU8rC0Z/ZqbamPOULelDJJ/17ddYKH3clB7TbeiBkf4L6wQXhK/VLzgSVUUDU SV29+y/bGJVz9r3NGh/jzP88X7ecA7Fi4DDHJTSY1RZ8C2lliiycaUg3ZPRgVRaTOMBJ tzWv8tnVdZqoGt5qXq7Qz5lzDxtR7rM9dng9c7uGJd2EOB8x1bDsZJzG82H1PCvKy7a9 lEO9HhJSiwsu98LD4icUL8NObSbYWB+b5+bygqZ2xE8aMBzAHGinkUVMCbXMp1QQbiyP HN4Q== X-Gm-Message-State: AOAM530O7RUOYA2iUen4tZVbue0W25Slv2vLcGMdNHwF3/Moo4Z7LEER DUsXHLw532veg8SjHB83nSIsmsINZ7kBR7N3acBVuYidnjMxSehHD5QjSmt/ieF3AuSTjSAW19L APyZEkudof7+JIgsq8gU= X-Received: by 2002:a2e:2f02:: with SMTP id v2mr4207601ljv.46.1632896474770; Tue, 28 Sep 2021 23:21:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkl5hAjbGelaZgB30fu/9q9y+m5aulcg63Tv1MrszkKJF1DwCCQ9iTBKukKiiGOS1ngIO+iRtWv8CeUUACkDc= X-Received: by 2002:a2e:2f02:: with SMTP id v2mr4207592ljv.46.1632896474535; Tue, 28 Sep 2021 23:21:14 -0700 (PDT) MIME-Version: 1.0 References: <20210819024100.1710184-1-stephen@networkplumber.org> In-Reply-To: <20210819024100.1710184-1-stephen@networkplumber.org> From: David Marchand Date: Wed, 29 Sep 2021 08:21:03 +0200 Message-ID: To: Stephen Hemminger Cc: dev Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] eal: detach interrupt and worker threads X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Aug 19, 2021 at 4:41 AM Stephen Hemminger wrote: > > The EAL library does not wait (pthread_join) these threads > so the should be detached so that library can release resources. > This shows up when looking for memory leaks with tools like > valgrind. The FreeBSD interrupt thread can be detached too. There is also the hpet-msb-inc thread in Linux that could be detached, maybe in a followup patch? > > Signed-off-by: Stephen Hemminger With FreeBSD interrupt thread addition, you can add: Reviewed-by: David Marchand -- David Marchand