Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp312223rdg; Tue, 10 Oct 2023 10:56:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXTRL+ikTdKnFi7sKD8kgwCEB4JxPIdnxmp3SMa3h18Xx/HUJVoLoIiU4uvjg2j4ayTjxb X-Received: by 2002:a05:6a20:1450:b0:16b:80f2:f30c with SMTP id a16-20020a056a20145000b0016b80f2f30cmr11863905pzi.26.1696960571573; Tue, 10 Oct 2023 10:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696960571; cv=none; d=google.com; s=arc-20160816; b=sakX/079oOVEiLKjY3CorkkAMMtA2B0xiEYFifFuhJmFZtDEwrsj30k8gTiXzw9YJJ W1u8ckVTRSNdBMEo62R9hzrF3Whe0RTkZKg2B5CnxLOi+xjexUclNrc0IicYG3pwT8Gt QWbGiXXps1XtES4gy//bFqYfmEYnMFRR1Q+kLbZTanTOFVqWKEi758f97PgzrHpn3csx 1NO18+McOirMjmUIBJoRadG2zGzLiZA+WDq6MYeS3ChcVWh6jRBSwLMDeCMVxVZ8o3qp Foc2kneh8saCPXd1oeQtLOtt3vAKOuuaNx0XE8m9SizrJEnQNXoi8x/yvyX2wqqjM8e/ 7hAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=B8+Lz5VjZyLQFcPIUwiXiRLWaHkDX/u4z27NHP1/09Y=; fh=f0830piusn2hikZ+bffpe5AJwMt7aUsYV2fb4vFoOrE=; b=PLAq68em3AvzkGuQweVV3bbzz97gwuv8NQ6S6bPbh21qYuwmZNGf90s/b+cy45pL/D cv2vi18FVXK3OUtfNS4Z/7gY8xK1S0rqjyFC+tutPThtZo3gxpHZLngwKStkl3mnOF28 2h1H+bF5/9zO/OuSAEqlvMhstzRviEp5iqTF2DndrQegvyxwwtizsmwtaq2FI3QHhH2/ 98/r6JAuGDAUg9LOX8FqlcbZClNg4k6y8DLKB19DTJ/jV4Ly2UnBBxilcI2DuseNvnh4 fhF0lr5TuYPWctMV9ViAJcG7IB5r+mD0CEJwV1Mpeah39ZxcQZw53cbRCsjaYDNRMWSl sojA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=BEkB+iJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ca7-20020a056a00418700b006880a2ca0fasi9958977pfb.312.2023.10.10.10.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 10:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=BEkB+iJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id CE7CB81C5080; Tue, 10 Oct 2023 10:55:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234041AbjJJRzS (ORCPT + 99 others); Tue, 10 Oct 2023 13:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233489AbjJJRzQ (ORCPT ); Tue, 10 Oct 2023 13:55:16 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E547E94 for ; Tue, 10 Oct 2023 10:55:14 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bffd6c1460so71264311fa.3 for ; Tue, 10 Oct 2023 10:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1696960513; x=1697565313; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=B8+Lz5VjZyLQFcPIUwiXiRLWaHkDX/u4z27NHP1/09Y=; b=BEkB+iJSg0DKcuJa76L1PK9SUtKZ+56q8YgUOoXv/kChwYw49atO9oFj5jhw39Ghea 9tDJLQIzMRqs2OEW6xcZj4wy3d5xkYVDI2eZLBA5+LRVuf1vebFLWAPF5P2gL8dwjgKD /SBwn0zSflSUONfqF3jfYYR7LDZoHcATW37sk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696960513; x=1697565313; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B8+Lz5VjZyLQFcPIUwiXiRLWaHkDX/u4z27NHP1/09Y=; b=dmbzCt6LwN86fzVHa4yGB70q01ggRp4PSe/Q3TQ3yd/JNCVCRXSX3jf4EIazZ5OQ0v ikaNIL11L+v/ybtdUz2EtBh2iTsd6oULRZKsQEvb73OATrYUkWk/qZJsW9CWTwDMccj6 nNkExcOBmTBe+DwngzdPNQR2hGkOmLPhEduFXC2GPyktJ5Hyh4AGgZgWkA2sjWgii1oq +076N4Rtj94LImbSLmp8N0qtZR7ZgaPmJ+R2l/3FPtzManAr20ChpG9+W7a+mDFzu+Z2 CpCQJn+mb8eOI5DLKkXnhAnGFsXN6FlWwsOQ9iLqK1c+YhqvFrY7MA+XUjhKHMXDQnRF wMGw== X-Gm-Message-State: AOJu0YyVa608SmuWL6Z8sgurtctKztTAcRSE2qtiCv/24jFdw2l0PnKK dE2OjtUiASYPU3ycZ+2AKJH8w9hlfDrRSqv9dzXGpw== X-Received: by 2002:a2e:9b11:0:b0:2c2:9705:c478 with SMTP id u17-20020a2e9b11000000b002c29705c478mr14706221lji.13.1696960511981; Tue, 10 Oct 2023 10:55:11 -0700 (PDT) MIME-Version: 1.0 References: <20231005161727.1855004-1-joel@joelfernandes.org> <20231006200129.GJ36277@noisy.programming.kicks-ass.net> <20231008163912.GA2338308@google.com> In-Reply-To: From: Joel Fernandes Date: Tue, 10 Oct 2023 13:55:00 -0400 Message-ID: Subject: Re: [PATCH RFC] sched/fair: Avoid unnecessary IPIs for ILB To: Ingo Molnar Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Vineeth Pillai , Suleiman Souhlal , Hsin Yi , Frederic Weisbecker , "Paul E . McKenney" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 10:55:26 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 7:25=E2=80=AFAM Ingo Molnar wrote= : > > > * Joel Fernandes wrote: > > > > > Fixes: 7fd7a9e0caba ("sched/fair: Trigger nohz.next_balance updates= when a CPU goes NOHZ-idle") > > > > > > Hurm.. does this really warrant a Fixes tag? Afaict nothing is curren= tly > > > broken -- this is a pure optimization question, no? > > > > IMHO it is a breakage as it breaks NOHZ -- a lot of times the ILB kicks > > back the CPU stopping the tick out of idle (effectively breaking NOHZ). > > The large number of IPIs also wrecks power and it happens only on 6.1 a= nd > > after. Having the fixes tag means it will also goto all stable kernels = >=3D > > 6.1. Hope that sounds reasonable and thank you for taking a look! > > So it's basically a fix of a NOHZ performance regression, introduced by > 7fd7a9e0caba or so, correct? Yes. > As long as the fixes have a good hope of being backported with a low amou= nt > of overhead, a Fixes: tag for a ~2 years old performance regression is > unusual but not unprecedented. > > We just need to make sure we don't put too much of a burden on the > shoulders of -stable maintainers ... Sure, that sounds good. After we upstream, I am happy to assist in any stable backporting work related to this as well. In any case, I have to backport it to ChromeOS kernels which are based on stable. There's only the 6.1 stable kernel at the moment that is affected. thanks, - Joel