Received: by 10.192.165.156 with SMTP id m28csp561841imm; Wed, 11 Apr 2018 03:51:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ECmY4YDjTGsxvURLa+5PcGnPxWKBgYb6Q1Isgj0cRmWg2N8OVYGbjkvW9nv6FEPRZcAcz X-Received: by 10.99.119.9 with SMTP id s9mr3037138pgc.276.1523443884192; Wed, 11 Apr 2018 03:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523443884; cv=none; d=google.com; s=arc-20160816; b=J/H3LY4AjRNiF2lJug6P/dyGf/UJom9bR5NshCOgXtcuphB3hkpetlMFJT3vsJ11J0 W17Leq7pHkykogE33yag+64cvVB+jZQY3Hu16rdiPzXuPyDP5/At8HammPF6Uausbaku 0kiJjTHF4opPPVbnKUwtpdGY3F6tcy4+8uw8qvLxIitxS/JRXbHlbkP9durz0CHWxXoO ov9CmpWW827y44B0x1Nbg3Kmi1n/wLyLZADpUztjKN89WnKMmDinHDDFc5n47iSw8nze HByk0iYOS57+spZCIz471UYQMG8nf67yogupNwEwt5O5+sunefXOEvp7R/NlJYcy4p7V vLIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=eAZ+R35cDXZtVYYYHdKxbBcUXmgkSA8BXw7kM7BVy3U=; b=NouPpi36yzG5xUeFxaX3nbn59mRhEilok8/8jcujaQF2wUgXkFhreVWHb3IiMDzigs Z4CJvQiDXLqotpyEd6BM4VWxRrWB5y7H1e4azIRlimCYqxpn4dHq5TThTStdBI8waOZM 1MylTBo6fHSzVdkO19TDsLKclgcyOOx9/97oVv2BV1etSEpLm+15Z2I+Ro19tg5Fuhmi 3dHtoktm6+ilmZ9DcjnVLf2zf5Q6iRNv+7uOAT0h3+7yV86YPKXEX8TboJudu3Mn3+hU oj62095Si7yjnTI+L3SiuDhtffn9EYVGXS7ua9qByj6WmhQ/6rCkptBWe5LzJJsDUm2J eSmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=vVeKXgGn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si875799pli.586.2018.04.11.03.50.46; Wed, 11 Apr 2018 03:51:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=vVeKXgGn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752765AbeDKKqr (ORCPT + 99 others); Wed, 11 Apr 2018 06:46:47 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45508 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbeDKKqq (ORCPT ); Wed, 11 Apr 2018 06:46:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eAZ+R35cDXZtVYYYHdKxbBcUXmgkSA8BXw7kM7BVy3U=; b=vVeKXgGn0DDK8epTbN1PUmIoR 2nVD7/ltZcGE0TzIi3RnWfNMaEW/2kv5Xo6CxdZy2yNWzeNyLyZP854ASQRFsaA72STsJEEcdSoAL AHe/Z7e2ZcRwJzD3EMetStLtaoTI+SyNCQatqFZ//X7JAV1XH+I1Oqst61s+lDsZem2gTCqVkjO3N k+GrTD6gBYtAIkzgsP4sGqXDobU05VQjHCgTUby1wda9UjEJ7ZxEGzN6nVsj7KMnqVqzUmm3Myoj3 tV5pxq0igaBzBTvvTRvWSWu6XToaKXo9h2PLydT+2IprnihsbxphUFGPAaHagtZC3Klv2rkQ2ITPa 9VOJcpo1w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f6DGz-0002UK-SR; Wed, 11 Apr 2018 10:46:42 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A5D732029908D; Wed, 11 Apr 2018 12:46:39 +0200 (CEST) Date: Wed, 11 Apr 2018 12:46:39 +0200 From: Peter Zijlstra To: Morten Rasmussen Cc: mingo@redhat.com, valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gaku.inami.xh@renesas.com, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 3/7] sched/fair: Consider misfit tasks when load-balancing Message-ID: <20180411104639.GH4043@hirez.programming.kicks-ass.net> References: <1521125224-15434-1-git-send-email-morten.rasmussen@arm.com> <1521125224-15434-4-git-send-email-morten.rasmussen@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521125224-15434-4-git-send-email-morten.rasmussen@arm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 02:47:00PM +0000, Morten Rasmussen wrote: > @@ -8548,6 +8569,14 @@ static struct rq *find_busiest_queue(struct lb_env *env, > if (rt > env->fbq_type) > continue; > > + /* > + * For ASYM_CPUCAPACITY domains with misfit tasks we ignore > + * load. > + */ > + if (env->src_grp_type == group_misfit_task && > + rq->misfit_task_load) > + return rq; > + > capacity = capacity_of(i); > > wl = weighted_cpuload(rq); Similarly, should we not return worst misfit instead of the first?