Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp429646lqd; Wed, 24 Apr 2024 06:49:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWT+LmXWoZzTnooEB/DlWEIZosAmJFImMxf2Fq7VUASdkZsq/t6PK1CTVxXt096bpt4NvvPAJy902akvloBFRJcT8GWSu1hadkavHUMVA== X-Google-Smtp-Source: AGHT+IGbVb0skavxHIL02YA/Kb/OG+WggRo/orAzmfv+m4HYh+z1cVs2jrhpxkIrC+cCiRzUSGt9 X-Received: by 2002:a05:690c:398:b0:615:9a1:602b with SMTP id bh24-20020a05690c039800b0061509a1602bmr2563622ywb.44.1713966582083; Wed, 24 Apr 2024 06:49:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713966582; cv=pass; d=google.com; s=arc-20160816; b=YImqitaxURFxmRoa9Q01a1hg/qJgEt3cShjONZ5acaHkfXR8xOj7a++n57lsFmonaL DcP1YPKXymX0SjpF5sxILyoIo00s6eato83JT/45mJFSMzpDpcmipuOhYoWpxtAxoId1 uQkxSK9Yj4To7an0SKxjfZkoTw1owXTlxlcI8/ZYK0x4NYnH7vlLWO8tDqd8T3diUqlJ nXYQmMeIUgPhkNvmI1tKzB0wFxK9zslMC6B6nAXDWXVRExTyBKDEClrafXEXye3yotUj YCdB/s23NC/D33iyPRppXSGTZ7+lqOhcEaxJphibVnplIdqHbnzF/rs2zQP1r9qWgT06 pNgw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JCs36F0PWzr7cYBSvNxUQg6C6ceYxo7oYx4QjH9HBWk=; fh=n4Sd0Swk3P6KaNt/kOdmECE1exxNh++Xz/pbdQySm8k=; b=ofIv2BQwSXsDDKKe9h8Mqei6A+ni8nMzGQHrDwcvgFfxV66HPUw6AsWTF18jS8D7H/ U2cKTe1qxSm4k38k/jtWbLqF1ObrTWoH6iYuzNFQ0cVU/QzQk8hwgTbaQ+eQJNdolk6y 5iPQ8u+UrI1m1PZbVxrQcnboUp8xEQQFCRnAfzy1hHy3NTaw3DkV7pghxf9TM392cJai lC0+H4ng73ciVfvl5P2qV2TYrKnh5f+QokKaVW2gM+9lX5vqf201NHVXutiGvproWSB5 2GNvLDfDtenGRwX6tSJJLYZVEn9pFBsanrflqZqPRJod++GQmi2u2JFvTL4FpbECjSGA ieGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ILc4bfp8; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-157003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h6-20020ac85e06000000b00434b9c6ddfasi14727515qtx.799.2024.04.24.06.49.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ILc4bfp8; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-157003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 AF25D1C219C5 for ; Wed, 24 Apr 2024 13:49:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 570FA15D5B1; Wed, 24 Apr 2024 13:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ILc4bfp8" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49AAD15CD53 for ; Wed, 24 Apr 2024 13:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713966576; cv=none; b=Vl6wsEp4+KQVOWZwmMl3PoypJ/D+93Ud56h+/YJw6OecADb3MBrZm0bqBeK0ZWnARHMBBgvxpyGXFGdwK03WW+32Lmu5BqGJ9aoj0v3UKkL5c2HzO/0GWuIghn90Bbojiym3+EMW1DbBI0jqwcDmMJmXVzgUDK6LaKYU/yz98kE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713966576; c=relaxed/simple; bh=BnENuuyvSSnIAyXgtHVPeaIV5FuuSZ0qrZUG3zD7EJE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fhejNB3f35GsdL5nmPpkUBK+Ac7doVrdDz2nCDk5JUttODevXpdN6jkOdkC5Ucs5pyZHge6slLRakbMvlv5ZP5kMunOUNCRulvxN5AjkUP8twvLpegcmyMQfnadNiWs9SDtlvG/p+wbID1aGOLZCAsGNDUBX2ppZ1vQLTVyTcTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ILc4bfp8; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1e2be2361efso1614075ad.0 for ; Wed, 24 Apr 2024 06:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1713966574; x=1714571374; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JCs36F0PWzr7cYBSvNxUQg6C6ceYxo7oYx4QjH9HBWk=; b=ILc4bfp8fUrmB+qMM2c9nlvnNBFqIbkhrCEgX2YFwXXNsTL91XDTDGAK53fhHBsf9G UUdmj1Xl8+D1HoazinJIsNm4qZyJiCBtM1SnX7zVFDOPlmNqdYphGzuBoELhKQxhmnlB ubU24Wk2X4BQDrefkCPFSt2Ow7Y9EI28TdudM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713966574; x=1714571374; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JCs36F0PWzr7cYBSvNxUQg6C6ceYxo7oYx4QjH9HBWk=; b=khzgodbW9+POLJGyzp3szQfeeX154Cjt8Ws9HMd4QTF2FRn7Hdm/JywkIYEk+7qFky WEtWTsTZkubCMnyDjLgBOgkIhK98b72QqEwZO4sbcrSFv5MeU+u87oQ2BRVLbYoKDMdU Toebu8uuyd2Uv4doW92E/ZfCIEqupQGiInxtMfOD03qFu1XoY2lk1BTUqWAwjjb3atnm zH+lzsMp0Ny8V8w0V6IYNk13Dp6yjZrjlPaEaeSYbASoxt+0CQKMVz2/1XagmDBia3qX oYLjBcOy6G4iY+h3O8Bn3PUEPQCl0jjVHUDLCQd6UmNsw+W/SfGjDLxLLxS5/gAbf5Hj FI7g== X-Forwarded-Encrypted: i=1; AJvYcCUmmDXS9EdICM/lNVlPgHdn0dYK+633AOszK7ULT2Xed03MQquNxWliMek1XoL+Ucf7Yl900yxIWH5ZZVEQPLu9M4pUvICcUNAGQMOI X-Gm-Message-State: AOJu0YxHNCAidVRWcbuqGmaCBmUJUfLQOLLsxcI7ErPKTDyhtSTaG2OK iUPjEs+TCQhAIJQsPEzuq4ZbH3aeB8upcecyYFhkR9hMeWj6xxFIjTTeclPCPl4= X-Received: by 2002:a17:902:8495:b0:1e9:9ffb:bab with SMTP id c21-20020a170902849500b001e99ffb0babmr2583007plo.5.1713966574470; Wed, 24 Apr 2024 06:49:34 -0700 (PDT) Received: from [192.168.43.82] ([223.185.79.208]) by smtp.gmail.com with ESMTPSA id p3-20020a170902780300b001e7b8c21ebesm12087790pll.225.2024.04.24.06.49.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 06:49:33 -0700 (PDT) Message-ID: Date: Wed, 24 Apr 2024 07:49:27 -0600 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 v3 00/16] selftests/resctrl: resctrl_val() related cleanups & improvements To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Babu Moger , =?UTF-8?Q?Maciej_Wiecz=C3=B3r-Retman?= Cc: Fenghua Yu , linux-kernel@vger.kernel.org, Shuah Khan References: <20240408163247.3224-1-ilpo.jarvinen@linux.intel.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240408163247.3224-1-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/8/24 10:32, Ilpo Järvinen wrote: > Hi all, > > This series does a number of cleanups into resctrl_val() and > generalizes it by removing test name specific handling from the > function. > > One of the changes improves MBA/MBM measurement by narrowing down the > period the resctrl FS derived memory bandwidth numbers are measured > over. My feel is it didn't cause noticeable difference into the numbers > because they're generally good anyway except for the small number of > outliers. To see the impact on outliers, I'd need to setup a test to > run large number of replications and do a statistical analysis, which > I've not spent my time on. Even without the statistical analysis, the > new way to measure seems obviously better and makes sense even if I > cannot see a major improvement with the setup I'm using. > > This series has some conflicts with SNC series from Maciej (Maciej has > privately agreed to base his series on top of this series) and also > with the MBA/MBM series from Babu. > > -- > i. > > v3: > - Rename init functions to _init() > - Replace for loops with READ+WRITE statements for clarity > - Don't drop Return: entry from perf_open_imc_mem_bw() func comment > - New patch: Fix closing of IMC fds in case of error > - New patch: Make "bandwidth" consistent in comments & prints > - New patch: Simplify mem bandwidth file code > - Remove wrong comment > - Changed grp_name check to return -1 on fail (internal sanity check) > I can apply these for Linux 6.10-rc1 once I get an Ack from Reinette. thanks, -- Shuah