Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5515393rwp; Mon, 17 Jul 2023 05:35:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCdByrwj618YZ85L/3YRoGfG98JF0myNgBpQdfBo6jm4zTDwXyjvk4VbC16JOPYGPZOKI1 X-Received: by 2002:a05:6a21:33a0:b0:134:72be:2234 with SMTP id yy32-20020a056a2133a000b0013472be2234mr6726952pzb.26.1689597324868; Mon, 17 Jul 2023 05:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689597324; cv=none; d=google.com; s=arc-20160816; b=cr70Gnw6MGROiGVfauc+bM83qx8edrzrKdFXOjW3FnR5bNNyC6bttUvsjNdmA9NeE1 T8a/Ug9+qsXvbL7xgeHAkRIWaPTh6/bucDwPEETYpK3HzGC7b3eegPj9f4aO8JR7MSGy gWAhkRuOMfXHS7G4F7MeQJcd/LoSDQzYnfrtxgzn6BbfTxkMMdCknIyvW7rwg2QrM1Q1 TUKCOrJzPNQY8BIF9unYI03ImBTWCv9jsjFfAO9txkS0MRakJuQQ9j25R6MhxDWcuKPu get1/MQKaLnC2kyhzCpkuMNBZ0l6O38wyXcCalwayx8ym/U+Fowt2WJRdnKfiwe02g0T 0TGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=KIW5Fsf/tEyfp42k8EVwQh2E2sFpxOZ8bmJGlxeB3lg=; fh=hJMTMWbZI0CeV9L1xI/cYDeBW6u9izMii9+xIg9Ufvc=; b=SBQUaQtD1CejCFzZN8OSubdY8C0BOS6efnrehVHnCMQmBl/lDkAHanmixJSMZ7ae2c zAL7Bkqcy2Li/sJ1Sw645B8FLuol7hxdDUzSQavpXP/g4a3dDwgodh3bGe+iW3BddHn7 jd7dWWoIscOGlogdtm/b3UF2QS2Gq4F5M1Yl8+rWkAMasfljEbFPdY6R2VajCGuPhVti xBYfItcnzLCXc0AUCRU3KjTspGdVoSVV7J/J41llqKPZgLdFPcdx2/EEykxTUaRN6bIM fjK46it45Yw3qItTdzQVISfYZQk9s4AWrHDRHirFlwWJXWDaBR/CyWjDM8BqpipEIbJ1 T7lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XKhQ1Kx8; 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 m12-20020a6562cc000000b0053f2551834fsi4182013pgv.552.2023.07.17.05.35.12; Mon, 17 Jul 2023 05:35:24 -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=XKhQ1Kx8; 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 S229801AbjGQMbD (ORCPT + 99 others); Mon, 17 Jul 2023 08:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbjGQMbB (ORCPT ); Mon, 17 Jul 2023 08:31:01 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EECAFE4F; Mon, 17 Jul 2023 05:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689597060; x=1721133060; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=IALTvRizVydvE6kCecPGFlOXq43R/hzRHUtn5JcSzoA=; b=XKhQ1Kx8mh1NpIchXVoRUS/baSzxn9RgynnBRuoptJMv41q2Woyn/aCJ plrUYXNJTPkKCxYYlf4z+5V/VrSDz/DZ7WN+rIaKbE+YIELDQ+09R2seo A86Sw5/s63/Lzwbs426fXa9VyRyPooOS/tPuPmh781fwG/PGLjwYi+R7j f82K7thkEdhUeupb7wUno4QuYEMRBOdIWebYwBhNt3TYJzcp/awBDi/J3 32IjuOaNCB59p9Hc80DloWy8H4OQDYHaXAMXbdOkz42Uyh3oAfTSWQPYh OPCFDH81Vaa2wOgSEDuFE47LYZ3fb2Sx3AF9rCa6oCzkA83vDsa5RgSDI w==; X-IronPort-AV: E=McAfee;i="6600,9927,10773"; a="350780158" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="350780158" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 05:31:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="969869426" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="969869426" Received: from dkravtso-mobl1.ccr.corp.intel.com ([10.252.45.233]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 05:30:57 -0700 Date: Mon, 17 Jul 2023 15:30:52 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Reinette Chatre cc: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= , "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: <7eef29f6-297b-bb2b-e0d-ccef1aa2f14@linux.intel.com> 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-906854338-1689597059=:1907" 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, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-906854338-1689597059=:1907 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT 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. Your general observation about the other MB/bytes inconsistency is still a good one so I added it also to my todo list, it just doesn't belong to this patch (IMHO). -- i. --8323329-906854338-1689597059=:1907--