From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9DA3C7EE2E for ; Tue, 13 Jun 2023 02:11:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233304AbjFMCLM (ORCPT ); Mon, 12 Jun 2023 22:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234698AbjFMCLK (ORCPT ); Mon, 12 Jun 2023 22:11:10 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2043D131; Mon, 12 Jun 2023 19:11:09 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QgBjw0w54z18Lj4; Tue, 13 Jun 2023 10:06:12 +0800 (CST) Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 13 Jun 2023 10:11:06 +0800 Subject: Re: [RFC] Adding support for setting the affinity of the recording process To: Peter Zijlstra , Arnaldo Carvalho de Melo CC: Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users , linux-kernel References: <159de73b-fdd6-6df8-4f77-73c628fe641f@huawei.com> <20230612150553.GM4253@hirez.programming.kicks-ass.net> From: Yang Jihong Message-ID: <47f5ddbd-f1cb-1da7-cfca-af67962e6797@huawei.com> Date: Tue, 13 Jun 2023 10:11:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20230612150553.GM4253@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 2023/6/12 23:05, Peter Zijlstra wrote: > 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. Yes, it's a scene, the purpose of setting affinity is to ensure the stability of recorded events. > > 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. > Thank you for your reply. > . > Thanks, Yang.