Received: by 10.223.185.116 with SMTP id b49csp3854420wrg; Mon, 26 Feb 2018 07:11:22 -0800 (PST) X-Google-Smtp-Source: AH8x2260W2XEnQiy1kdE4Xu3gs9zietkcxSW1fMUKMicmRm3l/mrUSPfIUq4Z+qr2qqatCLVnrnG X-Received: by 2002:a17:902:8541:: with SMTP id d1-v6mr10858944plo.54.1519657882513; Mon, 26 Feb 2018 07:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519657882; cv=none; d=google.com; s=arc-20160816; b=Pzvl8Z7uwpPGig5j/5AAY9TgFujgX2VOgPpN571dWMwVj+7zcZ4n7cIlrBaK4LHYtD XAOZYoT2kd5Bx0fQMiVwOJAZi7KoJbWLxI0dSKlduw758yXPK/rHoxu+SAEHX3Ho/r3+ aIB3y0w3tu21NhnrSBw63CeyCD8J64N8JQd+hnCEEnBNEx9Xez2O6v0zdn9XHaYYps6G 3ZHNZSuNAuu5g25AFDAxHmMgS33+FTt6NSQAkKkxkKQ4DWtyFaWvwQtJLtBGx0XOrCRo gCy0LUQtlMIelbVdm6uq1bMmp5WKuxtsDeVobP+HV/N0UQxp0jyy8+oxNnc7UJrcpXNf jmVQ== 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:arc-authentication-results; bh=0liSvoyAS8z+ir7worr9j7T1R/loaNLX37G6h/T1XoY=; b=BajYCCGvYjmIUc7PH3A5t5mSIrnUMJH2SfXFo27cACH4XUYYjFUtKdFSHyNJdYaedR OIdiSidQOqKga1rS94a6SIPpMYm+NlrzekzPFdQt6RxBXRC5u9TSw5Ex1QV+fvR2yAHu LH8ec1diibVDxh0lAykLVrasy65ZaMPlHsXRtelidZFpRifrm+Jf6H6Y1oPJkf2WZTSo 8siX88ZRcz7TP/KDy5urhBamdyRsE6eycapIf4g6LPlyyD9ygZyFNKA6atE/LnYceADC 9SfaHVtmnqibKnAtmuF06El4X1mJFHcHpsy7wnqrL0ZqxQ4o+m7p2ps78EdY7ToNDSlR M5gA== ARC-Authentication-Results: i=1; mx.google.com; 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 i11-v6si6907860plt.688.2018.02.26.07.11.08; Mon, 26 Feb 2018 07:11:22 -0800 (PST) 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; 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 S1754101AbeBZPJK (ORCPT + 99 others); Mon, 26 Feb 2018 10:09:10 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51324 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbeBZPGV (ORCPT ); Mon, 26 Feb 2018 10:06:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BE15D15AD; Mon, 26 Feb 2018 07:06:20 -0800 (PST) Received: from e105550-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C0803F487; Mon, 26 Feb 2018 07:06:19 -0800 (PST) Date: Mon, 26 Feb 2018 15:06:17 +0000 From: Morten Rasmussen To: Peter Zijlstra Cc: mingo@redhat.com, valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups Message-ID: <20180226150617.GF4589@e105550-lin.cambridge.arm.com> References: <1518711654-23503-1-git-send-email-morten.rasmussen@arm.com> <1518711654-23503-5-git-send-email-morten.rasmussen@arm.com> <20180219151011.GI25181@hirez.programming.kicks-ass.net> <20180220163352.GD4589@e105550-lin.cambridge.arm.com> <20180220182605.GI25201@hirez.programming.kicks-ass.net> <20180223163806.GE4589@e105550-lin.cambridge.arm.com> <20180223164752.GW25181@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180223164752.GW25181@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 23, 2018 at 05:47:52PM +0100, Peter Zijlstra wrote: > On Fri, Feb 23, 2018 at 04:38:06PM +0000, Morten Rasmussen wrote: > > > Or am I now terminally confused again? > > > > No, I think you are right, or I'm equally confused. > > :-) > > Would it make sense to also track max_capacity, but then based on the > value before RT scaling ? > > That should readily be able to distinguish between big and little > clusters, although then DynamiQ would still completely ruin things. IIRC, I did actually track max_capacity to begin with for the wake_cap() stuff, but someone suggested to use min_capacity instead to factor in the RT scaling as it could potentially help some use-cases. I can add unscaled max_capacity tracking and use that as this is primarily a solution for asymmetric cpu capacity system. Whether we track max or min shouldn't really matter if it is based on original capacity, unless you have a DynamiQ system. For DynamiQ system it depends on how it is configured. If it is a single DynamiQ cluster we will have just on sched_domain with per-cpu sched_groups, so we don't have balancing between mixed groups. If we have multiple DynamiQ clusters, we can have mixed groups, homogeneous groups, or both depending on the system configuration. Homogeneous groups should be okay, mixed groups could work okay, I think, as long as all group have the same mix, a mix of mixed groups is going to be a challenge. Most likely we would have to treat all these groups as one and ignore cache boundaries for scheduling decisions. We are slowly getting into the mess of which capacity should be used for various conditions. Is it the original capacity (unscaled and at the highest frequency), do we subtract the RT utilization, and what if the thermal framework has disabled some of the higher frequencies? Particularly, the fact that constraints impose by RT and thermal are not permanent and might change depending on the use-case and how we place the tasks. But that is a longer discussion to be had.