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 87502A0547 for ; Thu, 29 Apr 2021 17:21:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76E39410DD; Thu, 29 Apr 2021 17:21:36 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 13831406FF for ; Thu, 29 Apr 2021 17:21:35 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id p17so6896874pjz.3 for ; Thu, 29 Apr 2021 08:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3qUy4dsMZ03gjwJnHLpw9tvzQ8Ps6dq/Rde1d9SRupw=; b=C+NpO9RvHYQeMQOtR1qoBgz2yOGD5Y5hj0/gbJ8MM+XHUXt435r4sCoWpC3CQQ7uzR h4ACm6NY8jfI8XCbJ39eZhshrqDYSnemxY0S1/nzsf41zCJbtO0u2QLUaDrOF7Ep8B7a ArmFf1mFPka/sj6qh+hErJCF1kjfA3JuTPZ1CUDGE+bU4qJ2mjfGp0nF3h+4TRB3nraG Z57rfy/YrlR8XagU82TNf/hlChZI1xTYrLhXeUkAgt8voymRXlHOt+8CRHBpi6jeEtX7 Sdsx0eMn9wiodhR50miVtdr108GfihvtnfsC1bKoWEjv9cnKLplx0a/pNAuavNva8dex Wgcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3qUy4dsMZ03gjwJnHLpw9tvzQ8Ps6dq/Rde1d9SRupw=; b=kL2qEzOT6/9PVH81CA06eZ4amMWS6Tc4hLAbNIjpzWqAaCXdep8kalvha+CoFh2CrC 2FxzhsYJXs5ifTOqw2Rnno22iTmG+LdQiTLXluJw+xmoQqodgkoSWepNltJqMDWMaw4W ppELGHj0PSu2dje4Ljehfsi43oCewFOIO7VlfnHzZyncHTb/C4u5kX3PvduUVqU1qd0i PZrD5YGdCix0uPRThyuQTYxfQAqAxpo5pMLe3NKPFb9KmHJW2LlD/8PkXb/vnGtS8mnO JoRVP3bQI3Due5VhHOzO3PztH7y8J0vutoXSGOEXHhPaJyJ/mYOY4rO6Qr6cntAyTG8P q8TQ== X-Gm-Message-State: AOAM530dMMeBcCXR1QeYPt/GDY5AxXJzYVc1NzIZulle9d0KN2xyr9eM AzIkthy+NWijLi3ObUUKQxKjpw== X-Google-Smtp-Source: ABdhPJyGamucOJHLQ1zWXcVSk+AhhPDd6W6wLjwF/A3BqwwMccnH4hii6At+SFdng63y0ZMIk6EC2A== X-Received: by 2002:a17:90a:bd13:: with SMTP id y19mr10506493pjr.181.1619709694152; Thu, 29 Apr 2021 08:21:34 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id bf3sm2635411pjb.16.2021.04.29.08.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 08:21:33 -0700 (PDT) Date: Thu, 29 Apr 2021 08:21:31 -0700 From: Stephen Hemminger To: "Szwed, Maciej" Cc: "users@dpdk.org" Message-ID: <20210429082131.3e08e670@hermes.local> In-Reply-To: References: <20210423095624.1ce592ba@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] Hyper-threaded cores X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Thu, 29 Apr 2021 10:10:37 +0000 "Szwed, Maciej" wrote: > Thanks Stephen - this is what I was looking for. > One more thing: Is there a chance to put such implementation in rte_power and make an API call for it? > > Thanks, > Maciek > > -----Original Message----- > From: Stephen Hemminger > Sent: Friday, April 23, 2021 6:56 PM > To: Szwed, Maciej > Cc: users@dpdk.org > Subject: Re: [dpdk-users] Hyper-threaded cores > > On Thu, 22 Apr 2021 08:19:34 +0000 > "Szwed, Maciej" wrote: > > > Hi, > > I'm wondering if there is any way to get information in DPDK which cores are hyper-threaded siblings. I would need that information when I'm using rte_power for changing cores frequencies. > > > > Thanks, > > Maciek > > Look at the DPDK cpu-layout script? The CPU layout is very system, OS and application dependent. The rte_power library could read the same stuff out of sysfs but it is not clear what it could do with it.