From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF16AC433ED for ; Mon, 19 Apr 2021 17:13:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7A251611F2 for ; Mon, 19 Apr 2021 17:13:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239830AbhDSRNw (ORCPT ); Mon, 19 Apr 2021 13:13:52 -0400 Received: from foss.arm.com ([217.140.110.172]:46924 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233576AbhDSRNs (ORCPT ); Mon, 19 Apr 2021 13:13:48 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9A83E1478; Mon, 19 Apr 2021 10:13:18 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 25A513F7D7; Mon, 19 Apr 2021 10:13:17 -0700 (PDT) From: Valentin Schneider To: Vincent Guittot Cc: linux-kernel , Peter Zijlstra , Ingo Molnar , Dietmar Eggemann , Morten Rasmussen , Qais Yousef , Quentin Perret , Pavan Kondeti , Rik van Riel , Lingutla Chandrasekhar Subject: Re: [PATCH 1/2] sched/fair: Filter out locally-unsolvable misfit imbalances In-Reply-To: References: <20210415175846.494385-1-valentin.schneider@arm.com> <20210415175846.494385-2-valentin.schneider@arm.com> Date: Mon, 19 Apr 2021 18:13:10 +0100 Message-ID: <87czuqkxjt.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/04/21 15:29, Vincent Guittot wrote: > On Thu, 15 Apr 2021 at 19:58, Valentin Schneider > wrote: >> @@ -9441,8 +9465,8 @@ static struct rq *find_busiest_queue(struct lb_env *env, >> * average load. >> */ >> if (env->sd->flags & SD_ASYM_CPUCAPACITY && >> - !capacity_greater(capacity_of(env->dst_cpu), capacity) && >> - nr_running == 1) >> + env->src_grp_type <= group_fully_busy && >> + !capacity_greater(capacity_of(env->dst_cpu), capacity)) >> continue; >> >> switch (env->migration_type) { >> @@ -9504,15 +9528,18 @@ static struct rq *find_busiest_queue(struct lb_env *env, >> case migrate_misfit: >> /* >> * For ASYM_CPUCAPACITY domains with misfit tasks we >> - * simply seek the "biggest" misfit task. >> + * simply seek the "biggest" misfit task we can >> + * accommodate. >> */ >> + if (!cpu_capacity_greater(env->dst_cpu, i)) > > Use the same level of interface as above. This makes code and the > condition easier to follow in find_busiest_queue() > > capacity_greater(capacity_of(env->dst_cpu), capacity_of(i)) > OK