Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2768919rdb; Wed, 4 Oct 2023 10:48:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGS8KrS+OPU6uP9zOGh1IPCVNlq5aIv3j4ked49zatle2S7Z2ZBS0oWqQWzvsTVkrb39n9e X-Received: by 2002:a05:6808:2003:b0:3ab:5e9e:5206 with SMTP id q3-20020a056808200300b003ab5e9e5206mr4129436oiw.5.1696441702250; Wed, 04 Oct 2023 10:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696441702; cv=none; d=google.com; s=arc-20160816; b=SUHxH0f7MFt/4BCGOPg28aXnf2MbhBGJJSl2vk6G8Agbxfgt5W6TH79BY7lanSyEyc qYV323ftPmxFWE3L0CgPpOkqg7M5y4bsE0lYCRY3wcj8jwwwsylxhA02apPPA4mLeq/U XsPfdFLmWQZN4Jk2w1DWQ2/ERwEOsgiNFEGfyFx70L0x5HrCGgyPDzqdfhp26saPRAqT 1yxYt3QP8obuAw+fvAW0taRbfxT9sJfrVnJtj+FLnEHiKI7gp1l5iS5m+hyH+6V7wJgU rrWlyizbHm/qELklZH95g0i+1mTmN4FDodw88O0D59hFinS5EkyTymzk3yhHmSD8Ti2y gV/w== 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=cCyNQY2PqRUUwPVEhQWWTvU6sVIE17n3grQQ+eFVYPo=; fh=zjLtq/u5fU5VXWM97UkgEi15by5qN2LM2sl6/P5lwKg=; b=cp8Us6s4HefL1bCZYyQui3gZiy+XIa6v9vRgYNhIWcMsoeWJgc1CnCPF/TP+uBGs6N QmN1UyoUYDU4THAWJQKV79jgXJLwOHJ7XX1eMX7oxEXUCgL5Py3+C7fZ5FYpVRDzhmOQ dy0IQ0L+X7cvYr1y4GbOQdz7TdZ6SkZlyWyJRLyVX3SyoUWWqm9P0nppVT4KOa77i5OA 5eEpDk5mnnZ5XJy01tIQPbfGv60LbON1QD/sWiMZv8vdRiQg94ZM2OwYBcfN7YH/Wych kzrKSIVfcbAy6MLMT/d2J3ZKS7XLns4wsRxfZzqn1WHCd8vt5WsVDD7H21vBeRi4Lvh6 81kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GNG8f37h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x65-20020a636344000000b0057751b7788esi4075864pgb.488.2023.10.04.10.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 10:48:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GNG8f37h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 432B88373819; Wed, 4 Oct 2023 10:48:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233826AbjJDRsU (ORCPT + 99 others); Wed, 4 Oct 2023 13:48:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233397AbjJDRsU (ORCPT ); Wed, 4 Oct 2023 13:48:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA6409E for ; Wed, 4 Oct 2023 10:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=cCyNQY2PqRUUwPVEhQWWTvU6sVIE17n3grQQ+eFVYPo=; b=GNG8f37hv9dXl/xj4GQO6Ms+X9 7hZxFURq6Hyelp5HeRptfl2Iy8DnVMgma7qSR1sAoxnYTuZjhFBFunOP5nrM6ktQHq+cqkgmvLzxg JKK7jkssuLx03mz3uxYwMvFmuDMfaX0H6gdejJlAbIyG1dbZq2TQREWeMK+BP99/KxdncWqeZTA3l HUQ84Hy8VHUItgcC6A/z8xZ9aGynGZV3eMbHBT85LBOQRboBQqD+MdlOZzm76gh+teukAHlImKuyW bpQ8wAXYjzFZH2/JNdi3Jwo2yuvvL2vx8cMfzFbcTjAkYV5ujXs+KbnpocGu8kF1CXQ9UTO6lXzMf lK1qQ0UQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qo5yb-004f4g-P6; Wed, 04 Oct 2023 17:48:01 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 71A76300392; Wed, 4 Oct 2023 19:48:01 +0200 (CEST) Date: Wed, 4 Oct 2023 19:48:01 +0200 From: Peter Zijlstra To: Julia Lawall Cc: Ingo Molnar , Vincent Guittot , Dietmar Eggemann , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: EEVDF and NUMA balancing Message-ID: <20231004174801.GE19999@noisy.programming.kicks-ass.net> References: <20231003215159.GJ1539@noisy.programming.kicks-ass.net> <20231004120544.GA6307@noisy.programming.kicks-ass.net> 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,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 10:48:21 -0700 (PDT) On Wed, Oct 04, 2023 at 06:24:39PM +0200, Julia Lawall wrote: > > > On Wed, 4 Oct 2023, Peter Zijlstra wrote: > > > On Wed, Oct 04, 2023 at 02:01:26PM +0200, Julia Lawall wrote: > > > > > > > > > On Tue, 3 Oct 2023, Peter Zijlstra wrote: > > > > > > > On Tue, Oct 03, 2023 at 10:25:08PM +0200, Julia Lawall wrote: > > > > > Is it expected that the commit e8f331bcc270 should have an impact on the > > > > > frequency of NUMA balancing? > > > > > > > > Definitely not expected. The only effect of that commit was supposed to > > > > be the runqueue order of tasks. I'll go stare at it in the morning -- > > > > definitely too late for critical thinking atm. > > > > > > Maybe it's just randomly making a bad situation worse rather than directly > > > introduing a problem. There is a high standard deviatind in the > > > performance. Here are some results with hyperfine. The general trends > > > are reproducible. > > > > OK,. I'm still busy trying to bring a 4 socket machine up-to-date... > > gawd I hate the boot times on those machines :/ > > > > But yeah, I was thinking similar things, I really can't spot an obvious > > fail in that commit. > > > > I'll go have a poke once the darn machine is willing to submit :-) > > I tried a two-socket machine, but in 50 runs the problem doesn't show up. I've had to re-install the 4 socket thing -- lost the day to this trainwreck :/ Because obvoiusly the BMC needs Java and that all don't work anymore -- so I had to go sit next to the jet-engine thing with a keyboard and monitor. I'll go build the benchmark thing tomorrow, if I can figure out how that works, this NAS stuff looked 'special'. Nothing simple like ./configure; make -j$lots :/ > The commit e8f331bcc270 starts with > > - if (sched_feat(PLACE_LAG) && cfs_rq->nr_running > 1) { > + if (sched_feat(PLACE_LAG) && cfs_rq->nr_running) { > > This seemed like a big change - cfs_rq->nr_running > 1 should be rarely > true in ua, while cfs_rq->nr_running should always be true. Adding back > the > 1 and simply replacing the test by 0 both had no effect, though. Yeah, this is because I flip the order of place_entity() and nr_running++ around later in the patch. Previously it would increment before place, now it does place before increment.