Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp25697lfe; Fri, 15 Apr 2022 17:46:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsw3E9muS+y9z6XFayM1Qk7E3xEs/FhqZodGhfhw17Zs00PDTueD+B9ei8NrMfJSgoQSQ9 X-Received: by 2002:a65:6e43:0:b0:39d:7d0e:11a8 with SMTP id be3-20020a656e43000000b0039d7d0e11a8mr1148613pgb.576.1650069982009; Fri, 15 Apr 2022 17:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069982; cv=none; d=google.com; s=arc-20160816; b=QOQYFehzgvw7B6rTPabnAUzoRSWvRcKRDq/YBqxHcNeO9RuexE3EoEXSkSbBfxqDY9 +47kjfwoN6FromdLy5j9X7ZwhWTPZmFdrdJyavFTGrC2kJgs1d5CAnaL1KvRD59hWoCy l3HS3Jt/CCyd5mOeUEp5MRJNupVSqAKFXaH9+E2+JlzGDFiOT65IGOdR9bJ5nyCGlIBp RF1Sa1rhYq3dyVDHmGsUwTPjUziX/XZQvKrG3qtmjiOJcBPgUg2FI5mPdPXs2nrJGPpN tZ5e2EJ6Kj7mfqX8WNZRmFdVeqaSOXjMSCVsg5Pi8YnHH+SDelJGtRBwr5c3mioYqaqe x/nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=/+VSutvUSiv//xHeSteJ4KSmEkceAWe5O0V0zQQ96dU=; b=S7ahGRT3WfCxOSqacEn3KFv8Sm5NoaBOPylbDESi8hDHmeNsmOLSbsVkaeWqMXAT9X LS1gHKv4wVdqEekrweDCe4h8+OEibdDBgFBPqAfGEDfRz8Xlxse6b0YlGvEcGnlcrbiz v4jwIqR+/tV/rhcc6UZXb4Kin0Y1l6/njprlPn3+/JbAzC4zXe4ntmBmryVsqnX/C9xt vkMUEpoFdZtasH0E9AujmjxMW4tNk1btoZKwxenr8Ru6g5/KsZ3oXurWyNQyAA5+/QcY 5OAuk/i64hE52I4Nr/zzvIVzvN5bf/yPGvxndeBVCMkaZsrBKtqm3kd9cysla/n+zrCv o3ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=B7Njgway; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o2-20020a625a02000000b004fa3e2a9b13si2553500pfb.378.2022.04.15.17.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=B7Njgway; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25852F896D; Fri, 15 Apr 2022 17:37:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237742AbiDNR3B (ORCPT + 99 others); Thu, 14 Apr 2022 13:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237156AbiDNR26 (ORCPT ); Thu, 14 Apr 2022 13:28:58 -0400 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E383CC9B65 for ; Thu, 14 Apr 2022 10:26:32 -0700 (PDT) Date: Fri, 15 Apr 2022 01:27:08 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1649957190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/+VSutvUSiv//xHeSteJ4KSmEkceAWe5O0V0zQQ96dU=; b=B7Njgway+nohBCEYxnkEA/beYuTbirwMhnAKBflq1zgYG2Qg+QK8Db+lHGK9Hp1TMn3zbD /umjhIaIrrIpSR4X46Yp1hQsmyN3T45YQzNI6QcvujI1EezeJwnPXfsKDMtCNCL5LiOjQ+ A41Xmqspb6U0vSx7IqVwapim8BYYqQc= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Tao Zhou To: Dietmar Eggemann Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair: Revise comment about lb decision matrix Message-ID: References: <20220403175946.7323-1-tao.zhou@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Apr 14, 2022 at 12:33:06PM +0200, Dietmar Eggemann wrote: > On 03/04/2022 19:59, Tao Zhou wrote: > > If busiest group type is group_misfit_task, the local > > group type must be group_has_spare according to below > > code in update_sd_pick_busiest(): > > > > if (sgs->group_type == group_misfit_task && > > (!capacity_greater(capacity_of(env->dst_cpu), sg->sgc->max_capacity) || > > sds->local_stat.group_type != group_has_spare)) > > return false; > > > > group type imbalanced and overloaded and fully_busy are filtered in here. > > misfit and asym are filtered before in update_sg_lb_stats(). > > So, change the decision matrix to: > > > > 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 *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 > > --- > > 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 5146163bfabb..5765d96202c7 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -9441,7 +9441,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 > > You should put people you find in `./scripts/get_maintainer.pl > kernel/sched/fair.c` on To/Cc to attract more attention. > > Otherwise, LGTM. > > Reviewed-by: Dietmar Eggemann I will send based on latest rc version.. Thanks, Tao