Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp715873rdb; Tue, 19 Sep 2023 08:11:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtiZKSZvSnB7ulA5/6Pb4lA89pXHeOA5Z5zhLoUnBbpZC0M1pmS7BMglgu7crTvE8UvuTe X-Received: by 2002:a05:6a20:4423:b0:123:3ec2:360d with SMTP id ce35-20020a056a20442300b001233ec2360dmr15881777pzb.5.1695136266830; Tue, 19 Sep 2023 08:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695136266; cv=none; d=google.com; s=arc-20160816; b=voiX+OTC5CKJ4rMh0jKPiE7AXM0kaZ/ugtZx9Lw8YeOq47G0zL+nWgy/k6B105oXdl XdBYzuMiPVSas9BWgmTjjOIj6OnPcrtt8TSJqq8p/IuxIhVByGtl1wSIvofe9QPk26m5 jwL0q/QZnp9ePl0Kd54MFWmbqp6zaPidqdoZRgp8iJkcZFcOfCvOVZiyLZVwOHhVnXeg xYGYfb0zDD7M2mJrqzIT1QgkWoMkMYVl59bRqECeo664zkVKDNqCnMLobmCswCLfQKt6 QRsBcp18dp+ZM5Kw0/JxYbh6a80KGL5PvfHuc7LEx+PcKYuIW0IdGftJnhr0qRgO5nYd ymAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lh+1sUU5dkTYoSEM2fXg36LnHxaVihwfzF5o4t+hpHg=; fh=i6laz2xUdjysgVaYOcDf4oqFHw3p49eGroEnwLiQ9WY=; b=jqnoFiGjmn/wDWgghtYYFptU2i5g/LYf+VojH7P6QLosrwCCVQs4GAEk0CqqjCAT22 F5HoSoqmsfYh7PeBEKbqNHJfYY33yDT439fWVV6ithO/kOixsgmt5AIbYhPBXgzufcGp LSALcTeAt8I+2MNQxJ2QF/+AlvpPPSH0TrsuuGWlqJeL2GU8JPaFQN6Irg0g39nCg2a0 42ukF1ZQqSoEe3FQTMpsIAXulC2IFLX61MxWuo3XzQvDU63zjg+KV/6hPIE1IYFqctfo xuZ4MUf+JFxvpNBmyyVMZgwV4wvBm/VOAJgIXgN+0BYPNHA8NksT4AKkSbe4Bl0/UVhg oY0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=dqkdnXmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q29-20020a638c5d000000b00578afb3123bsi1630800pgn.700.2023.09.19.08.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 08:11:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=dqkdnXmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 28B7380D88D5; Tue, 19 Sep 2023 05:53:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232202AbjISMx0 (ORCPT + 99 others); Tue, 19 Sep 2023 08:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232099AbjISMxY (ORCPT ); Tue, 19 Sep 2023 08:53:24 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59AC699 for ; Tue, 19 Sep 2023 05:53:19 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1c4084803f1so233115ad.0 for ; Tue, 19 Sep 2023 05:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695127999; x=1695732799; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lh+1sUU5dkTYoSEM2fXg36LnHxaVihwfzF5o4t+hpHg=; b=dqkdnXmjNDa1xaVqKS7T+HLMOUGB5vu35FgQMuzN4SKtR6+6wikuJvqAGgLi9hUbNl ia09XQupJy9VjN2iZOInZMfEdfs2AP236XHumQZsQA1V0ItH3BFokDBLwx7XEYTADUyj YyIqs4YuMthtGlini/xcpChnrz2oVrJ1tutfcqNYI91sVNgKpa3AZPV3dzGwZN88812Y KBfNm/Rts5SJR4/9oe+9vrF06eqjNjQ9V+o9+dI8MfizdHiU1kJo7IEwZWpURfWM3F/p nFOMhGxcOTLTqCzmJ05/S5rzY7UtKMjuoVhGxyIsyOEMx4aL7xXhLGznNPJlSvZbmHZZ nzEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695127999; x=1695732799; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lh+1sUU5dkTYoSEM2fXg36LnHxaVihwfzF5o4t+hpHg=; b=tLLwbVYV1DeK09CpvHlOHga7Lm1V9VPDXoJ+w4z2XCH74IW9bOAozgUi8MkWiTJVXY bcQyfkICeOj8ufW1Ma1+JztldunMaU9lT0fff/0W3yYY2wP1ptgRDg5Usm1EVbW9MQ8c +UPj9g2W/kwTtszotAM9tMMWOR2RdbCEUCwYbb8raR265qNBMjyuHbOUysJoLwWgzynx Wfo0Lm59HnjNUVJTBEHGoNwYvaQLCfdNtxZaobA7byBOo5HcqLhxu2rVYbh5MZpAzBKF K1lUeNCvhDTgk0XBpwu0W9Ja+5785RWhril9qWVgQLUudTPE1EwjZfy+ZjM8BTgXx1U5 gBCg== X-Gm-Message-State: AOJu0YwZ1zXUU1o79oH0RlHptnWQl8Yli2W4w4q40V/HB8GLm3P6P+1B 6BDT8JbtJwOPAR1RxT2vrSibpltYaNcfLpMUJV2HRg== X-Received: by 2002:a17:902:e841:b0:1bb:a6de:8e5d with SMTP id t1-20020a170902e84100b001bba6de8e5dmr223823plg.4.1695127998571; Tue, 19 Sep 2023 05:53:18 -0700 (PDT) MIME-Version: 1.0 References: <35f05064-a412-ad29-5352-277fb147bbc4@intel.com> <9742f177-a0ce-c5d3-5d92-90dda32f5d07@intel.com> In-Reply-To: From: Peter Newman Date: Tue, 19 Sep 2023 14:53:07 +0200 Message-ID: Subject: Re: resctrl2 - status To: Tony Luck Cc: Reinette Chatre , "james.morse@arm.com" , Babu Moger , Amit Singh Tomar , "Yu, Fenghua" , George Cherian , "robh@kernel.org" , Drew Fustini , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 05:53:29 -0700 (PDT) Hi Tony, On Wed, Sep 6, 2023 at 8:21=E2=80=AFPM Tony Luck wrot= e: > I've just pushed an updated set of patches to: > > git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git resctrl_v6= 5 I'm trying to understand the purpose of the resctrl_resource struct defined here: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git/tree/include= /linux/resctrl.h?h=3Dresctrl2_v65#n356 From the common fields, it seems to be something with a name and some info files that can be divided into domains and should be told when CPUs are hotplugged. (I skipped the scope field because I couldn't find any references outside fs/resctrl2/arch). The remaining fields are explicitly disjoint depending on whether we're talking about monitoring or allocation. From this I don't get a strong sense that a "resource" is really a thing and I think James's resctrl_schema struct only for the purpose of resource allocation was more the right direction for common code. Outwardly, resctrl groups seem to be the only thing relating monitoring to allocation. Is there a good reason for the common code to understand relationships between monitors and schemas with the same name? If not, I think it would make more sense to register monitors and control schemata independently. -Peter