Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp736483lqc; Fri, 8 Mar 2024 10:07:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxejGOD/93x+j+bNT3dJNbbdHAyWIZxdeOjsMqDI5Hk9PsoTRHx5dDpbB19xWj1/7GhGcCFEJzMqRMNYEgDSKqkq6rRGsWZTaGvUmRjw== X-Google-Smtp-Source: AGHT+IFPOORUqwOFMmSZLJsy6iiyGEHv+NsP2aRJNmRSPhmrz431ljvOhvxLQgngP2O6di6ZdJl0 X-Received: by 2002:a05:6358:720a:b0:17b:fb78:4a1 with SMTP id h10-20020a056358720a00b0017bfb7804a1mr9293rwa.27.1709921222471; Fri, 08 Mar 2024 10:07:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709921222; cv=pass; d=google.com; s=arc-20160816; b=rDHGtYH5RLNfEk9X6D+YcofoDaHZ8gkGNKuhLYC8UqjUfuubnrC3cfj3zIKu2ahN8j pWvKdPWpG4sfJbt0CeTnbnGZa4EdEKQUx5x9Et0ox6rKBcMFIIQ6dMnR8w7xi1OqVMV9 KfbTSRgmY7pjlJwpaA34eW9CftKeoCxMVzRynvyK9z+OkxCRa88Am7SZUynsirML6pvR wZHgi+/ByRsDfyStwxYGGDa0fjX4Yyt8XqF+nxYMWpRdC6D6lVt9G/tIOdpv7xjCR/hg X52UdWt/pOiXFrd8S3hxq/gpCIHTaKmdq0ttTE9xawnUp5tEfUc/UHdRqIJ3l11af4w8 3WOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=SzQT9+kGn6h7izZiKgf1VzWB9vLTX7GRq6qiC9Uz10U=; fh=pMU/JRztMuBU9Q14qUl865E6nAu13SFcPckETSrT9rw=; b=H5setW6pgoKUHj+5DGXj6Ew4twbfVtShF1DkufTCKg3shWvE5EO+75vxkWcB+cUX8a 9Jx+JmLMnK+p0O1YV1c4yRMcdLtcoOJzdECNvJ8z/x+9DltH+9uz0GECqIiudtfGFDaS NIwuhoQOHS2sX7DbeIiOS2WgkVcZwidijIJygcVUkIUdqrxty1P4BXFT7nUX5MRrO4jB TI2SkKdfL0cP3SPvN6XGguUmzgQUnnMrPGNDGk7WoKnNDH6DvWtYvYaOo5Ku4CVUHunT 22jbFhhciJARvxaBmKTPdouxNpseEdfNg3VgiBYWnzRpl2KTufpgkZAGyuoqCOOgDPWm xEYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-97437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m17-20020a05622a055100b0042e7b1c0954si1938qtx.401.2024.03.08.10.07.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 10:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-97437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 32F4E1C212BF for ; Fri, 8 Mar 2024 18:07:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2921D54792; Fri, 8 Mar 2024 18:06:57 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E4EB2A8C1; Fri, 8 Mar 2024 18:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709921216; cv=none; b=OoOW9ytSTiFc0FF0598nWCA06OkFDV0YWOhwdrtcxbrMDs6+QfAeMRgELuStsjCxxSCIr7+qlfn5lat3y4huKIHO9Fwl315fGqd6K6nmAfO8h67SpRdW9Hk5b54qL7rcwVB265qIiGsnjhWxUX0OMzLaLpDMi9vI52jtD+yKHOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709921216; c=relaxed/simple; bh=ROE3uYVoQdalc9qxMEBafin0xWxDiJexqDsB2sDZKtI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qbhCIXZZTx3bG0OWsdJUpb294DIDALBCNSRydWf/GM0FGqtFD+4AXTSrSBMthn85rImWpI4BreUS4Ni3nh/Ffj74A3XMwVmI0GPa0MoNP/7bxP7ktDi5vRkHWmx3k6k4WbLw+hCF+c5F5HJ9GiZZifTnwXNwNTtAhnrd3mFxT0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0F631C15; Fri, 8 Mar 2024 10:07:28 -0800 (PST) Received: from [10.1.197.60] (eglon.cambridge.arm.com [10.1.197.60]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 06CAD3F738; Fri, 8 Mar 2024 10:06:49 -0800 (PST) Message-ID: Date: Fri, 8 Mar 2024 18:06:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] selftests/resctrl: Adjust SNC support messages Content-Language: en-GB To: Tony Luck , Reinette Chatre Cc: "Wieczor-Retman, Maciej" , "Yu, Fenghua" , Shuah Khan , "ilpo.jarvinen@linux.intel.com" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" References: <8a158ada92f06b97a4679721e84e787e94b94647.1709721159.git.maciej.wieczor-retman@intel.com> <159474e6-ef11-4769-a182-86483efcf2a6@intel.com> <0393c4ce-7e41-4dcc-940a-a6bea9437970@intel.com> <55a55960-8bb1-4ce2-a2c7-68e167da8bcc@intel.com> From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi guys, On 07/03/2024 23:16, Tony Luck wrote: > On Thu, Mar 07, 2024 at 02:39:08PM -0800, Reinette Chatre wrote: >> Thank you for the example. I find that significantly easier to >> understand than a single number in a generic "nodes_per_l3_cache". >> Especially with potential confusion surrounding inconsistent "nodes" >> between allocation and monitoring. >> >> How about domain_cpu_list and domain_cpu_map ? > Like this (my test system doesn't have SNC, so all domains are the same): > > $ cd /sys/fs/resctrl/info/ > $ grep . */domain* > L3/domain_cpu_list:0: 0-35,72-107 > L3/domain_cpu_list:1: 36-71,108-143 > L3/domain_cpu_map:0: 0000,00000fff,ffffff00,0000000f,ffffffff > L3/domain_cpu_map:1: ffff,fffff000,000000ff,fffffff0,00000000 > L3_MON/domain_cpu_list:0: 0-35,72-107 > L3_MON/domain_cpu_list:1: 36-71,108-143 > L3_MON/domain_cpu_map:0: 0000,00000fff,ffffff00,0000000f,ffffffff > L3_MON/domain_cpu_map:1: ffff,fffff000,000000ff,fffffff0,00000000 > MB/domain_cpu_list:0: 0-35,72-107 > MB/domain_cpu_list:1: 36-71,108-143 > MB/domain_cpu_map:0: 0000,00000fff,ffffff00,0000000f,ffffffff > MB/domain_cpu_map:1: ffff,fffff000,000000ff,fffffff0,00000000 This duplicates the information in /sys/devices/system/cpu/cpuX/cache/indexY ... is this really because that information is, er, wrong on SNC systems. Is it possible to fix that? From Tony's earlier description of how SNC changes things, the MB controls remain per-socket. To me it feels less invasive to fix the definition of L3 on these platforms to describe how it behaves (assuming that is possible), and define a new 'MB' that is NUMA scoped. This direction of redefining L3 means /sys/fs/resctrl and /sys/devices have different views of 'the' cache hierarchy. (I also think that this be over the threshold on 'funny machines look funny' - but I bet someone builds an arm machine that looks like this too!) Thanks, James