Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2163609ybv; Fri, 21 Feb 2020 10:05:27 -0800 (PST) X-Google-Smtp-Source: APXvYqy7AoyvLZF0S7U2EvaoyHZC2A+LEC3oT4X13ybBG6PkwS7CDSUz9Unsnv92CrsO79MShKBd X-Received: by 2002:a9d:7559:: with SMTP id b25mr28482130otl.189.1582308327764; Fri, 21 Feb 2020 10:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582308327; cv=none; d=google.com; s=arc-20160816; b=NQmYvuFCq8KrXsJGvuVi2h11TisxkLQDfKCkZe1+Q4D48ApyDI1MnXTWMrMrN59JJg wJJXYqD15XeF27tf390jK6SMKdjX/muTRQsWfA4zbPnhDwAUAGvo8MPZS5keqspNCQk4 wkl3QSAmXcGgrntz6wYPR+GkjhPMF9TF/9sYgmTFPzAFTqa9LlgvkRMNLkTgba+Nenjt HlWEIq9Vb6axa0sI2Jh3kTqvTbAGfc+HZepdL2gQLkspY59B+QNE+TEgh28t21r00urZ Vw5zOAwMTi9jJ/gIKQ+V4JrahmkvxFnWfVmPZNZ0R8LoP/qg9Ul2wRlKpb/BthVdKZKA 5v+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=7Fn9k+1tea/DJOfVYBOEeDlLNKeWO8CVZzGrIpHb4Ik=; b=ThUesrNhrHbKQimyZ4gw8qNtwpuU5Ovpju5nqo1l9aSvhYy63SdHrJ6VAdRYLHHBTt nBa0YKbV1q2iaaVvPp21iyTiWekfhhm+91Fs4vjtGoxrbsPADfJyc0l5gEWU6tJjGGBH k+fM8XKirtHk06bdexsWvBIMklMs1mX4ABqYR0CuxmQ7UQYwRPPBw+e6KvDF6boIUCY+ DFwFoy31NTvGcGg282Qen8m5i72lEf4SVtl0WCQfLa43qQYzVLBPw+mJFwchnBDLjkza bzA9Vl1pABul0ykda4zejidsESimcXtxMqT2H0A4F5VIMib3DtoRIqpQOvsUK83PhsAw kKhg== 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 v22si1110712oia.30.2020.02.21.10.05.11; Fri, 21 Feb 2020 10:05:27 -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 S1729577AbgBUSFF convert rfc822-to-8bit (ORCPT + 99 others); Fri, 21 Feb 2020 13:05:05 -0500 Received: from mga01.intel.com ([192.55.52.88]:14812 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbgBUSFE (ORCPT ); Fri, 21 Feb 2020 13:05:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2020 10:05:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,469,1574150400"; d="scan'208";a="225289409" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga007.jf.intel.com with ESMTP; 21 Feb 2020 10:05:03 -0800 Received: from orsmsx161.amr.corp.intel.com (10.22.240.84) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 21 Feb 2020 10:05:03 -0800 Received: from orsmsx110.amr.corp.intel.com ([169.254.10.107]) by ORSMSX161.amr.corp.intel.com ([169.254.4.11]) with mapi id 14.03.0439.000; Fri, 21 Feb 2020 10:05:03 -0800 From: "Kleen, Andi" To: "Tang, Feng" , Peter Zijlstra CC: "Chen, Rong A" , Jiri Olsa , Ingo Molnar , Vince Weaver , Jiri Olsa , Alexander Shishkin , Arnaldo Carvalho de Melo , Arnaldo Carvalho de Melo , Linus Torvalds , "Naveen N. Rao" , Ravi Bangoria , Stephane Eranian , Thomas Gleixner , LKML , "lkp@lists.01.org" , "Huang, Ying" Subject: RE: [LKP] Re: [perf/x86] 81ec3f3c4c: will-it-scale.per_process_ops -5.5% regression Thread-Topic: [LKP] Re: [perf/x86] 81ec3f3c4c: will-it-scale.per_process_ops -5.5% regression Thread-Index: AQHV6I1t87VLv9kiVEyQ9lHGZx1Mi6gl75j1 Date: Fri, 21 Feb 2020 18:05:02 +0000 Message-ID: References: <20200205123216.GO12867@shao2-debian> <20200205125804.GM14879@hirez.programming.kicks-ass.net>,<20200221080325.GA67807@shbuild999.sh.intel.com> In-Reply-To: <20200221080325.GA67807@shbuild999.sh.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.3.86.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >So likely, this commit changes the layout of the kernel text >and data, It should be only data here. text changes all the time anyways, but data tends to be more stable. > which may trigger some cacheline level change. From >the system map of the 2 kernels, a big trunk of symbol's address >changes which follow the global "pmu", I wonder if it's the effect Andrew predicted a long time ago from using __read_mostly. If all the __read_mostlies are moved somewhere else the remaining read/write variables will get more sensitive to false sharing. A simple experiment would be to add a __cacheline_aligned to align it, and then add ____cacheline_aligned char dummy[0]; at the end to pad it to 64bytes. Or hopefully Jiri can figure it out from the C2C data. >btw, we've seen similar case that an irrelevant commit changes >the benchmark, like a hugetlb patch improves pagefault test on >a platform that never uses hugetlb https://lkml.org/lkml/2020/1/14/150 Yes we've had similar problems with the data segment before. -Andi