Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6616256rwp; Tue, 18 Jul 2023 03:20:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFQyHCV0JaDrGkTKeKaztp84ZBcuJFG5ucDnB1j/3Rya7gEVSlOZAVPtDXuuaB8tqqKWTyQ X-Received: by 2002:a05:6a20:4413:b0:136:e26b:6400 with SMTP id ce19-20020a056a20441300b00136e26b6400mr620827pzb.18.1689675626165; Tue, 18 Jul 2023 03:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689675626; cv=none; d=google.com; s=arc-20160816; b=eoYBFmrVyDWZWNzOu3Hz1oxM6+w2a/kPSO8qfucGj/8rOiTBQ9rArYN6/XzIHpThK5 DUzGSOVGAHolYbxaYRvRay8a3HQTrR55CnHcq9MGemimgcEtHz9TFxjj/4fq6r7N/wzv wbF7BVGw21XJpkQGBH02AytB2UThpe05X0hfzbFfhqwAelg0Z/Ouj+JJ6f6ygRAdkbkd XkOx/tgkRvN1sIMj76dIz8I+tE95yKlF/e3ep3kn9z+UOb4eygmsZuBvWlugLlY+KyKi HYszwwNLDT6q62qmrEj6b4n5spk4okWKbuP3uMi+lgWog4beWCRT2MrWr1U9PnQudUtm HrMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=wC3Ot5sta0dmjx2uu8oaVdTGluWU2uPcjitPyJACQqw=; fh=9uAujrBwMXYEbX6ORUGSiAvrNyAzOxSQS87AbvjTHw8=; b=zoLhE2QRjylJQmNYIEdZhcPaZyg8EmP3gVV9ZoIG+kyeWRqV+vhz4/I0d/pyBLz3eS NGv5wum6aPcca5LUZruyRwafhJWaispbqHv4w5UShlk+20/Sq0EY3nmHofLp32rvTSLG kzrX+AZ677/7IZrjhmec459Luglv/pTipnEQ0UPBFoP2DE5a85XPFD/Fd87lLdr3z/y4 QEBT7osw2mwEorHLXLoiI+fXK92GZImFxH7FiiMC70S751rA0eU4bmb6GJIZiufL2HXV Hs0CiHX21Ap05zBT7hCLAKcIJ89hRmXjWiFdv904nIWhKeYqfi8TSRmxdueBn3w+1msi tZxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="DU/gcDIX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a71-20020a63904a000000b00553a50c5d85si1369384pge.510.2023.07.18.03.20.13; Tue, 18 Jul 2023 03:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="DU/gcDIX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231180AbjGRKKm (ORCPT + 99 others); Tue, 18 Jul 2023 06:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjGRKKj (ORCPT ); Tue, 18 Jul 2023 06:10:39 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9467AC; Tue, 18 Jul 2023 03:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689675038; x=1721211038; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=X/RRuyAetnm+uR/pDnhkNQZeMBAEYZMSaoXG2VCqaP4=; b=DU/gcDIXTt1nbAiSwdnE0ajTy+QRmdh2hs2NaT000ZmyxfB1FfLRRwse JM/yQ/LWPfR2Ctmq8tcHQ53l9EvW10YNIRXd6WMoypSTXdD5CVB8t+ooN pTzFIi6wCSAtUUp3Og4FFvqy4I22ncJkyeLUBEMKK8WFvbwF8mRCz5Mlg 8BKqyJDEewnE9YpWySDx1lMFM3wreKLXIc/RlMhkatVURjG3TTRU1VBOF 7pTxtFeQr+iwxoe8MojV65LHd8X3aAJdt+DvZFWYujzDanZsXVIwON8Zf OvXkJoqV6d2fcg7Qhq+eKwqQITzUOxy67EvLqaPr4awmd3//UfvTZKrhB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="356109417" X-IronPort-AV: E=Sophos;i="6.01,213,1684825200"; d="scan'208";a="356109417" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2023 03:10:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="726891956" X-IronPort-AV: E=Sophos;i="6.01,213,1684825200"; d="scan'208";a="726891956" Received: from ijarvine-mobl2.ger.corp.intel.com ([10.252.47.53]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2023 03:10:35 -0700 Date: Tue, 18 Jul 2023 13:10:34 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Reinette Chatre cc: "Wieczor-Retman, Maciej" , linux-kselftest@vger.kernel.org, Shuah Khan , Shaopeng Tan , Fenghua Yu , LKML Subject: Re: [PATCH v4 10/19] selftests/resctrl: Express span internally in bytes In-Reply-To: Message-ID: References: <20230713131932.133258-1-ilpo.jarvinen@linux.intel.com> <20230713131932.133258-11-ilpo.jarvinen@linux.intel.com> <1dd10447-b03d-937a-fe55-ff324864c358@intel.com> <0c94daef-3642-9e8e-0e8a-3f8eaa2953e3@intel.com> <7eef29f6-297b-bb2b-e0d-ccef1aa2f14@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1402979010-1689674760=:1611" Content-ID: <3f602b41-ec78-4198-fb50-67ba13db8385@linux.intel.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1402979010-1689674760=:1611 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: On Mon, 17 Jul 2023, Reinette Chatre wrote: > On 7/17/2023 5:30 AM, Ilpo J?rvinen wrote: > > On Fri, 14 Jul 2023, Reinette Chatre wrote: > >> On 7/14/2023 3:22 AM, Ilpo J?rvinen wrote: > >>> On Fri, 14 Jul 2023, Wieczor-Retman, Maciej wrote: > >>>> On 14.07.2023 01:00, Reinette Chatre wrote: > >>>>> Hi Ilpo, > >>>>> > >>>>> On 7/13/2023 6:19 AM, Ilpo J?rvinen wrote: > >>>>>> MBA and MBM tests to use megabytes to represent span. CMT test uses > >>>>>> bytes. The difference requires run_benchmark() to size the buffer > >>>>>> differently based on the test name, which in turn requires passing the > >>>>>> test name into run_benchmark(). > >>>>>> > >>>>>> Convert MBA and MBM tests to use internally bytes like CMT test to > >>>>>> remove the internal inconsistency between the tests. Remove the test > >>>>>> dependent buffer sizing from run_benchmark(). > >>>>> > >>>>> If I understand correctly the intention is to always use bytes internally > >>>>> and only convert to megabytes when displayed to user space. The above > >>>>> implies that this takes care of the conversion but there still seems > >>>>> to be places that that do not follow my understanding. For example, > >>>>> resctrl_val.c:measure_vals() converts to megabytes before proceeding. > >>>> > >>>> Doesn't the use case inside resctrl_val.c:measure_vals() satisfy > >>>> the idea of only displaying data to the user space? From my > >>>> understanding it reads the number of bytes and only converts to > >>>> MB when printing the value. Or did I miss some detail there? > >>> > >>> It's for printing there yes. > >>> > >>> But it's not about span in the first place so I'm not sure why it is > >>> related. > >>> > >> > >> If this change is just about how "span" is interpreted by the different > >> tests then the changelog could be more specific to not create expectation > >> that with this change there are no longer "bytes vs megabytes" internal > >> inconsistency between MBA, MBM, and CMT tests. > > > > The shortlog and changelog are already pretty specific in mentioning > > "span" a few times :-). I added yet another "span" into the changelog's > > 2nd paragraph. > > There are many things to consider when reviewing a patch. There is the code > changes in the patch itself that can be reviewed for correctness but there is > also the review of the changelog's solution statement to review if the code > changes in the patch accomplishes the stated solution. In one sense the review > considers the code in the patch and in another the review considers what > code may be missing from the patch. Sure review can enlarge the scope, however, if I add some other things unrelated to span into this patch, it no longer is in the minimal form. > I looked at the v5 changelog and I am still left with the same impression: > The changelog claims that this change removes internal consistency between > the tests, which it does not. Since you posted the next version before this > discussion completed (which is not ideal) I'll respond further to that patch. > In the end it may just be better to drop the "remove the internal inconsistency > between the tests" claim. I'm sorry, it was unintentional to send it like that. ...I honestly thought I had addressed all the concerns you had by adding yet another "span" (even if the scope was already pretty clear even w/o it, IMHO). I see nowhere in the changelog mentioned that this change removes all internal inconsistencies between the test types. But I'm not attached to any particular wording, if the text is good enough for you w/o the internal inconsistency wording, I can cut that out. -- i. --8323329-1402979010-1689674760=:1611--