Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6170177ybv; Wed, 12 Feb 2020 07:16:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwYjjRgHYzS9wE+yt3KLvvm5Frv6NGyWhGzlFUukdzCy6CshC1zhZMqgYngnS2q7DGsM4PB X-Received: by 2002:a9d:6183:: with SMTP id g3mr9762433otk.304.1581520578773; Wed, 12 Feb 2020 07:16:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581520578; cv=none; d=google.com; s=arc-20160816; b=q856Kc5DqGP6p7+1P68/NH+4wNmXFF2+8MK6fb+5KK7FUZoZ7L6EL5HXJaSmqo0ioi TMT0XGNNtcGsXbRMIzd+EbSDY6uon+1tWFmSBj8sGFn2qZ3sBXUQRdumLAgrS6x5ELbe /b6zXPJ/7PtsOznitIesV9G4WochjeYMyRRZkuv+b9J0BAjSJz+e08NrNqe2h3UYt1Fr BojnLetjfdV+H2CaBArQNyxraWLXS9RZ9xby/UL6RvAlnZRX4zs+RvBbsogxNz68Tz/+ PHw3Zs3iEZWbcSYxEYGQWMq37oY2h4P1U/OdEJE9CWqSxQdD+CgXJvTEth4MjMYQMkvw sLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ILHk25Z6e3Muar6lXv/ocKcoFx7TWGCEd6A89ZLqjg0=; b=FG8p74d4m4+1Ew/XX/n1/yEJiXr1oQnhw2k/eOqicbBot7wWiyfu+LuXB5M7/i3EvK VsZdLTlegWrov9PqdCkao0sx2E9h4TNRs02nISPTisayJft4Aq1+9oP92ExONTyyk35Q ddAC05TyNUd2E+34vTK4j7EKU8YHFaWr1QXasgbH//qgXQOPilF7viunowwRPjt273D8 3ivCid6Lb6RXaRBFpetmHR5NQaDn1GVwtCBUhnk5tIkdqoObRl3BkcLz9EievmwLzbj7 IJYxuyHb9oPCv7fdkboIMGwzFIcsPLgc4K6j/33F/XdX3zwgnV+TtoKThRl9CxpCaEeJ N/1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si319800otc.105.2020.02.12.07.16.01; Wed, 12 Feb 2020 07:16:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727963AbgBLPPo (ORCPT + 99 others); Wed, 12 Feb 2020 10:15:44 -0500 Received: from mga05.intel.com ([192.55.52.43]:30081 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727458AbgBLPPo (ORCPT ); Wed, 12 Feb 2020 10:15:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 07:15:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,433,1574150400"; d="scan'208";a="313430830" Received: from linux.intel.com ([10.54.29.200]) by orsmga001.jf.intel.com with ESMTP; 12 Feb 2020 07:15:43 -0800 Received: from [10.251.28.99] (kliang2-mobl.ccr.corp.intel.com [10.251.28.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 0E5075803DA; Wed, 12 Feb 2020 07:15:42 -0800 (PST) Subject: Re: [LKP] Re: [perf x86] b77491648e: will-it-scale.per_process_ops -2.1% regression To: "Chen, Rong A" , Andi Kleen Cc: Roman Sudarikov , 0day robot , Alexander Antonov , LKML , lkp@lists.01.org References: <20200205123110.GN12867@shao2-debian> <87tv44danp.fsf@linux.intel.com> <782f409a-ff90-831c-56a0-abb3c31ab8d8@intel.com> From: "Liang, Kan" Message-ID: Date: Wed, 12 Feb 2020 10:15:41 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <782f409a-ff90-831c-56a0-abb3c31ab8d8@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/12/2020 5:56 AM, Chen, Rong A wrote: > > > On 2/6/2020 4:47 AM, Andi Kleen wrote: >> kernel test robot writes: >> >>> Greeting, >>> >>> FYI, we noticed a -2.1% regression of will-it-scale.per_process_ops >>> due to commit: >>> >>> >>> commit: b77491648e6eb2f26b6edf5eaea859adc17f4dcc ("perf x86: >>> Infrastructure for exposing an Uncore unit to PMON mapping") >>> https://github.com/0day-ci/linux/commits/roman-sudarikov-linux-intel-com/perf-x86-Exposing-IO-stack-to-IO-PMON-mapping-through-sysfs/20200118-075508 >>> >> Seems to be spurious bisect. I don't think that commit could change >> anything performance related. > > Hi Andi, > > I commented out some lines in arch/x86/events/intel/uncore.c and > will-it-scale.per_process_ops increased. > > commit: >   v5.4 >   b77491648e ("perf x86: Infrastructure for exposing an Uncore unit to > PMON mapping") >   f33fe1b258 ("test") > > >             v5.4  b77491648e6eb2f26b6edf5eae > f33fe1b258b2a4b2fc97600b2b  testcase/testparams/testbox > ----------------  -------------------------- -------------------------- > --------------------------- >          %stddev      change         %stddev      change %stddev >              \          |                \          | \ >      47983                       47004 47647 > will-it-scale/performance-process-100%-signal1-ucode=0xb000038/lkp-bdw-ep6 >      47983                       47004 47647        GEO-MEAN > will-it-scale.per_process_ops > > diff --git a/arch/x86/events/intel/uncore.c > b/arch/x86/events/intel/uncore.c > index 55201bfde2c84c..0dc9c455423d99 100644 > --- a/arch/x86/events/intel/uncore.c > +++ b/arch/x86/events/intel/uncore.c > @@ -887,7 +887,7 @@ static int uncore_pmu_register(struct > intel_uncore_pmu *pmu) >                 pmu->pmu.attr_groups = pmu->type->attr_groups; >         } > > -       pmu->pmu.attr_update = attr_update; > +       // pmu->pmu.attr_update = attr_update; > >         if (pmu->type->num_boxes == 1) { >                 if (strlen(pmu->type->name) > 0) > @@ -903,7 +903,7 @@ static int uncore_pmu_register(struct > intel_uncore_pmu *pmu) >          * Exposing mapping of Uncore units to corresponding Uncore PMUs >          * through /sys/devices/uncore__/mapping >          */ > -       uncore_platform_mapping(pmu->type); > +       // uncore_platform_mapping(pmu->type); The patch is for SKX uncore. The test machine looks like a BDX. So the mapping_group should always be invisible. The attr_update should not update. I think there should be no performance impact. static void uncore_platform_mapping(struct intel_uncore_type *t) { if (t->get_topology && t->set_mapping && !t->get_topology(t, max_dies) && !t->set_mapping(t, max_dies)) mapping_group.is_visible = NULL; else mapping_group.is_visible = not_visible; } Kan > >         ret = perf_pmu_register(&pmu->pmu, pmu->name, -1); >         if (!ret) > > Best Regards, > Rong Chen > >> >> -Andi >> _______________________________________________ >> LKP mailing list -- lkp@lists.01.org >> To unsubscribe send an email to lkp-leave@lists.01.org >