Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1041368rwl; Wed, 12 Apr 2023 07:32:51 -0700 (PDT) X-Google-Smtp-Source: AKy350bNkntMRUghcJOKc17AnLQtDK2qEM9VN+HI76NIFCGASbQRUsCoUWZPHZYtFtzLPDLP5dZx X-Received: by 2002:a05:6402:344f:b0:504:8173:6240 with SMTP id l15-20020a056402344f00b0050481736240mr11081892edc.37.1681309971198; Wed, 12 Apr 2023 07:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681309971; cv=none; d=google.com; s=arc-20160816; b=ZNnyiHbxxRD297KVOjo4/vRb55AuefCcUSN8bZjWuHbKOd6xFdIuBI239OjuBplUT6 C+zTjHVxmYgpxFjsjtlBsWyzrxrvutd3BO2FJYQLolV3PFB0OPylQJBSqqKwQIKyDkQd lWmh/8UBuFKKxBhor69Nfo3PvK3gkEluSMiRVY+HBQ3iUtt3y5UIXn2Hv+r9B+LmDE6/ yfLjpEKi/FuBlH5HV3fjqRASxuf5+GztuPJja7PN0TSKndxp+DBefdABNp0EVrAcNcdn 1cW8Er7sACu4HP+SfXCmPL2Smj9aynGNe0ZEOIK+WgO4SH+QLKxIW2ZAiIReIR9NZlMe ndQg== 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=3qJvIOxoolczQy5RdZ6v4DRFskdaG0Va0CAKh9b55/o=; b=YZsFJn3EHno+h5lR7/Wi7N2TPMD6FhGx+t4otQVlmmjJyiA86J4Esf5iDXeJVgMJNy VQjVZNnEfDEFCmUnJ6+GHtaqM998U22Zv0rSHGdpVDt0YSAix7vVYptQMTDzvJBNtk+S 5WlkiQF19fbcvZsvGWyndmvN8qTxkKz1AMvSjy1C91OfDtxZ3TngtrliyvHx+szhGKwr +iNKaswxc/KTIXycdYI8My8LHibqbQqEH9Q7cxU+KcJgpr+PKtTZFG8Xwt1fs+lVrue7 jdZ1vg1ULzTE94RH4TMd7oH84II8L9pq1qeuID2FlN2ofjgVjgzZu3id18SSdAeKccxd ED/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=PDT7uMS3; 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 u9-20020a056402064900b0050270e743d4si2364310edx.590.2023.04.12.07.32.26; Wed, 12 Apr 2023 07:32:51 -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=PDT7uMS3; 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 S229667AbjDLO0c (ORCPT + 99 others); Wed, 12 Apr 2023 10:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjDLO0b (ORCPT ); Wed, 12 Apr 2023 10:26:31 -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 F0376170A for ; Wed, 12 Apr 2023 07:26:27 -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=3qJvIOxoolczQy5RdZ6v4DRFskdaG0Va0CAKh9b55/o=; b=PDT7uMS3oxgyC5Wp+jDvcYXhzD gHJUi3Ti9E8JrYvOSvhFdTp02iqhf5Rlcc4qafPBkkFk3d/+D3YNUtl2WB5WmPXOedVLAXuA4YjMA 4pSZ5JoWJrYgLE74Gure9MnC26pJaM7NU1ddPjIymgF4GxrgURfmb/og9PybSTz/8rXUink/GC3uS hOsOHfVJSFSARsAD16GcLIMpq+VOaf2ywkKDMj33R9/vMcytNloxOSeXHOp4cXr3uJypVdxqBYel8 RDNg3IVgFgiCdONa60RrkkhPBVaErTF2QwQpb63FzXY+weH/juUcvikSeaQuuRE38J9vHw91G5I6J EL5J4n3w==; 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 1pmbQP-00DwfQ-2j; Wed, 12 Apr 2023 14:26:18 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B3462300274; Wed, 12 Apr 2023 16:26:16 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9A8E921239575; Wed, 12 Apr 2023 16:26:16 +0200 (CEST) Date: Wed, 12 Apr 2023 16:26:16 +0200 From: Peter Zijlstra To: Aaron Lu Cc: Mathieu Desnoyers , linux-kernel@vger.kernel.org, Olivier Dion , michael.christie@oracle.com Subject: Re: [RFC PATCH v4] sched: Fix performance regression introduced by mm_cid Message-ID: <20230412142616.GI628377@hirez.programming.kicks-ass.net> References: <20230410150150.2179062-1-mathieu.desnoyers@efficios.com> <20230411045225.GA3509@ziqianlu-desk2> <20230411131221.GA7356@ziqianlu-desk2> <20230412091043.GC4253@hirez.programming.kicks-ass.net> <20230412114240.GA155547@ziqianlu-desk2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412114240.GA155547@ziqianlu-desk2> 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,URIBL_BLOCKED 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 Wed, Apr 12, 2023 at 07:42:40PM +0800, Aaron Lu wrote: > I *guess* you might be able to see some contention with hackbench on > that HSW-EX system with v4. Indeed! Notably it seems to be the wakeup from idle that trips it hardest: 11.31% 0.03% swapper [kernel.vmlinux] [k] schedule_idle | --11.28%--schedule_idle | --11.27%--__schedule | |--8.61%--mm_cid_get | | | --5.78%--_raw_spin_lock | | | --5.56%--native_queued_spin_lock_slowpath | |--0.81%--finish_task_switch.isra.0 | | | --0.69%--asm_sysvec_call_function_single | | | --0.58%--sysvec_call_function_single | --0.57%--switch_mm_irqs_off