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 DFBCF4297F; Tue, 18 Apr 2023 18:46:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BFC24021F; Tue, 18 Apr 2023 18:46:55 +0200 (CEST) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id 924314014F for ; Tue, 18 Apr 2023 18:46:53 +0200 (CEST) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2470271d9f9so1519913a91.2 for ; Tue, 18 Apr 2023 09:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1681836413; x=1684428413; 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=v/Drun652KJquLRrFg0G0re2D9cPHjmcn3xphcwLF7U=; b=ldYLQP6djkWhm7k11chVsR3KtPadgcYLY/CWIg49YtiTiT0R2NnMCK8daidcaslvTS F85jjbGbIJAcN2Qrp+LUXfwpOCE/MMuWoT3yVA2PijvZmTSPxtv+XFtrda0y4+j+mEJE ycfLZP1kmaS6ooPoL2dELwIWLPgf4XqmO0EWaohPy+WDzU/Dmf1lN9jlBYFFmTFXixO9 wjts8fTMuGvuSGb+Xdiaj8ERiFAi9L83hDBHqGxiC1DdDKVcxMx0vv3MnFJqWBU41Mvu sH15mqCthoNoss8rs7kGufGtwqo80GcPi7ERvQdZpwqy9Je1Rc6YK31f46mcSGOkeFN2 +VIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681836413; x=1684428413; 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=v/Drun652KJquLRrFg0G0re2D9cPHjmcn3xphcwLF7U=; b=W8mNyBiADJB6SzUV80DWnvUEdIrldHA4mcKREr6lIVZvqtzweBn3dVT4TG10yyuAwv dTjz98JZS1P9Ylaf0DqzrpU4moZYIdenFqY6NvlUkNCmwARTmnA9QnpcBTQ9pTPGmuvw N7odoSnFYjcgKUHgWVzEh/mmO+H9pR3dawuR65WucnXGUsxMfGMoZkKU9Wh6UBdJk3w6 vbQLbLGTTDuehkb//s/zhUxk8k6UHNMY8P3HJDHarQ0v3Vxn+XLmFVo1kMhoxv0yeCI+ 4KeBB07jWF4cgkoSGY/w+rvPWG/DrQl8HTZvqxmuaLmQr9tXTCnUCfF8AGg+Ua/gXbwW hRKA== X-Gm-Message-State: AAQBX9d3SLFhxurEbxEZ/PwtstnsEXw9G40xP4nT8CRkVG/X3xRb8QBR RKn2+pN/fj29bqOcqezudX7d0Q== X-Google-Smtp-Source: AKy350ZGpQWUws54Yq51gCurK7k8CyzNdF3U2SeoXqzkDX/0i0cgYEwFOYwqMy9Yh8wzNqsK1qGMKA== X-Received: by 2002:a17:903:120f:b0:1a1:b174:836c with SMTP id l15-20020a170903120f00b001a1b174836cmr3234593plh.16.1681836412704; Tue, 18 Apr 2023 09:46:52 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id c9-20020a170902848900b0019a7ef5e9a8sm5449803plo.82.2023.04.18.09.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 09:46:50 -0700 (PDT) Date: Tue, 18 Apr 2023 09:46:46 -0700 From: Stephen Hemminger To: Wenzhuo Lu Cc: dev@dpdk.org Subject: Re: [PATCH] usertools: enhance CPU layout Message-ID: <20230418094646.799b2fc3@hermes.local> In-Reply-To: <1681795541-68384-1-git-send-email-wenzhuo.lu@intel.com> References: <1681795541-68384-1-git-send-email-wenzhuo.lu@intel.com> 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 Tue, 18 Apr 2023 13:25:41 +0800 Wenzhuo Lu wrote: > The cores in a single CPU may be not all > the same. > The user tool is updated to show the > difference of the cores. > > This patch addes below informantion, > 1, Group the cores based on the die. > 2, A core is either a performance core or an > efficency core. > A performance core is shown as 'Core-P'. > An efficency core is shown as 'Core-E'. > 3, All the E-cores which share the same L2-cache > are grouped to one module. > > The known limitation. > 1, To tell a core is P-core or E-core is based on if > this core shares L2 cache with others. > > Signed-off-by: Wenzhuo Lu Side note: This tool only exists because of lack of simple tool at the time. Looking around, found that there is a tool 'lstopo' under the hwloc package that gives output in many formats including graphical and seems to do a better job than the DPDK python script. Not sure how much farther DPDK should go in this area? Really should be a distro tool.