Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1648026ybv; Sun, 23 Feb 2020 11:37:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxCHXyWgJTH4BTdmtMRxFEegB7XSYAixPE7aoTF+CpWofmPeYG1jD1YnA+Q6s+ssrOlxE3y X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr38969557otp.346.1582486650303; Sun, 23 Feb 2020 11:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582486650; cv=none; d=google.com; s=arc-20160816; b=TJ0UX2i6MJG4bXaZvLBR6HD633d799DagUdYEKj9ryqN2udpmX4vP9miWA9kLtu3zD ZJ7OCms+EsCT9qUYHdy4w60cU9OCsRy990rKSIKZKiWbxjOZuLqmwmxy/De736TW1LDD qclE+D2oys1smhzx/RLC4bsNVYKKZQaqC1rOzEEoVvuZgNSMqhQpLfXP5wsuj72kfszR +Ada0mKVW0yqB7UNgKHyaOteVgw2942Js+OwiK3AF1Qnq4jAX80HQxwui/OkIyCNe8g+ 90fHiDX8fq86G1FNYPe5zu0B2dbPHVDo4L5jlD6egAdOD85bUZc1gCqAbTf5/NH3eVcC AGPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0TXVTKlDKKROSDXmOjqzvvw610aPgU4vf2Wf84SZQ8E=; b=ucbwkoaELhOizC640aKab3OpdKLZ9aikLPU/4JSQL6xnjKSn44Z2VMDW3MRQJHHilE Wd3/loDlg88NMZ7gUoiKvol9gibdSp5pqr8wKg4LCRlW+Adqi7lCAj0giWzNr0NH1O+L +p019AvdXiOtXEEn0WCDtx4omGw6STos+uW0yTWhrzL04m0NPZ/e5kOME2Nu1RCI+vO1 DFlweYK1Yu2MbR8Sf8pGz9vyGGjtmanVeua/ooQbkne2RWLHe+ovqbqQ4MA5wjlJXTBi zsbbcTEvaoarQjMwAXQQ5J0YXyzrnDYUPsxyrbnX3ihrafHbQTz2YCfOhfc/ZX6betmG QJQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bsBiTwGM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 193si3643595oie.51.2020.02.23.11.37.18; Sun, 23 Feb 2020 11:37:30 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bsBiTwGM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbgBWTgn (ORCPT + 99 others); Sun, 23 Feb 2020 14:36:43 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:54733 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726302AbgBWTgn (ORCPT ); Sun, 23 Feb 2020 14:36:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582486602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0TXVTKlDKKROSDXmOjqzvvw610aPgU4vf2Wf84SZQ8E=; b=bsBiTwGMlM812Vxv3gPVnwN0To+QmEDBiIAlRiUOKBbLnPi7bItRxKpkTrydBYFvFa2QPp J2LzPs4Kv/Tr4LJ6E5QNmAiVH3qFvjtp5DluoaAk88T+H0tErKTizlDOZBfKyfIPuJSC03 VeLam2tJmhWwHwzIjP05dzKo8T7d5aY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-16-ZnEfOCjkNKK_6y6xFrmgdw-1; Sun, 23 Feb 2020 14:36:35 -0500 X-MC-Unique: ZnEfOCjkNKK_6y6xFrmgdw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 766215F9; Sun, 23 Feb 2020 19:36:32 +0000 (UTC) Received: from krava (ovpn-204-19.brq.redhat.com [10.40.204.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 27C6019C69; Sun, 23 Feb 2020 19:36:27 +0000 (UTC) Date: Sun, 23 Feb 2020 20:36:24 +0100 From: Jiri Olsa To: Feng Tang Cc: Peter Zijlstra , kernel test robot , 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, andi.kleen@intel.com, ying.huang@intel.com Subject: Re: [LKP] Re: [perf/x86] 81ec3f3c4c: will-it-scale.per_process_ops -5.5% regression Message-ID: <20200223193624.GA16664@krava> References: <20200205123216.GO12867@shao2-debian> <20200205125804.GM14879@hirez.programming.kicks-ass.net> <20200221080325.GA67807@shbuild999.sh.intel.com> <20200221132048.GE652992@krava> <20200223141147.GA53531@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200223141147.GA53531@shbuild999.sh.intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2020 at 10:11:47PM +0800, Feng Tang wrote: > Hi Jiri, hi, > > On Fri, Feb 21, 2020 at 02:20:48PM +0100, Jiri Olsa wrote: > > > > We are also curious that the commit seems to be completely not > > > relative to this scalability test of signal, which starts a task > > > for each online CPU, and keeps calling raise(), and calculating > > > the run numbers. > > > > > > One experiment we did is checking which part of the commit > > > really affects the test, and it turned out to be the change of > > > "struct pmu". Effectively, applying this patch upon 5.0-rc6 > > > which triggers the same regression. > > > So likely, this commit changes the layout of the kernel text > > > and data, 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", > > > > nice, I wonder we could see that in perf c2c output ;-) > > I'll try to run and check > > Thanks for the "perf c2c" suggestion. I'm fighting with lkp tests.. looks like it's not fedora friendly ;-) which specific test is doing this? perhaps I can dig it out and run without the script machinery.. > > I tried to use perf-c2c on one platform (not the one that show > the 5.5% regression), and found the main "hitm" points to the > "root_user" global data, as there is a task for each CPU doing > the signal stress test, and both __sigqueue_alloc() and > __sigqueue_free() will call get_user() and free_uid() to inc/dec > this root_user's refcount. > > Then I added some alignement inside struct "user_struct" (for > "root_user"), then the -5.5% is gone, with a +2.6% instead. could you share the change? > > One c2c report log is attached. could you also post one (for same data) without the callchains? # perf c2c report --stdio --call-graph none it should show the read/write/offset for cachelines in more readable way I'd be also interested to see the data if you can share (no worries if not) ... I'd need the perf.data and bz2 file from 'perf archive' run on the perf.data > > One thing I don't understand is, this -5.5% only happens in > one 2 sockets, 96C/192T Cascadelake platform, as we've run > the same test on several different platforms. In therory, > the false sharing may also take effect? I don't have access to cascade lake, but AFAICT the bigger machine the bigger issues with false sharing ;-) jirka