Received: by 10.192.165.156 with SMTP id m28csp464590imm; Fri, 13 Apr 2018 02:13:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx489/LpN/6Up9310moprMy8CWjI1Ks9O0+MPUDoRzkxacWrUGAT89DV5PzKcZd5R5tyuy48z X-Received: by 10.99.157.66 with SMTP id i63mr3189811pgd.83.1523610782716; Fri, 13 Apr 2018 02:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523610782; cv=none; d=google.com; s=arc-20160816; b=r8rZYxglB+8PA0Hi9fbUCB+hHcWCzzV8zgLWiI+vNOSsNv4szQUsFN+LJi3YMGpW13 P9WjQZEA4TAa/qfSVvaEXGV+Wynz5UKt468NjvpjCzDH1LvcHcrtGlRP68kDwWCER1fr WONJyCW4vOgm1VhfWIrSVWljxeflDYQm8BFElY/QTWzD5bloEsu1+UIww+i6QKOC10I0 zQk6XuvnJgbXuTnJmkKQVW1xBuXuY0CzDXiKTQtTIjs8LPXTGxXZMDrMk/gBs2QiEIgd xWrlVX8Q+mm+FKsVNMaH9KHWlOFOjG6a7veIbJBabsUC4NVMy/YzDFhZ5+cyhNu4yFhU ZDjg== 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=B+S1qc9WmZCY6faBdCY8RrcTQFbYnS0uSZkKbl0/XUo=; b=keRUCEwVtYLccy0ZPy4hFX24XNBnOC2h0RcjC3xMWEJ/dBfSZqzT49S45m9AqTZaVK F0bs/+23p1ZjhaTcGq7XsVGa+pS5gTJXCcF0BHUB4T+MAqjeZGPN7eLRMqAia8WAouJz mjL2APAeu0YohbaTtkciPXU0ZXIkLSO/rm1TdVqZ2HZZB+CDmJPv6aWP4V2EXOOIZpQO fE4x27b3uqhDoceCbu4pQxVvAqHDOXBSb6vhSQ2yv60ip2/hh/igBNS9P56pRsLxv0pP 9ALCZdFtkLZiPONTkiaLcIYoI8MXuIu7FGOPNdW3GPRDiFkkayeaWr+t6pfv3ExWtnsw SVKA== 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 bb5-v6si4849234plb.709.2018.04.13.02.12.48; Fri, 13 Apr 2018 02:13:02 -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; 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 S1754062AbeDMJLo (ORCPT + 99 others); Fri, 13 Apr 2018 05:11:44 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40386 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbeDMJLm (ORCPT ); Fri, 13 Apr 2018 05:11:42 -0400 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 4FB6E1435; Fri, 13 Apr 2018 02:11:40 -0700 (PDT) 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 918113F24A; Fri, 13 Apr 2018 02:11:38 -0700 (PDT) Date: Fri, 13 Apr 2018 10:11:36 +0100 From: Morten Rasmussen To: Peter Zijlstra Cc: Vincent Guittot , Catalin Marinas , Will Deacon , linux-kernel , Dietmar Eggemann , Chris Redpath , Valentin Schneider , LAK Subject: Re: [PATCH] sched: support dynamiQ cluster Message-ID: <20180413091136.GV4589@e105550-lin.cambridge.arm.com> References: <74865492-d9a6-649d-d37c-a5a6a8c28f23@arm.com> <20180405154630.GS4589@e105550-lin.cambridge.arm.com> <20180406125825.GT4589@e105550-lin.cambridge.arm.com> <20180410131950.GU4589@e105550-lin.cambridge.arm.com> <20180412182211.GC4082@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180412182211.GC4082@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 Thu, Apr 12, 2018 at 08:22:11PM +0200, Peter Zijlstra wrote: > On Tue, Apr 10, 2018 at 02:19:50PM +0100, Morten Rasmussen wrote: > > As said above, I see your point about completion time might suffer in > > some cases for low utilization tasks, but I don't see how you can fix > > that automagically. ASYM_PACKING has a lot of problematic side-effects. > > If use-space knows that completion time is important for a task, there > > are already ways to improve that somewhat in mainline (task priority and > > pinning), and more powerful solutions in the Android kernel which > > Patrick is currently pushing upstream. > > So I tend to side with Morten on this one. I don't particularly like > ASYM_PACKING much, but we already had it for PPC and it works for the > small difference in performance ITMI has. > > At the time Morten already objected to using it for ITMI, and I just > haven't had time to look into his proposal for using capacity. > > But I don't see it working right for big.litte/dynamiq, simply because > it is a very strong always big preference, which is against the whole > design premisis of big.little (as Morten has been trying to argue). In Vincent's defence, vendors do sometimes make design decisions that I don't quite understand. So there could be users that really want a non-energy-aware big-first policy, but as I said earlier in this thread, that could be implemented better with a small tweak to wake_cap() and using the misfit patches. We would have to disable big-first policy and go with the current migrate-big-task-to-big-cpus policy as soon as we care about energy. I'm happy to give that try and come up with a patch.