Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1721260rwd; Mon, 15 May 2023 01:59:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73HNYiUboiaYWZnziZ94u/m6BblIQobniMEkLwyWedDuWuA3YIMhIuVok4wJlxM1v5vpv2 X-Received: by 2002:a17:902:c1cd:b0:1a9:40d5:b0ae with SMTP id c13-20020a170902c1cd00b001a940d5b0aemr34180494plc.12.1684141161879; Mon, 15 May 2023 01:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684141161; cv=none; d=google.com; s=arc-20160816; b=dzVgV3xItBU3uNAhhj7cnb2EZQYsC1N12SivSBQV97FCPVDd5wv5TsILmLVVIMNTg4 /YLtcI2SjgWv+FnMcUOmRN0+aZ13AnfRfCMvXm7m3AtYwUNdnEKM4L8D9iMkuFYO6Tfc TyD1xM9U/bIB4F8PDVDtWe2RsNWknqCSpnYzZi+9EkIeBWXVAfPd8jm8mKbK48qE+IPb Ii49XXJ1Z8Zu3MWsRxFKTuyONFaahERQIJPPCns5kOX3HwnZxNWqodSKMUeqt5fJoqI/ kmxKHAQX6rhdwGyupz+lKCGJoPSybQq1+3of63at9jpk2Zg1m60x26+3NjzOVA/fL3Om 0AkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RD5vUeFE3A5d4FsldbQHnKJtFa6t2QWFhZv+yAemSbs=; b=PrcrwZKO+1iALPuOtT0PtdmwRZYiW/Xz/Ja7mWbJqaVLEYfadwNRBii8nGqe4GaH2K oanq8iVRsOkcDnacyrv/VLZEAMz9EWLcJZcpG85enOTVwALRuj0rJlOal8Gc4o2efeQc CymmSWfXzI+IqTV8v/h0yhzMxd4MnlFDc/S8OiJW8maAQvyioC/UQ/2ESL4BwmUz3LXg rtlsyKJ3/3KXPZkk7TXZ2k9vMXKeDJICA+p4ZWjCCoUaKAT2k+16rpUd4CEiIGDnwYeK 6iSsRDP6NpAcqUX7TDVO6/ES7bBIm6E7eQG1StKGEhGRwm/7MVC13azMlWFyCqXkXYH2 zRYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ehBz+j3a; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a17090a0c8e00b00250807e3c5dsi19056812pja.137.2023.05.15.01.59.06; Mon, 15 May 2023 01:59:21 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ehBz+j3a; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233460AbjEOIk2 (ORCPT + 99 others); Mon, 15 May 2023 04:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjEOIk1 (ORCPT ); Mon, 15 May 2023 04:40:27 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2080E1 for ; Mon, 15 May 2023 01:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RD5vUeFE3A5d4FsldbQHnKJtFa6t2QWFhZv+yAemSbs=; b=ehBz+j3ahy4u5PW4uxa2uyGNJo EBFe6Q34nuEaAcRCI+tbeXc7I14zzi5e0u0+qZG7aqXj1MNfOu4KRMISLXOGqwnA5hH2j2eNrTkHu uQvvK793POjWSxg49Bbe9Huea69FbJY6OWwQVhEIhB0v3ZFTua6hfvAi2N1O7XtMkMCq+hB7KHr6a zLmj5NVEqXqcruefol8Zh/0kdINTJ9d0alQEcO5jwfieZwAbmNJOHWUD/XWacF58y3JIL6BVpFfeF KdBkyA4si0Bd8nM250rxBdgOPlkLy7SXTJXCnNvdpv+s8tyg9C137AV50ShsToAwqJmtGHX2cwYVL kPUWVCgg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pyTkW-00BQwB-2q; Mon, 15 May 2023 08:40:09 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9F4963001E4; Mon, 15 May 2023 10:40:07 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 69766202FCE90; Mon, 15 May 2023 10:40:07 +0200 (CEST) Date: Mon, 15 May 2023 10:40:07 +0200 From: Peter Zijlstra To: kernel test robot Cc: Mathieu Desnoyers , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com, aubrey.li@linux.intel.com, yu.c.chen@intel.com, Aaron Lu Subject: Re: [linus:master] [sched] af7f588d8f: will-it-scale.per_thread_ops -13.9% regression Message-ID: <20230515084007.GF4253@hirez.programming.kicks-ass.net> References: <202305151017.27581d75-yujie.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202305151017.27581d75-yujie.liu@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 On Mon, May 15, 2023 at 03:00:44PM +0800, kernel test robot wrote: > Hello, > > kernel test robot noticed a -13.9% regression of will-it-scale.per_thread_ops on: > > commit: af7f588d8f7355bc4298dd1962d7826358fc95f0 ("sched: Introduce per-memory-map concurrency ID") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > testcase: will-it-scale > test machine: 224 threads 2 sockets (Sapphire Rapids) with 256G memory > parameters: > > test: context_switch1 > cpufreq_governor: performance > > test-description: Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two. > test-url: https://github.com/antonblanchard/will-it-scale > > In addition to that, the commit also has significant impact on the following tests: > > +------------------+----------------------------------------------------------------------------------------------------+ > | testcase: change | will-it-scale: will-it-scale.per_thread_ops -73.8% regression | > | test machine | 224 threads 2 sockets (Sapphire Rapids) with 256G memory | > | test parameters | cpufreq_governor=performance | > | | mode=thread | > | | nr_task=16 | > | | test=context_switch1 | > +------------------+----------------------------------------------------------------------------------------------------+ > | testcase: change | will-it-scale: will-it-scale.per_thread_ops -57.9% regression | > | test machine | 104 threads 2 sockets (Skylake) with 192G memory | > | test parameters | cpufreq_governor=performance | > | | mode=thread | > | | nr_task=16 | > | | test=context_switch1 | > +------------------+----------------------------------------------------------------------------------------------------+ > | testcase: change | will-it-scale: will-it-scale.per_thread_ops -85.0% regression | > | test machine | 104 threads 2 sockets (Skylake) with 192G memory | > | test parameters | cpufreq_governor=performance | > | | mode=thread | > | | nr_task=50% | > | | test=context_switch1 | > +------------------+----------------------------------------------------------------------------------------------------+ > | testcase: change | vm-scalability: vm-scalability.throughput -9.0% regression | > | test machine | 96 threads 2 sockets Intel(R) Xeon(R) Platinum 8260L CPU @ 2.40GHz (Cascade Lake) with 128G memory | > | test parameters | cpufreq_governor=performance | > | | runtime=300s | > | | size=2T | > | | test=shm-xread-seq-mt | > +------------------+----------------------------------------------------------------------------------------------------+ > > FYI, we noticed that commit 223baf9d17f2 (sched: Fix performance > regression introduced by mm_cid) fixed a sysbench regression, but > will-it-scale context_switch1 benchmark still saw a regression on this > fix commit. > > Furthermore, we applied the code diff in below link [1] on mainline, and > the will-it-scale score was restored to the original level before this > patch. > > [1] https://lore.kernel.org/lkml/d96164a6-c522-1bfc-8b37-333726cdc573@efficios.com/ > Right; so I'm thinking we can do that patch -- I'll try and get the whole lazy TLB thing sorted, but I'm not sure I can find the piece and quiet to think that over in a hurry :/