Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1015272pxb; Fri, 15 Apr 2022 18:25:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0GLz+AE5tiGPV3Msl9ve3Hl/2AFGs+eosASGhfEgzSqQ9dI2X1WSTSraOSTU+s58NSTRV X-Received: by 2002:a17:902:f787:b0:152:157:eb7 with SMTP id q7-20020a170902f78700b0015201570eb7mr1334436pln.109.1650072325856; Fri, 15 Apr 2022 18:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650072325; cv=none; d=google.com; s=arc-20160816; b=0i+LBTNcO5y8h2WoYac88sMExN1O95nsxWmLMfWOXGho1qk7etaH/jV/DXh5paSsKn 2ir0k6TEyyUu4JAMAt7/R7/l3MS9MmbmC9yeneCXBICRnRvwjiPDQYcJ/oiBX9ParItM K0BoB6s2edEu5MPAYlPdw5Dv1lzcYqFJCiYf/vglSJrCDDIGGqAPXLqqLfashC3i3cEa e0EK8KuoZULwrqO6Z1sZ6aI02YhrHirN4rrsqIPthnkOZfC/fEhFL4YDwgXo7qsWS1PS HxFPvTGSqx3uOgPgCaqs+lQdLHN/cA7ZT4wPqvWJxOaDHYHi0NpXQYEmSvJFRKdDIOwl wOxw== 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:date:dkim-signature; bh=UXAScB/7dXiIcZZ+SfTsfL5JTQZXS0Nu46DcE+Qd/Sg=; b=oThrGmspAeVqRLt3DmL4XO8hc3MGfReclbKG0i3v7vsAhl1k8zG8dv/+cQQbKVvZv8 cT9cdlXg9wfeEtQLbCyjzwD5NuVwGiPJAOCKkc5J2zPs1+5TrjfFByyQjzyBtd09Mq6d YUvH+pL5//r3si5MSKn3RdKT4S/ZkULTjcuuVKmIvfBpomADhmvzjQvdIAdLSgcagByt mHrpiVy+Ww/5aZ1X0ehuPeddy4xbLmf4+Ze4fF9a1CHYNrJzzQFR0DR4w+DFv4Q9n26Z XtbdDEwC/xBT+O4XA6/RDm0NYAeaIJvqf7A91J9DjbJS29zXEkFM9VNQOAFPKrb8pyeA d0FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ZMLBAUGx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u8-20020a170902bf4800b00158e0640f01si1737733pls.582.2022.04.15.18.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:25:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ZMLBAUGx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2440B13E169; Fri, 15 Apr 2022 17:56:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352406AbiDOLgs (ORCPT + 99 others); Fri, 15 Apr 2022 07:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240835AbiDOLgr (ORCPT ); Fri, 15 Apr 2022 07:36:47 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4087513D2D for ; Fri, 15 Apr 2022 04:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UXAScB/7dXiIcZZ+SfTsfL5JTQZXS0Nu46DcE+Qd/Sg=; b=ZMLBAUGxpS298vNajAPNIIBo38 x9FlOEmikFX4DvHYFcI5v2+SYCw3y3IK9bV36jEd0VBTYan1pLe2TQjTJ6x2LzsmJQEX6O9m8kj0z 0st6BBRpHes0AiQm/DEqGNpoqPKwYesFxoJQx74ZUmjEqvlpKuXk04bN/zKIM1wrzq934aWru5oRX DgtNL4+9SD+mR5/krYUOec7cZR6s1prkm/V37lzqrk2rB7am3qDlrogwAVMFnmOyrau4S3Qzq8Hon Oy4I05eDnmLNrfJsiySthPFkzBOiiV3WYqEhxIEdHjQwmAifpdasx8oSz3+8NbsSuJ+uGkMAUJqz3 oyIYIb/A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfKD4-005MnD-3Z; Fri, 15 Apr 2022 11:33:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 82ADA3001AD; Fri, 15 Apr 2022 13:33:53 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 381C92D206192; Fri, 15 Apr 2022 13:33:53 +0200 (CEST) Date: Fri, 15 Apr 2022 13:33:53 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: Tao Zhou , LKML , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira Subject: Re: [PATCH V1 RESEND]: sched/fair: Revise comment about lb decision matrix Message-ID: References: <20220415022246.14902-1-tao.zhou@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Apr 15, 2022 at 10:32:09AM +0200, Vincent Guittot wrote: > On Fri, 15 Apr 2022 at 04:22, 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(). > > The behavior has changed with > cad68e552e77 ("sched/fair: Consider misfit tasks when load-balancing") > But we haven't updated the matrix > > Reviewed-by: Vincent Guittot Thanks (I took the later version and stuck your Rb on)!