Received: by 10.213.65.68 with SMTP id h4csp753388imn; Wed, 4 Apr 2018 06:45:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6pGF90MFveTcwfF3DVJiPrbsXux94joUga9U+yWBDC1RR3DGU6LAWAEuxx0wwjwQqvdzv X-Received: by 10.101.101.209 with SMTP id y17mr4518383pgv.408.1522849512383; Wed, 04 Apr 2018 06:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522849512; cv=none; d=google.com; s=arc-20160816; b=XsZ44aLAEU3dgYzkUnpOs4dEe/AkIDoOwLS8SPX7x/O1EDCDisqdXNcpoG+nYxO7TY oqw1Ps96iJbN+7hZN4+MUmrgtbetc8PA2GcqWmmvt0uEUkdxzxg/+Hu+dt3yCxSf/qmX qZL+/l4auvD5ljzST1g/ituC32t1I8Wj7ju+1g4b/yTa3J4D9YoUmDh5Y2MNsTNmFxAg E2LhR6TERHysw9TFHHW6taKTDwTacQpA4WAZmjdMkUTIWj/lZ83Y1KXM/aOfmmzxwVVF Ziept155VGlaL6snsqbgu6yTRm+QGiapnaAWOJ0BHv9pl6Tb+0ZEB1EhSSaNpS8yNtuC kT3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FT/Zm9QhYBuXBi4SM00AGhsuywYtQmLpJDJaia6Ha80=; b=v3s2tT+KHuWCnsacraANsY+mMcCH1ERmgq3DA11mw0lvytPVRIAPYDQGJWJc9V+j0r ndaVg02TVmoIHGz4q/LaUbFeu3S5P288QRAf3FDALFFZF2arovsnvH2vi6maLsFPxkgc FgUzM9oym3HtLx/klB7eegfYfjJTdeSieRSvRqRV9IrR1+4wWGbhDwNeVkU4pSVTict3 AIsMJGI6Sene129oZAr9bpfPNLsgYh3tGRxgJHmiexU2KmE8luxfLMNpJX7nMZ8Ua7mD jvqer89DW87s4kWTn772QLUteuFF3OEpg89kD9NbP58U/cB3U+04GkjMiv3Qvwf13Onj d7oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GoNk12r2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16si3621547pgn.813.2018.04.04.06.44.58; Wed, 04 Apr 2018 06:45:12 -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=pass header.i=@linaro.org header.s=google header.b=GoNk12r2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751265AbeDDNnj (ORCPT + 99 others); Wed, 4 Apr 2018 09:43:39 -0400 Received: from mail-it0-f53.google.com ([209.85.214.53]:50572 "EHLO mail-it0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890AbeDDNni (ORCPT ); Wed, 4 Apr 2018 09:43:38 -0400 Received: by mail-it0-f53.google.com with SMTP id r19-v6so28216486itc.0 for ; Wed, 04 Apr 2018 06:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FT/Zm9QhYBuXBi4SM00AGhsuywYtQmLpJDJaia6Ha80=; b=GoNk12r2z+CM50YD7u5uneEvH4MpiikKdof3rPkjTWbtOnXiU+HXlFqjfECHkkoEMi Mg9WEcEzTCvllO7WL5544trMmrLLarh0Wm+mCOdb+19VjjGH2I28scDdFGIWR/CStDfq jmY21qu/nhtJfJIwout0ldQ44Zc1+JJImboT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FT/Zm9QhYBuXBi4SM00AGhsuywYtQmLpJDJaia6Ha80=; b=cZJEjLoFZivH31HGRxQ15kiXPYaDRrpyBWQXmIFpEUzE45btxD5tPZhJa2YSqWvlAJ pYrm0Y2zvHl42avafmwjjsFnFthz8vxC3xTgqHG+eLPTm8Bfh8Ma+eCw0HUglpMzpWjw GcebczuzMYp0w749Luw1I9yRq1gLzSzFBninHAoCWpBj1RmBoa6Igki6zse/Sac+JVM0 J32Wa/8dlY7hIje3PrkgOB8rFPwgDILxKDqPRIF+P1Q8XM0CoZK4FLe0WXDOOYrgoftH RaPVffzxFJgjG8ige9vP/x8L3wrbVKDjEMGZE23prWZKNtaEFPDsMuoRtWhEhwrvsbVE gVoA== X-Gm-Message-State: ALQs6tByvIP/q9xuzD9gJyF0GQgkvgfqza3csVcHpL1pZYVYkgcl8W+O u9sTzUvMLyaDmDpiftod0zQpXURZgliR/MILL0PmQQ== X-Received: by 2002:a24:46cd:: with SMTP id j196-v6mr8952064itb.8.1522849417663; Wed, 04 Apr 2018 06:43:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.222.20 with HTTP; Wed, 4 Apr 2018 06:43:17 -0700 (PDT) In-Reply-To: References: <1522223215-23524-1-git-send-email-vincent.guittot@linaro.org> <20180329125324.GR4589@e105550-lin.cambridge.arm.com> <74865492-d9a6-649d-d37c-a5a6a8c28f23@arm.com> From: Vincent Guittot Date: Wed, 4 Apr 2018 15:43:17 +0200 Message-ID: Subject: Re: [PATCH] sched: support dynamiQ cluster To: Valentin Schneider Cc: Morten Rasmussen , Catalin Marinas , Will Deacon , LAK , linux-kernel , Peter Zijlstra , Dietmar Eggemann , Chris Redpath Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4 April 2018 at 12:44, Valentin Schneider wrote: > Hi, > > On 03/04/18 13:17, Vincent Guittot wrote: >> Hi Valentin, >> > [...] >>> >>> I believe ASYM_PACKING behaves better here because the workload is only >>> sysbench threads. As stated above, since task utilization is disregarded, I >> >> It behaves better because it doesn't wait for the task's utilization >> to reach a level before assuming the task needs high compute capacity. >> The utilization gives an idea of the running time of the task not the >> performance level that is needed >> > > That's my point actually. ASYM_PACKING disregards utilization and moves those > threads to the big cores ASAP, which is good here because it's just sysbench > threads. > > What I meant was that if the task composition changes, IOW we mix "small" > tasks (e.g. periodic stuff) and "big" tasks (performance-sensitive stuff like > sysbench threads), we shouldn't assume all of those require to run on a big > CPU. The thing is, ASYM_PACKING can't make the difference between those, so That's the 1st point where I tend to disagree: why big cores are only for long running task and periodic stuff can't need to run on big cores to get max compute capacity ? You make the assumption that only long running tasks need high compute capacity. This patch wants to always provide max compute capacity to the system and not only long running task > it'll all come down to which task spawned first. > > Furthermore, ASYM_PACKING will forcefully move tasks via active balance > regardless of the imbalance as long as a big CPU is idle. > > So we could have a scenario where loads of "small" tasks spawn, and they all > get moved to a big CPU until they're all full (because they're periodic tasks > so the big CPUs will eventually be idle and will pull another task as long as > they get some idle time). > > Then, before the load tracking signals of those tasks ramp up high enough > that the load balancer would try to move those to LITTLE CPUs, some "big" > tasks spawn. They get scheduled on LITTLE CPUs, and now the system will look > balanced so nothing will be done. As explained above, as long as the big CPUs are always used,I don't think it's a problem. What is a problem is if a task stays on a little CPU whereas a big CPU is idle because we can provide more throughput > > > I acknowledge this all sounds convoluted but I hope it highlights what I > think could go wrong with ASYM_PACKING on asymmetric systems. > > Regards, > Valentin