From patchwork Wed Feb 1 14:36:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 4817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp316798wrn; Wed, 1 Feb 2023 06:43:17 -0800 (PST) X-Google-Smtp-Source: AK7set99FOEx55NpzVe7CF7iMMM4IWRUrC0biRmaEJiNL9EjeeqGD70vdGbbTmJjoks2RN7miocf X-Received: by 2002:a17:906:9ca:b0:872:14ea:1a7b with SMTP id r10-20020a17090609ca00b0087214ea1a7bmr2906896eje.13.1675262596851; Wed, 01 Feb 2023 06:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675262596; cv=none; d=google.com; s=arc-20160816; b=0HG2gKivy6pLJpw28jceZ/ZBXMdtdyTL1OibmfSymSKRgv6TXadg8BlSFMetHS6anq cUdr7hF3mQMZdM7XElrj4PAi8QQl8+n07FU0Pei/qzZySTTFtMhd9q98AzXEkiWYzsGG C8bsh2tudfeXvTKnhQcMdmQGcTvTlAMJUzQgqwghmfZV4eIFEn462zFlLqPGWuYBKOD4 T/Q4hoJvvhNr9wdH42WFqtQ0YOGp9vOSQKYPKuNeFyOPrm2Hcw50SE6sl05mzpLzBnrM bd+U2iwBvJKRG7Czip2SBqIbRb21KvgZl7os7A2sE0CJ/d9M3Y82WCi4fK43KsJu+Kp+ Fg6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2rSmBPzQrDoBjd8Nbsk6laUgitreMtiRkhjm5eNehvE=; b=KX0kWpXf9sCJRmRu8yXiSbrktaQJbFXxNeAJa9lj3H1VuFT6HlYJEbwFn4jq7ZtFFE oq/wZ51nol9opZcRo3NjJfLtX8fgEedOv8s98qD6/1JyjvUrv8JuvGEHl5JdnlFVcwaw PEBibyv6fnwwj5wI14KTFozZa8eJyl3KbfbtJDuyXXiDaGo50noWAiRTciNB/UsKsRc9 VKzCGPOQiVs1swHNFJl/GF0WE6LFq/0H/Pcaq23yJaIKqoLldBTn2ddsvcY1yPDm+rzQ lw6eyBBkdMy1Bnpjs8Drh9SAJKwrVgOI6xiPZiZLHCnOTSIef/1fjTebMm5uU11da7+X V4yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DnCHxdGp; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wc12-20020a170907124c00b0088e7a03d6e9si501548ejb.131.2023.02.01.06.42.53; Wed, 01 Feb 2023 06:43:16 -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=DnCHxdGp; 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 S232408AbjBAOgj (ORCPT + 99 others); Wed, 1 Feb 2023 09:36:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbjBAOge (ORCPT ); Wed, 1 Feb 2023 09:36:34 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B23746D6B for ; Wed, 1 Feb 2023 06:36:33 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so1614592wms.1 for ; Wed, 01 Feb 2023 06:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2rSmBPzQrDoBjd8Nbsk6laUgitreMtiRkhjm5eNehvE=; b=DnCHxdGpawCKZ3jBLuNxGM3UAXoWfJbI+kW7byixEKjpGbg8/FfcaZWGkUwB1YvyJw julqkx9kH43DsFAFNiCK1F/S6+IeiOp2NSA1hX79vK+tjAcii5Iivo4oPLYmCleOqIO6 +8h7vKURPut4PM1H9/k4M9yIq21aiDkshi6jPBdb74XjKLIL6iw9Mc+SoR7b+rBrcHv7 rjDsvPoHge7hA2RNbYOQq/n31DylXao3NpXrAmcmlm6YpVizybDeYIbj2pC4KSG/VZfx PLlH20nVun/DgjhRyWE1cLhrGJBrm5VInwvpEjHo8RgLg85p4Zc4QvlqAeZX6RDz7yyA HWNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2rSmBPzQrDoBjd8Nbsk6laUgitreMtiRkhjm5eNehvE=; b=061lCvnRLR8fcdt2EzFZ50TwLGJWc9m/44VwR+Jd8MNoYA9RzgBTf+tigja8o+czHD 85rrARe0mX/u5cG98fGG2Xxy5Md9GHFcEA7tLTbzuTwTjazkz7ZzZUjcDMLOTM3uVb/B IxfLXjt+53cPOT/REhXWZSMxiCoPNiQz1pjHhjAwJuS5hHSboqP+UWPiIeLEn5FVvJ+U BSFII8i20JE+yEhOb8O9sRG3hMyR33no4OQLSAPa1BiFeSmVl702uZelpMt+jsHvfg++ uAGaQR7sucUhG3jID6iHrALdQzgcpyJoYqseSmfVahXt609pfW7QOmTdyC6ag4BKksDL vZlQ== X-Gm-Message-State: AO0yUKUgfJSrDwaAY6Ix+JMYWXsvKEcZHJ+Me7LHvfPaQPixSpMjeQ+Z EkNtMd1pbrkjqJ+56h3m5l8qpA== X-Received: by 2002:a05:600c:2207:b0:3dd:638d:bc31 with SMTP id z7-20020a05600c220700b003dd638dbc31mr2519067wml.26.1675262192152; Wed, 01 Feb 2023 06:36:32 -0800 (PST) Received: from vingu-book.. ([2a01:e0a:f:6020:3db4:bf23:5fd8:a5]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c2cd300b003cf71b1f66csm1846756wmc.0.2023.02.01.06.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 06:36:31 -0800 (PST) From: Vincent Guittot To: mingo@kernel.org, peterz@infradead.org, dietmar.eggemann@arm.com, qyousef@layalina.io, rafael@kernel.org, viresh.kumar@linaro.org, vschneid@redhat.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kajetan.puchalski@arm.com Cc: lukasz.luba@arm.com, wvw@google.com, xuewen.yan94@gmail.com, han.lin@mediatek.com, Jonathan.JMChen@mediatek.com, Vincent Guittot Subject: [PATCH 0/2 v5] unlink misfit task from cpu overutilized Date: Wed, 1 Feb 2023 15:36:26 +0100 Message-Id: <20230201143628.270912-1-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756640152843389166?= X-GMAIL-MSGID: =?utf-8?q?1756640152843389166?= unlink misfit task detection from cpu overutilized and use the new -1 value returned by util_fits_cpu() to extend the search for the best CPU. Remove capacity inversion detection that is covered by these changes. Changes since v4: - Added patch 2 to remove capacity inversion detection Vincent Guittot (2): sched/fair: unlink misfit task from cpu overutilized sched/fair: Remove capacity inversion detection kernel/sched/fair.c | 189 ++++++++++++++++++++----------------------- kernel/sched/sched.h | 19 ----- 2 files changed, 87 insertions(+), 121 deletions(-) Acked-by: Rafael J. Wysocki