Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3222507ybv; Mon, 24 Feb 2020 20:54:45 -0800 (PST) X-Google-Smtp-Source: APXvYqw0GxfKlEIkdk2fR4NwsdHf7vOzDK0phd/gpqJeA6++YH/4wh8DF84rFtC3GLrDc3fzju5W X-Received: by 2002:aca:dd05:: with SMTP id u5mr2038721oig.91.1582606485219; Mon, 24 Feb 2020 20:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582606485; cv=none; d=google.com; s=arc-20160816; b=ksUeiq6GjBgB8nGQK0xtlkdO8QQY6Tp3RJ9BXnlsA0Huxww34OeT8clxRWM0sG0piU CiLtTc0c6adM/Z2r9+XtLPFp4sm1BXuP3sHWUHxK8eZXz7eEx9iaoJE6MkxGvAwJArbS FcTjEuOcGmqfXIZs79kh9wbmFy07gWVKXqH9tbn2/jsRY6Afp/6hdJmW9G1uJTBADjLi a7s1OOLKYbYMySkYVEFHZ9sSIWFQkZL18bTDNuMuCBN1T8RZz6U8gqsILvMtY2SyIJie zyschb7HgLEEtuNk7IuuULUN25PS1dpy2NdIKztM/P9FFZ0F7QVsfVwfeNupseTZFfol WgDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7rx27kfCsF9BEpfbpb7u+wr1dyLu3eSxkayjoM+ywc4=; b=wxyLjM/1NvLRDRujuY3cJWZwYvgoQEB2tFyRr3SiPs7q/jTJUDfMdS42Ibe+wcL5Oe qkiXlXc5f0BP24JYaA0ZE6t3ZqEsnDgXh2BchW6XraoVllD1G9ImkHI4hblMdC85AOdw /N6rrjE6iMLnnVitvWsUI8cJ+u2hMntVA8GZYRG2IlUv6jXK6Iookt1SAyByBAL2oidT Kuw8BaVntKBTNeQGxN5R3HEZ31vQiuHti7oS0iS+BHCbR+S/Rj+wT/yLTNHritAkziwC MDTQVlovF2UXqhJQXyHhHoTuDmrilVPrN7TI/uAxouupOKTjc77FDNpjPjj1u2ZtTMW/ 8QXA== 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 a22si5949754oii.98.2020.02.24.20.54.31; Mon, 24 Feb 2020 20:54:45 -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 S1728883AbgBYEx4 (ORCPT + 99 others); Mon, 24 Feb 2020 23:53:56 -0500 Received: from mga02.intel.com ([134.134.136.20]:17213 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbgBYEx4 (ORCPT ); Mon, 24 Feb 2020 23:53:56 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 20:53:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,482,1574150400"; d="scan'208";a="255826497" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.113]) by orsmga002.jf.intel.com with ESMTP; 24 Feb 2020 20:53:50 -0800 Date: Tue, 25 Feb 2020 12:53:49 +0800 From: Feng Tang To: Linus Torvalds Cc: Oleg Nesterov , "Eric W. Biederman" , Jiri Olsa , Peter Zijlstra , kernel test robot , Ingo Molnar , Vince Weaver , Jiri Olsa , Alexander Shishkin , Arnaldo Carvalho de Melo , Arnaldo Carvalho de Melo , "Naveen N. Rao" , Ravi Bangoria , Stephane Eranian , Thomas Gleixner , LKML , lkp@lists.01.org, andi.kleen@intel.com, "Huang, Ying" Subject: Re: [LKP] Re: [perf/x86] 81ec3f3c4c: will-it-scale.per_process_ops -5.5% regression Message-ID: <20200225045349.GD63065@shbuild999.sh.intel.com> References: <20200223141147.GA53531@shbuild999.sh.intel.com> <20200224003301.GA5061@shbuild999.sh.intel.com> <20200224021915.GC5061@shbuild999.sh.intel.com> <20200225025748.GB63065@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On Mon, Feb 24, 2020 at 07:15:15PM -0800, Linus Torvalds wrote: > On Mon, Feb 24, 2020 at 6:57 PM Feng Tang wrote: > > > > Thanks for the optimization patch for signal! > > > > It makes a big difference, that the performance score is tripled! > > bump from original 17000 to 54000. Also the gap between 5.0-rc6 and > > 5.0-rc6+Jiri's patch is reduced to around 2%. > > Ok, so what I think is happening is that the exact same issue still > exists, but now with less contention it's not quite as noticeable. I thought that too. Since we have the reproducable platform, we will keep an eye on it, and report back if anything found. You've mentioned the patch's effect on small system in another mail, I ran the benchmark on a 4 core Skylake desktop, and it only brought 2% performance gain, as expected. > > Can you find some Intel CPU hardware person who could spend a moment > on that odd 32-byte sub-block issue? > > Considering that this effect apparently doesn't happen on any other > platform you've tested, and this Cascade Lake platform is the newly > released current Intel server platform, I think it's worth looking at. I'll try to reach some silicon people, and get back if found anything. > That microbenchmark is not important on its own, but the odd timing > behaviour it has would be good to have explained. > > And while the signal sending microbenchmark is not likely to be very > relevant to much anything else, I guess I'll apply the patch. Even if > it's just a microbenchmark, it's not like we haven't used those before > to pinpoint some very specific behavior. We used lmbench (and whatever > that odd page cache benchmark was) to do some fairly fundamental > optimizations back in the days. Thanks again for the patch. - Feng > > If you fix the details on all the microbenchmarks you find, eventually > you probably do well on real loads too.. > > Linus