Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2580462rdg; Mon, 14 Aug 2023 07:07:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETraNt8gnLwkFf0Phioa2I4SqxyHL2p/tXA59oVngaMMNOmJzVA8bf5BqMDZPqwTXRv4O7 X-Received: by 2002:a17:906:30cf:b0:99d:a881:7c28 with SMTP id b15-20020a17090630cf00b0099da8817c28mr2833901ejb.39.1692022075903; Mon, 14 Aug 2023 07:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692022075; cv=none; d=google.com; s=arc-20160816; b=yArbAD3DpBGqiDc1QcGbWmCW7L2he7IXHm/BxTDIqpdAqhT0TtD86/YDo0GBIfQIGc xCKGfB99kgEcIK+MinpZaWlm7pWtvLqQVK17XCFAbdSur8tA7AMWPyAmv/ALvquieiJ4 lGuHFeIhaZjdc8ieNx/XaDg6c5/6ye0jlyHAsymUcRXptbmtnjw78UULOWOW4zOE4rp3 ttoX81iskyYsLHQ6tQnNmGA6A2/TJHyIGJmWxCFFD8Q1IXNAvLW+oIfwYdWJXpkZZdie 9QHu78GG4xdKXFlE/DzelpTWoUqWW+7l7JNDAUt3FwTRVIvWiM1ZH1c5N8Nb1UoPBV/5 H/jQ== 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=nSu5pZF90pcdhTItj4iKD/oA2dZDTfI4QLO16UzUIZs=; fh=scjcJv4dIC7SxJXTE43xXrvOkSly3bgbYY8zcuoBbi0=; b=zNrFsoFgf1VIe5HHKt15DD0tSx/j4j6GCKvCaCLncBNd0Xh38ihD3Aw4Iljp6RZYsQ GCLqPdIBERgUeyPhSGMuCAwamMOywZv8V1jWfMOpj3vGWQT9eceOZ1f4AADNbwTfXLX2 tqkFn4v2GQB/W5bUuia56iRkvQrzAe6QZ+1BLBV6kvbMNs3dfoq/lWfMzy0HFU9S5xZv 4InZYi5/85KLiHvGt/ry6i5v0RrIM0A1MsbWYDe1QbpOi/opVtrUXeLwziWgTNg0walh Y2JWR72ONaD6p0r9hCybAbhe5SjGmy9YkYToNS2kStIWyMsjQR3p+51mykakRWvhtRzI 5qjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=eIUlbBME; 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 s14-20020a170906168e00b0099ca9258139si7624453ejd.569.2023.08.14.07.07.31; Mon, 14 Aug 2023 07:07:55 -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=eIUlbBME; 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 S230282AbjHNMt6 (ORCPT + 99 others); Mon, 14 Aug 2023 08:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbjHNMt0 (ORCPT ); Mon, 14 Aug 2023 08:49:26 -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 37B1694 for ; Mon, 14 Aug 2023 05:49: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=nSu5pZF90pcdhTItj4iKD/oA2dZDTfI4QLO16UzUIZs=; b=eIUlbBMESs05G7H3pZKwv3cv94 EiHP+k5HnjKtPSsRSAazLweh0fDPTRHxLRrycEAZzgoXBrDuFPQkfjAhaeybKu+7ccKhhZXvt8/KY VGaxaghnE3KqFtJPvsWIG0Hl5at2sEQkoqNsGxqsnrwdxnRFa/B5dhGKiBFZEDlFjYV08PXv2HaF9 W/KEpYYv80PJChRhhS7ZEIvtOJcbwdhsnyp4Uu3HFARJrR0j7SJ6hCVl74/ZdiYVJeTpqt1sr5t/E r8I7fYzRZlWGHRPujO7P4hz11vzkcBPT9Asq6yYfL7LmOKViJ4mc+aDpAY6rUJeSrAU4xgHNKkanQ H/KKcpHg==; 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 1qVX0U-00Aaoq-31; Mon, 14 Aug 2023 12:49:15 +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 8AA51300137; Mon, 14 Aug 2023 14:49:14 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 46491202BDC7A; Mon, 14 Aug 2023 14:49:14 +0200 (CEST) Date: Mon, 14 Aug 2023 14:49:14 +0200 From: Peter Zijlstra To: Chen Yu Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar Subject: Re: [tip:sched/eevdf] [sched/fair] e0c2ff903c: phoronix-test-suite.blogbench.Write.final_score -34.8% regression Message-ID: <20230814124914.GJ776869@hirez.programming.kicks-ass.net> References: <202308101628.7af4631a-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 Fri, Aug 11, 2023 at 09:11:21AM +0800, Chen Yu wrote: > On 2023-08-10 at 21:24:37 +0800, kernel test robot wrote: > > > > > > Hello, > > > > kernel test robot noticed a -34.8% regression of phoronix-test-suite.blogbench.Write.final_score on: > > > > > > commit: e0c2ff903c320d3fd3c2c604dc401b3b7c0a1d13 ("sched/fair: Remove sched_feat(START_DEBIT)") > > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git sched/eevdf > > > > testcase: phoronix-test-suite > > test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz (Cascade Lake) with 512G memory > > parameters: > > > > test: blogbench-1.1.0 > > option_a: Write > > cpufreq_governor: performance > > Is this benchmark fork() heavy? > It seems that commit e0c2ff903c32 removed the sched_feat(START_DEBIT) for initial > task, but also increases the vruntime for non-initial task: > Before the e0c2ff903c32, the vruntime for a enqueued task is: > cfs_rq->min_vruntime > After the e0c2ff903c32, the vruntime for a enqueued task is: > avg_vruntime(cfs_rq) = \Sum v_i * w_i / W > = \Sum v_i / nr_tasks > which is usually higher than cfs_rq->min_vruntime, and we give less sleep bonus to > the wakee, which could bring more or less impact to different workloads. > But since later we switched to lag based placement, this new vruntime will minus > lag, which could mitigate this problem. Right.. but given this problem was bisected through the lag based placement to this commit, I wondered about fork() / pthread_create(). If this is indeed fork()/pthread_create() heavy, could you please see if disabling PLACE_DEADLINE_INITIAL helps?