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 B25164252B; Wed, 6 Sep 2023 21:45:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B9AA402B4; Wed, 6 Sep 2023 21:45:30 +0200 (CEST) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 75C08402A9 for ; Wed, 6 Sep 2023 21:45:29 +0200 (CEST) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-26d1e5f2c35so137164a91.2 for ; Wed, 06 Sep 2023 12:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1694029528; x=1694634328; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=2nbTYSqCXSWbf25ShKV+fuZ8vx/jNs9rHdjsON3YTqs=; b=nVxBil6u2Y6bVduBP49xkeooDb8G7srW8y+SPYbwaPAoMZWOdSqi/8Cwkot5VHPL3S RiUmtNTq7QF8LbDg6p/l2ZcUtGM93p/Rgd7Cu0LqjmTDO2LIigvqy3D5sDCvoEKKcrUA tRtu7zclrXTyqLA5aJPPj3W3Gf7rO9cR7NL8XdAfgQPbVZtGcibjPXdVNJEASyyf6CC4 KETU6P62N8C3ckATiN95tkOxMNqkdKigOv0rKYldjnrj/DyQA5Y5xwumWq5Drmx+EU+f y8T1DV0HWUwwO9UaZahar9sh9zBDizWziqqnWjX1xcduMBb/3t+sd0hKIG7//fY6k06T ulSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694029528; x=1694634328; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2nbTYSqCXSWbf25ShKV+fuZ8vx/jNs9rHdjsON3YTqs=; b=Dxrs41V0z9e/gB4IvZPmYxmtNuVd7lmGiyKsf0I85FaF76uIgwc8TlLzBrIal1F0np 99yFBdJZPQAxbWp+p0JAsfchLHe4eua8MSK13K2d7N9g1tw46/4174BJB1SbnCwAuezL wO4xEXwcC4o0lSwjRS2fjNOq6qKdWLEDZpDybe/bEy+CC1vXGOe1KUlyh+dFiA8U28CA U7F1LLNHN185MsGa+dbHtiXIVzuAZg+rrj/jWIPUpjve7OqHvynchfvPwn8+7esXey2s HlyfZJ37jQZO9WsEZmjUicbxYkyPEEgADlsFwogmU/iUMayYtpuWb3vdGERhHInNdBCu ImGA== X-Gm-Message-State: AOJu0YwYKu9HZfj7Tq2r1Q6WJxi9BlAOttf9c1CnaxograC40bWFMiuT X/MSspS6P+H0c/adAWePCluJ0bI1bRXR/vHFpCM= X-Google-Smtp-Source: AGHT+IHy/avvkXylyF1mnXflbtKV0oRI2XTzPGaM835XuL4P67WGkVMGSwDRuq8Dto9ENx7lzZRxbw== X-Received: by 2002:a17:90a:c095:b0:26b:c5b:bb44 with SMTP id o21-20020a17090ac09500b0026b0c5bbb44mr15926936pjs.13.1694029528609; Wed, 06 Sep 2023 12:45:28 -0700 (PDT) Received: from hermes.local (204-195-112-131.wavecable.com. [204.195.112.131]) by smtp.gmail.com with ESMTPSA id z6-20020a17090abd8600b0026d214a2b33sm156043pjr.7.2023.09.06.12.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 12:45:28 -0700 (PDT) Date: Wed, 6 Sep 2023 12:45:26 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: Abdullah Sevincer , dev@dpdk.org, Tyler Retzlaff Subject: Re: quick thread in DLB2 Message-ID: <20230906124526.02c5fe61@hermes.local> In-Reply-To: <2363761.yKrmzQ4Hd0@thomas> References: <2363761.yKrmzQ4Hd0@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Fri, 01 Sep 2023 16:08:48 +0200 Thomas Monjalon 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.