Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2155431pxb; Sun, 24 Apr 2022 06:21:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx10d9z/hfFNHcr41/3yMcBufNogq/2PWA+VkyIFRjuVOypHJA5iVu0nS4ZteFACBfCB+ZQ X-Received: by 2002:a17:906:7946:b0:6f0:12ee:4418 with SMTP id l6-20020a170906794600b006f012ee4418mr12280055ejo.156.1650806469872; Sun, 24 Apr 2022 06:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650806469; cv=none; d=google.com; s=arc-20160816; b=Diayy+YuuQ0IFDTqEsZqwAQ8mFFOOFl5pEVFvep6w7AMJN0W8GObhlfY1rzF6YKgIf 2zse6BlqiHOf8PqurOG6+B6M44wvxlj5GDraqDwJl7JjdeY9SAZzpTOIXL7Wn7GSfFGq Qst+87fy9A3Bg0qfU/lbyvn2wVAKRI1yjmlVzJzXS4kopc3qn7OUJpfmlXgW5VRqKlTd eZuhqTSp9wU0oTW2ldgMwVwCYH137pJoxEEqBJRA8lgOCF9C29lsmRPbvQZJMOdFmHjf jgf/JunWatmfT5166we46ruZbhP8WxV3wWgUBj+qugzmwX2SBBt2bt6USEH3kiQUayPg IDRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature; bh=gXnBpJRWWZHz4VNliAsh+cW2p8QDP/pr8g0gHxnSkb8=; b=mFpD6F8RMIL88DNV5GWCYPCFEvJ2sff7nGhQEnjFqrjOxP7XU2c9/7J9rm8THe2dR+ PyjPjSAavamK51qhzhdR33/u4vLX1sCql7qFCLh8qG8fbeh/uwjUw5tvrFCr9BSZ4cyG awsNKXce7YFvUxi2UPCPEZHMIHfS47j42jtRMYQxFklh/i3S/zXaAaDZD3VeQYi9f0t/ c5Vpd50A1cttAUeVTTlivfJcL3fIgqvrzmxNb1oZlt3R7UnJqfXPGuVLga5GzlJjpF2a JjuGGedRanOqA+m8QLH0cI+hKzjXLYCZKX82I2lErZ++60AWdYNutMoh89HSqKOmWbJZ dRNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZLMTw+LP; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a170906709500b006df76385d54si11483883ejk.500.2022.04.24.06.20.45; Sun, 24 Apr 2022 06:21:09 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=ZLMTw+LP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237424AbiDXH76 (ORCPT + 99 others); Sun, 24 Apr 2022 03:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiDXH7z (ORCPT ); Sun, 24 Apr 2022 03:59:55 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89B1F5DA05 for ; Sun, 24 Apr 2022 00:56:55 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id q12so10857322pgj.13 for ; Sun, 24 Apr 2022 00:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id; bh=gXnBpJRWWZHz4VNliAsh+cW2p8QDP/pr8g0gHxnSkb8=; b=ZLMTw+LPO4m6iN8dn5OOOIxghO9PW21/vOeRdHMxRbnN2MrKOKD4wsJih6P+KB9dPt bo11DMFIB7B9c4n8OJjNq/73BDWNbOhKZ0I6RN9YT00gfPK2qF7Lzv8TxIYkMbly0YB7 Vd6uwKe6NQXAa8qRLSdQcqogsYQUSLaouSs0zUvDx4TcnQExPCGTX4Uqqu+d2v4ArCmc hBLScI9h6NhdRx07pvhcVlhLTyAasIzd9zFKHooBpE6+fmwGBl/sGFHbbEu2ISYJ5t9a xisV69zJ9f9Q2HpJa7u+dM6QAPF+K3CSMMMCytJMDJjmzzkfdQBENQUvwtWm/kfRdkhh cF/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id; bh=gXnBpJRWWZHz4VNliAsh+cW2p8QDP/pr8g0gHxnSkb8=; b=BpJQU21TeaSw0JuKVgDHrHjYnwBMZyL1peTWCaKcU0+JAZGFf1PLkkmtHMPtiFCrlD EaSu4hKSXct5D2RFdHJ0UY/Qtvm8t4YC7atZb57ItGwNHQIXm18AFvNjR4XhOxRl/BH5 eBQP4D78+xyrVds3r3ZwJxehZF33uGpNFiN5sX1J42sD9o1AZHWMz9xgDloI78tDSSSi 6gSh0qWgS6URVoS27ksqKV/k8BzcuIJe2WwS1Qzipxw/TO7U48dIpIK5+R35pdb6YBL+ SZCrBIQybwTmG+0UnUHzSLKjS3k0mUESnbQ+FdyFqCJW4bj7m/Tk17oXLv38pXW/qfsi AX0A== X-Gm-Message-State: AOAM532ADTUtjotjhzfWu2tu6nEXFSk8xAFq3jqpJrnXz6/xeWh1aJDw spDZlt8y0m/4qUkZ6gUcEvQ= X-Received: by 2002:a05:6a00:228c:b0:50c:6a9a:a325 with SMTP id f12-20020a056a00228c00b0050c6a9aa325mr12900415pfe.79.1650787014939; Sun, 24 Apr 2022 00:56:54 -0700 (PDT) Received: from localhost.localdomain ([150.109.127.35]) by smtp.gmail.com with ESMTPSA id n2-20020aa79042000000b005057336554bsm7478487pfo.128.2022.04.24.00.56.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Apr 2022 00:56:54 -0700 (PDT) From: zgpeng X-Google-Original-From: zgpeng To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] sched/fair: Fix decision matrix of type misfit_task Date: Sun, 24 Apr 2022 15:56:50 +0800 Message-Id: <1650787010-8701-1-git-send-email-zgpeng@tencent.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 When the group type of the busiest is misfit_task, as long as the type of the local group is not equal to has_spare, those situation already filtered while updating statistics. Signed-off-by: zgpeng Reviewed-by: Samuel Liao --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d4bd299..b8c67e7 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9495,7 +9495,7 @@ static inline void calculate_imbalance(struct lb_env *env, struct sd_lb_stats *s * busiest \ local has_spare fully_busy misfit asym imbalanced overloaded * has_spare nr_idle balanced N/A N/A balanced balanced * fully_busy nr_idle nr_idle N/A N/A balanced balanced - * misfit_task force N/A N/A N/A force force + * misfit_task force N/A N/A N/A N/A N/A * asym_packing force force N/A N/A force force * imbalanced force force N/A N/A force force * overloaded force force N/A N/A force avg_load -- 2.9.5