Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5693123rwd; Mon, 12 Jun 2023 08:26:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7H3V6WSUSzPL09u78Us3AW0WhbTuRky3zNrkUjGvxQeRd9wRfT344h1cxo4vz9Uk8DeaFS X-Received: by 2002:a05:6402:204a:b0:515:4043:476f with SMTP id bc10-20020a056402204a00b005154043476fmr5533026edb.36.1686583581389; Mon, 12 Jun 2023 08:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686583581; cv=none; d=google.com; s=arc-20160816; b=tQ9sYKBe0R++oy4t12SI5JEO4QOKCOhhnWY/Osb2KYwxwtyxTU95Qh0DnD9biqpdrV xDWVPTOSJse/maJqQ8gETp8ObMMm9bcr8UxDAReK8pDY3ImX0xd8Y/WqsD/Uz90dqkFn nrAIeAl3Qz0JcpP67itkzhQvT+BJcGlSmx/J9nlhG/av4/MKhS7Ei9C3sSZI/2vxLfiu AFrrd+ZvxftfG5mcSuMVVjFGVps5eKtbu5uohzdtLuj9wWvwNZT5GQbJlADxE5nSZmwl Dv5icNIjE3bJ8HVCkStnGdUlKltoww40D1RQpWafAjeTyA78ungh4X+1ze/WSJs9Q7iB ujBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GkyHPB5PJqVXyya1HJmHa8ORABYaU/NCZ0d93W2Vf3I=; b=AlxXiV8P6yxOsT1J0aLnrCpP1nzcuNJYhafH/0sF+4hB9nU0zIacxySFNrIRLZjfvz OpV506Qct2WqaGDwgvHoNIMlKypqQESGIREMQCMJV64dbUAxyzIjgc30M6iQZapFXrFB sHhsjhD6dEBE0pvhMvtWM0TT7ie5OnQatib1IhJFEHCJ+aE0U+rPFyAbedh/mNJx085S VrPdfrqaOKDmoCK4yD18xrkwKeYm82EdvyCRF5awcVj2ED4vUUZFT3FYLlATTS9G9Vwr gl0geK3/u41mrFzuAxqZ9o1vDM07BC9I4PeUAMskW2/Inja7K/1F+2LJAY1nJRbIXUJa egCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=fmrdvYEE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a056402089300b00514ae058a72si5768981edy.606.2023.06.12.08.25.56; Mon, 12 Jun 2023 08:26:21 -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=@infradead.org header.s=desiato.20200630 header.b=fmrdvYEE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238432AbjFLPGV (ORCPT + 99 others); Mon, 12 Jun 2023 11:06:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbjFLPGU (ORCPT ); Mon, 12 Jun 2023 11:06:20 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C320CC; Mon, 12 Jun 2023 08:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GkyHPB5PJqVXyya1HJmHa8ORABYaU/NCZ0d93W2Vf3I=; b=fmrdvYEEH5jeX2zgYzbnx/CKGN BNUqZ4JZRQ1qqtjfGKTyQi/z8jnposyGDi/OuWzJp2qVZlDhAYqTdWlHOdDE0zTqVWRWQNVCTxDWl C7pxtmwwpK0vDIJrqlqeY13CoGnlcOO8u2+6/TSxPNXgX/+8AEuq3i7PBq/es989dfXrwSbdji/KZ LhRoBMyFLq1QgXXy16jBkyb4CcHdYP7umrZB2lM/BTuWrkt6NOS0rI8XbE5RD9BeKqo8n7v24thFl Bk1HaX1aRU4BULWG0ECOR3JRWv/2x4zGLQjfNyxT98+jFk8hVMk2uzUDb+SjQLOc3zfGagayZpXev x1GUo3sw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q8j7F-008uNy-32; Mon, 12 Jun 2023 15:05:58 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7A9CA30031B; Mon, 12 Jun 2023 17:05:53 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5EBF520D70605; Mon, 12 Jun 2023 17:05:53 +0200 (CEST) Date: Mon, 12 Jun 2023 17:05:53 +0200 From: Peter Zijlstra To: Arnaldo Carvalho de Melo Cc: Yang Jihong , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users , linux-kernel Subject: Re: [RFC] Adding support for setting the affinity of the recording process Message-ID: <20230612150553.GM4253@hirez.programming.kicks-ass.net> References: <159de73b-fdd6-6df8-4f77-73c628fe641f@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Mon, Jun 12, 2023 at 11:24:26AM -0300, Arnaldo Carvalho de Melo wrote: > But could you please spell out the use case, why do you need this, is > this so common (for you) that you repeatedly need to first taskset, then > perf, etc? I'm thinking this is due to big.LITTLE things where the PMUs on the CPUs are different. Intel recently having stepped into this trainwreck, there's now a ton more people 'enjoying' it ... So what people often do it is affine the process to one type of CPU and then perf it so that their measurements are consistent. It all sucks, but given the situation, it might be the best option :/ Ian was working on improving the whole hybrid thing, perhaps he has more opinions.