Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2720762rdb; Wed, 4 Oct 2023 09:25:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrZ2KUfOrFX6sH/JKhhIO3+RA/wW+AQpfpnFKGXtmTe7Ypl8LN4YJ57Yf2AA1JHM3RfciY X-Received: by 2002:a17:902:6b04:b0:1b7:e86f:7631 with SMTP id o4-20020a1709026b0400b001b7e86f7631mr2766233plk.19.1696436703899; Wed, 04 Oct 2023 09:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696436703; cv=none; d=google.com; s=arc-20160816; b=CKjSdkdYjKNy5XbeIyNk51n7nv5gomU/DVinjJ1MAvWInAzmSImjQTTOFjbicFA9ar +s2RkBcNxevpIY7778mho3XcMHSWKYjVrWPmglWpmOsuafO7z1CV1kW20thtrWJTXqjl QXxSyd/FmWWI2ru2qk1jq5DORYPVQDVGcakEmkugLIWztgw/RC51llBQbRLnsC83jj+v I7FfbzkRtUw5wVcmHPklWhfobCv+uUcyrq8ZxiMYGAA0eMxBGzXBh2ARhfY1AVZJJ/Br zPjasc58sKUHONruQ3Xnl/4cP6XuQ0qMp8zvkQG/6HLq99zYaZbgcP3pnQacjiGAB1+J KOGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=F4G+OyGH2GoDmdfpbtW/176TGOkO/dnjNFfXNCxoQk0=; fh=VZgiKpmYDC8E3n8Ot4MQmmZECsSy6u5F8EXyIB0MZDY=; b=CeWNHscn+pu4OrvRzrr9hmRS7xf+LItzdGGKWr/xmDbgdgxMLSK1YkvNXGCfmWVP7D jvQhbytbaI6ipdYFPJ+O2Nbp8awb26YyLskUUmhcYvn7CopZqLi9ObGy48XBJSDY70W8 5Lg1Elw7Hr45+gXYmR5odreLgqmIgO05UTykfYyACq0rWm0CJImi0QuRQp4WmdqUNoMh P/+iiJBBn1exo8Kf4aQwqXi7g8fUuSMR7kM8YosJAXYUf3rMR/DjXU5Ujo3jf+pRaMYk lMgWFKUCiUwgH1EVn9zoset35IEHjb1CCXTjpLgIDJY0K4kyG1nDlg8k0s2uEgkfonzV B0mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=t7OG2ITI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t16-20020a170902e85000b001beef8ccd05si4344237plg.489.2023.10.04.09.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 09:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=t7OG2ITI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B261E826ECA2; Wed, 4 Oct 2023 09:25:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243337AbjJDQYu (ORCPT + 99 others); Wed, 4 Oct 2023 12:24:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243328AbjJDQYu (ORCPT ); Wed, 4 Oct 2023 12:24:50 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73ACAEE for ; Wed, 4 Oct 2023 09:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=F4G+OyGH2GoDmdfpbtW/176TGOkO/dnjNFfXNCxoQk0=; b=t7OG2ITIR7+F5nD622fweWoEWiBpzP1LEJa5T00pu2NkP+k5I6s80pyX fnfgkuR9ZEawt5/ZiQ898/ojFtprkeiHLHPpR0YNWQiF5tD16lwEXuWzf OhFGLEbt2mMy45To19uC+NjTMxccssFN4MMEfem8ACvrZ5vOBea7vVMe+ M=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,200,1694728800"; d="scan'208";a="129502245" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 18:24:39 +0200 Date: Wed, 4 Oct 2023 18:24:39 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Peter Zijlstra cc: Ingo Molnar , Vincent Guittot , Dietmar Eggemann , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: EEVDF and NUMA balancing In-Reply-To: <20231004120544.GA6307@noisy.programming.kicks-ass.net> Message-ID: References: <20231003215159.GJ1539@noisy.programming.kicks-ass.net> <20231004120544.GA6307@noisy.programming.kicks-ass.net> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 09:25:00 -0700 (PDT) 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. 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. julia