Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp588056rwd; Mon, 12 Jun 2023 19:23:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cuajurE1xJENwvrZR9wjv+tNle0Hw8in8R9gLrPhAT5h9zsi43ra3KACH+WqklZpwhn+3 X-Received: by 2002:a17:907:6e86:b0:978:8e58:e19f with SMTP id sh6-20020a1709076e8600b009788e58e19fmr12083331ejc.16.1686623016456; Mon, 12 Jun 2023 19:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686623016; cv=none; d=google.com; s=arc-20160816; b=PYh7TGhEPJJ5dQU2MSVp2hryUvqL61W22A1I1UUoWV78GqS5TKYoZj7DHvUhLI3A9n JWr07Shd8aOHkxK1l+xp9sbgnyN+XmhviSz+GN4vcktlEPd2vyMTJXSJWB2LVLA9h/71 1DRCryAZcmZ6lzMXp1JksWApab/0rEdteFmsaTpKzOjg8hfLtzPbsfSGXAxkWJ1Dk45J L9lfbbHMdpYZxJ4Wn8uUDmj84elZ/pCw6SRdfmQ6MtU30mUV41UVaZxBayMsFzq8WM7H Vx/O+eWXQFDsBgoc0rFJ38LOVcnMCSzr7+GuxtWY+iSbpM9CBwXnfw7BZbrap4QxZKRZ uThQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=zhXJfiL5ULj1152jX5FOKWS6eDwVCCOj4nUynuVHhUE=; b=h5KKLF4kxk/aWHvbxDW3Wn4F3IZLwqWThNGJgVrnjlIKqnfUe2W4xQ/bosRpJCPoWM /avs8ovlc3sbUQ5hH9U72PCQsCdCuWOkNI4wQLFpOAXzCdmU+GOhg/gSko9JC09rwkFd Y5uyhyxT4ZIfVkz5mOsSjuEdeVOlewU7P2li3OOa4Y5GnVSQCqSphI79c/WQCFfYKTwl 48MHDoS+zFGb/qAGZ5fT5+12su4cAvEHYOETXKw8zo5BhP2tqgrYwZZ2PCi61F6mGKxj X+ziRdLl44gPugf4nokiF94YWm3rd2iu5ZnJB3fUveivjiIbj/3fYQ33ngVNMG5HrY7/ NZTQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24-20020a056402101800b005163b432854si6945402edu.154.2023.06.12.19.23.11; Mon, 12 Jun 2023 19:23:36 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238845AbjFMCLL (ORCPT + 99 others); Mon, 12 Jun 2023 22:11:11 -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 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,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 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.