Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2643049pxb; Mon, 19 Apr 2021 10:15:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwmmHU8/yBRJoYLOW0KlIfYTN80P6vTZ7ywzt9TW8sPz+TEzevmViZPmKaXc2ODUAb9mc4 X-Received: by 2002:a17:906:9344:: with SMTP id p4mr22793888ejw.346.1618852511851; Mon, 19 Apr 2021 10:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618852511; cv=none; d=google.com; s=arc-20160816; b=zg+IQi8WpZylxiDARcIgLAjV6HryQzNgVPGBJlaAgayW9ppFCCcN+7IqEi6uGqmBdU Y+gCqa+kKD/t56MsKppHz8bs0SkqFqkwmGMysjZ5IdWaejCn624o2j3uzXHM9487TBx/ YUcJb7EXtyxpVdDJYGy/t+vff0XnCLxBUNTGGn9VEkq2PTaGgta7BTr8j0sOJByIRsgf K4vpN+Y8PXbbEbGJeYb9H5OgYrKSffigTY64sV1djbDKN9/jVLugR2/7mSesoyhR8bhf rgdTMTqrv7/RHnxrP25bIu+DNrAXr8IiBE1jS6pmzYi3kJr4vlBnhIgpaJVGr8yocehF A3hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=//jZ/w2j8/HrD3kQU4FkHaKm40uoeyJ4fmnCakwOcho=; b=o0MvqSPUeDsaAVxNhFACtfSxwl93zu9ncSX2UssaSV91VtbBOWwfuO9hKVcxBdDhw7 9iNW2JiJzY2sICBqXpC2gWX1j5wau31PzAWvYOXNlWn/INqfpdZVMwhIooO1F0H+BrNi H53/IoOgIPSdnfixi+bI5C1c2exRbSBbOZrf4sVycAMi0tDmS8zqD7XhicBIFrIYQqp2 ER7E/u1VKMzfQ6Ympj0/rzYk0u34sBZXuT4qTRfTTmUx21jPDJ5Mbf5a/37W5VRFpX88 uIO1WI943fZixl68JR1eyCkvYojpfy+Lmr+9+D9/SEm+isEH1TqXVSVk0WZImROWrhUR BqGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq8si12608069ejc.358.2021.04.19.10.14.38; Mon, 19 Apr 2021 10:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239802AbhDSRNv (ORCPT + 99 others); Mon, 19 Apr 2021 13:13:51 -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