Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp35319lqg; Fri, 26 Apr 2024 08:07:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9/vdHTU87irFu+suXhPyCX2P1Ji1SiA5aiGTScOiOIeXosDV3OktyIgbRVz9jIJrPrzlpZ8k5UJoDGUmaR/MfWtbJurjFTkOCwDBQrg== X-Google-Smtp-Source: AGHT+IHDISHoBoCoF0e+kZ3Ub9sgU0T63mwdX1RXY+72+PkL7Fwwc8LnjetUBIIoROBGUkAtZhkq X-Received: by 2002:a05:620a:8328:b0:790:95cf:c784 with SMTP id pa40-20020a05620a832800b0079095cfc784mr2770224qkn.78.1714144077045; Fri, 26 Apr 2024 08:07:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714144077; cv=pass; d=google.com; s=arc-20160816; b=JzArtAZQQghHkuRoJ4FHo3X/suu66EGtHvES4EJjXKr5IZw+yTdLsU5s0cpyrC5km0 y5RUbd/2OYctloIMMGQNs4t/2afvXxgH6kDzw17bZ1CfvTJGPzOS70Pp9lYuUsnbD+G+ KPQuITen8pHrS+5qcyxMeShnsS3DbGnf6tiY02Ahz0OvjcD7iIn/3QAFJTunbML6VZSZ omosT+0oFy0MzJur4yzhcXy82dNtbkVHHRLjUxebWsg8ksUNo+Il4qn+p8MGjAlvzHHp 0w13lFJw4QsSeTxgRHdD/8JkLXz/chSkKOBKPIx65C5camQiZkYT4erurkgKhfPyoVkk Fd3g== 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:cc:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=hbxoTiQU/ubcqpamikPiejIAlAdNfX6cSSe/RyWGW0Y=; fh=dckI+2wnqak7AxlNfUmueVXgTGWN60N6lY9n65nrXrw=; b=dsMHOyZ/hWFU4EBjC+mvrQUCLLv+mANkDqUuBPRVc6tYpm9e4gwA1eYFr6Vp8WkLho dgmU/CsVweBi2lxqER0OVoegbG62CfjfzY/b2DVvR3X7/SVPO2L67hivZOsRCjvZITuc lWJzUYOX1MXpE2YYTyt/CqgO7Mvb7+hvt7oMmPSi4Va9ABFuzojuBEZapfoADOiAUguq +ZX0u8NDdFiH/brMcnGcUjUtA01F/oJR4r3n4eq5SXEgxFrTR4F8/xjJzt6+hyh2uxfY Ushpmlus2jTtj/I8zIBtka5JI4B6lZoBGcZmC2Rb4SfJF6JohPbxbxNvJa2wNLFi+Jzy 2XjA==; 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-160209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160209-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. [147.75.199.223]) by mx.google.com with ESMTPS id vu1-20020a05620a560100b0079088fca242si8129671qkn.749.2024.04.26.08.07.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 08:07:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160209-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-160209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160209-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 9BF171C248D8 for ; Fri, 26 Apr 2024 15:07:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 515AE14A4EE; Fri, 26 Apr 2024 15:06:37 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2512414900B; Fri, 26 Apr 2024 15:06:34 +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=1714143996; cv=none; b=d/1L6GdNNiYfIL04KhO3rZOHCsLKyGUIupmVBgc9SGmyvgJ87S28RYcagO4H/pbS6JiobrgdhjM4fTQtc1ElS/aBK3yQRvEcYM8mne9PBvdub3E47/FfW0ccTcLMbl4nWgN0a5xT0zwXKMkDH+ZW47qXPtCmHhmzDmqB1jmr+J4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714143996; c=relaxed/simple; bh=LNCspRv71TcIP3ZbJ/TMAX90WJJx42Sm7l811YLKB4s=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=hUE1+WyENVgS8He6/f2htAGr+Gxdq9PFsQtKGycvi0R0YP8k/GhtzaDqCYA+M/IkXNOoYr00riEyY4eacb4kq9Q3JfsTcvDZFACD25csJMWyrLEQPL0vsXWrH+Izja4784/2OwrarmBfkohjFcQVeh1WVJ449ez8PejqtqOxuLU= 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 460FD1007; Fri, 26 Apr 2024 08:07:02 -0700 (PDT) Received: from [192.168.1.216] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C09AC3F73F; Fri, 26 Apr 2024 08:06:31 -0700 (PDT) Message-ID: <3e54fea7-2a37-4774-8a6a-85f75cc4a9ea@arm.com> Date: Fri, 26 Apr 2024 16:06:29 +0100 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 v1] perf tests: Run tests in parallel by default To: Ian Rogers References: <20240301174711.2646944-1-irogers@google.com> Content-Language: en-US Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org From: James Clark In-Reply-To: <20240301174711.2646944-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/03/2024 17:47, Ian Rogers wrote: > Switch from running tests sequentially to running in parallel by > default. Change the opt-in '-p' or '--parallel' flag to '-S' or > '--sequential'. > > On an 8 core tigerlake an address sanitizer run time changes from: > 326.54user 622.73system 6:59.91elapsed 226%CPU > to: > 973.02user 583.98system 3:01.17elapsed 859%CPU > > So over twice as fast, saving 4 minutes. > Apologies for not replying earlier before this was applied. But IMO this isn't a good default. Tests that use things like exclusive PMUs (Coresight for example) can never pass when run in parallel. For CI it's arguable whether you'd want to trade stability for speed. And for interactive sessions there was already the --parallel option which was easy to add and have it in your bash history. Now we've changed the default, any CI will need to be updated to add --sequential if it wants all the tests to pass. Maybe we could do some hack and gate it on interactive vs non interactive sessions, but that might be getting too clever. (Or a "don't run in parallel" flag on certain tests) Thanks James