Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3122571rwb; Mon, 16 Jan 2023 04:07:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXu3rIKS34qMYnSyXfNHB4YOBRmh8CGifkXCV1YqZ5Yjiww96DQB3zM0/CM7cy/I4NpoPV8L X-Received: by 2002:a17:906:16db:b0:86b:9216:2ddb with SMTP id t27-20020a17090616db00b0086b92162ddbmr12104803ejd.52.1673870837126; Mon, 16 Jan 2023 04:07:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673870837; cv=none; d=google.com; s=arc-20160816; b=P/wfGJ9Tj/pnUUhyWs9IRDx3HwSFCRtgXnzSuCyQRsIaITUiAyHqCUebBblY/EUJBe hz/xYIVzJzR0te/1JL4XKPzQh82bXf0hQ1GHwXkRcFiHQOmRPXLCPhaPkJzHKNyDSy3r YVZXa6A0+EUyoaGeB5stMInxqY6oVfBDIIbaRpDyscNLIay0y8i0J86nTFbCp6CVVUD1 7XTZcSWu/DOluI1JeEZGWxROXzsA7yjqn/yxk919N6v2+PCEsLZ3503rLx0bWMS5awFL Eh8lm40Jmm72QRUy8LUwpdGCTGVwg9cK7DvsNAfl6NKrp5+H0qWmqIvmbz87B7fI4Gos dhUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=X4sfoM8UexvDKPwVhCYShKN5KNRJoIP1y6Y9u4zfqss=; b=tbaEpk7d3C4SOxnnrv7AFnDSery2YTwsinGArgtWZDJ7KZJce4IuYjrnzfeG2p9swe aA0Z7VpqlHR91LSl0OpngTY+YZ505SNuroIo/TtvtmVDBhO+ffTvnmJtOOOssgLR1V2Z Lqdf5X+V6X/CKly2pYq4rBl05KNRIO93B6MgqVScWdYcVRkRLvhk7W7YlkOgM32b82sk dIZLDEoCKK2suD+wM3Q2zD9tw+p9hdvKQX+sZMCmtYDGykgINBbdneUGi3kO4bEq3Qsf /IT3cUEOQpS5yGgzjSYhmRmAvnuBDaIIrMsA3KOCeIpLQz1lvML+cKHM6GqEKWTRE07j u0lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fxw5+VsR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he17-20020a1709073d9100b0078def5c29e3si34781731ejc.596.2023.01.16.04.07.04; Mon, 16 Jan 2023 04:07:17 -0800 (PST) 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=@linaro.org header.s=google header.b=Fxw5+VsR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbjAPL0D (ORCPT + 51 others); Mon, 16 Jan 2023 06:26:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjAPL0A (ORCPT ); Mon, 16 Jan 2023 06:26:00 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D178F1E9CD for ; Mon, 16 Jan 2023 03:25:59 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id x4so16570076pfj.1 for ; Mon, 16 Jan 2023 03:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=X4sfoM8UexvDKPwVhCYShKN5KNRJoIP1y6Y9u4zfqss=; b=Fxw5+VsR4wh5G53dDEPsWOoOwWNJNUr7ABIUZ7aGZOywbTxntj7m/54G7UVMXafTnx sju5VWKoTvX9fMUpIm8Tg6KMO8sZm3cEQ/XpL8peykT0vK+7DNxxwua1P71jVBYpXNy/ ha/xlik5XlmY51nm3LwhJc/9gtNoFrem40ZRl/0knwg+uYJkSuaC0/FRFTlULQ7LETGH uIWSB0Mq84qPFifVdxzVys2qHXh1y5PQd8eyF37lyEZxyagu6d2lS4a0gc7RL8YVfuxW 7kGkpn3B0655Q/4/bXINACIpT2fiY9yy1dfMexHsaOm9ln0+mTwNidujDjRL0CUy3w1M 8PTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=X4sfoM8UexvDKPwVhCYShKN5KNRJoIP1y6Y9u4zfqss=; b=tlCfatVSGkPfcS/ICFNu502OktJoWO6D3Qke2oBy+jZ33MzACY/6s54H8r9YEMVOwh O9zImpdo3RXYgQS6bCmdgRC5KoRK6U1uCMGAMc7WhdDiA0XtEuUQpNxkcOI0nEESEMmF sRCXsesRmM25C1vVRtWGTAOU5bUVire8CjHcbHR2HvvMvcqQzT/JIvj7nzeEd3JsEvfO NZt9vjx/Ms0GEfukMNH3En2iTCrsB0QtYpeKd8LN0fvuJIy7/GgG4QUb0j/dNHVNQP2o WVzyBkDgbF1uBtFhzNP8m2/4rlhHxZ1govJxUmjDn1kT0UPxFyrc9yT00dY3uRFyeXOD B7lQ== X-Gm-Message-State: AFqh2koB6yB09m5GFHW8l3k0wEvcjUtmhwq9PzgxWVCQDZOkKtzj7UeI tDS/K0oG2xaK2kNNqFcJm/HUngtggshTN6OqNQzDzw== X-Received: by 2002:a63:e613:0:b0:4b1:e9a3:292a with SMTP id g19-20020a63e613000000b004b1e9a3292amr1622507pgh.545.1673868359263; Mon, 16 Jan 2023 03:25:59 -0800 (PST) MIME-Version: 1.0 References: <20221228165415.3436-1-vincent.guittot@linaro.org> <20230114211854.nmvmhtd5yz5wgh2a@airbuntu> <487f0252-c697-eb62-989d-57ee731691a2@arm.com> In-Reply-To: <487f0252-c697-eb62-989d-57ee731691a2@arm.com> From: Vincent Guittot Date: Mon, 16 Jan 2023 12:25:48 +0100 Message-ID: Subject: Re: [PATCH v2] sched/fair: unlink misfit task from cpu overutilized To: Dietmar Eggemann Cc: Qais Yousef , Kajetan Puchalski , mingo@kernel.org, peterz@infradead.org, rafael@kernel.org, viresh.kumar@linaro.org, vschneid@redhat.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lukasz.luba@arm.com, wvw@google.com, xuewen.yan94@gmail.com, han.lin@mediatek.com, Jonathan.JMChen@mediatek.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Mon, 16 Jan 2023 at 10:21, Dietmar Eggemann wrote: > > On 14/01/2023 22:18, Qais Yousef wrote: > > On 01/13/23 15:28, Vincent Guittot wrote: > >> Hi Kajetan, > >> > >> On Fri, 13 Jan 2023 at 14:50, Kajetan Puchalski > >> wrote: > > [...] > > >>> sched/uclamp: Fix a uninitialized variable warnings > >>> (baseline_ufc) sched/fair: Check if prev_cpu has highest spare cap in feec() > >>> sched/uclamp: Cater for uclamp in find_energy_efficient_cpu()'s early exit condition > >>> sched/uclamp: Make cpu_overutilized() use util_fits_cpu() > >>> sched/uclamp: Make asym_fits_capacity() use util_fits_cpu() > >>> sched/uclamp: Make select_idle_capacity() use util_fits_cpu() > >>> sched/uclamp: Fix fits_capacity() check in feec() > >>> sched/uclamp: Make task_fits_capacity() use util_fits_cpu() > >>> sched/uclamp: Fix relationship between uclamp and migration margin > >>> (previous 'baseline' was here) > >>> > >>> I omitted the 3 patches relating directly to capacity_inversion but in > > > > This could lead to confusion. Was there a specific reason for this omission? > > Did you hit some problem? > > I thought Vincent's 'split MF from CPU OU' should replace 'CapInv'? Current patch v3 applies on top of tip/sched/core which includes 'CapInv'. The end goal being that CapInv becomes useless and can be removed > > https://lkml.kernel.org/r/20221209164739.GA24368@vingu-book > > ... I have reverted patches: > Revert "sched/fair: Detect capacity inversion" > Revert "sched/fair: Consider capacity inversion in util_fits_cpu()" > Revert "sched/uclamp: Make cpu_overutilized() use util_fits_cpu()" ... > > You also mentioned this in > https://lkml.kernel.org/r/<20230115001906.v7uq4ddodrbvye7d@airbuntu > > [...]