Received: by 10.192.165.156 with SMTP id m28csp1099299imm; Fri, 13 Apr 2018 13:14:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/AWQ16qXANMmiWR7+pjj29s5CMS2NuLt8A7XFN9UZSd/YnVWM4AAleQm344nA71tt1epes X-Received: by 10.101.89.6 with SMTP id f6mr5075356pgu.178.1523650493362; Fri, 13 Apr 2018 13:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523650493; cv=none; d=google.com; s=arc-20160816; b=AL/yzGcI0bLupKvmmo8VNYvtjUlEvGu8ypgxvlxEaMsiA1cJXWX83RI+9jo2GHg1gA cFZPlFeGGFejh61DlAGrXj9yPz6U+IpRtPpY0lc3fEcUwyVL5whwHSp6ELn5YNZdeZ5u WAK0Mc9FueyitigCGhXlWcjJ95FEzcI3UK6b1BzkbMg8f0KBlBqdw8xwyapV11Ufa1Yu l+q9qB6BPPre24DH+qnX4/9/XzuBh58YC0drKik5vpNC/VHaRXYtwJCG9XfhMXW2PDKP eTGcbcEXcQLnSLrtrduIx8lZL8JmCOPVdaANdv5i4b8BJmJJVAzTmHwDMImCOGFmnGSU 5+qw== 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=8K8ssU/jpdtnAmFP371PUWgFsPARCb5iHMCdWjac99g=; b=bt+G9aWzCbWpjazEZ92YIbn5rr4Dc1YjxwDD6iKfH/ijD4MZ29TFsqrymmoxiHn2w2 AQbQkBsCk3xJUlhJZtOb9BuA3+CH08bMaS16EcHTakvC0OF55JHmnCLJ51M9HVoOdcPO FXTXkdMwJdaU/TXhCz0fqd0Kp81ibu3JCydrJVEUbfxnmPkzceEEkH1UGSN57d38ssrR sfUDkMy8BkvNVVKNtNomppTdMTJnac/09d6lU6SRR8yxzPN6XI391KUyRSxSqm+eeMOm nOePSnoAa31vg7GR6qhsIyQQhTXPYDX9eJ5HsSlDilGxQ9Hq3AkUio/80E54R3x83AHS u+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W6/WBS+9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si6102494plt.287.2018.04.13.13.14.21; Fri, 13 Apr 2018 13:14:53 -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=@gmail.com header.s=20161025 header.b=W6/WBS+9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751208AbeDMUMx (ORCPT + 99 others); Fri, 13 Apr 2018 16:12:53 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:33701 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbeDMUMw (ORCPT ); Fri, 13 Apr 2018 16:12:52 -0400 Received: by mail-wr0-f170.google.com with SMTP id z73so10998022wrb.0 for ; Fri, 13 Apr 2018 13:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8K8ssU/jpdtnAmFP371PUWgFsPARCb5iHMCdWjac99g=; b=W6/WBS+9nMYZgUeqGyIpm9la8BIp7gIlzvPohdQ+98DskxzfQFPqbRZUTCEZfiY1KH 9cXbWJZGXhDHh8M9EKhLQwqyr4XilrhNAh6zKS9DI/d3NGeqA9QBRu3aH2MskYM8ytgc NrKA+pr3iQMG8hSv4zfAM3I6o2H5ZNkAA514SFaHTge7+wnyHLjRVMyz/y9ehBzQ2aac Xj3x66r1ax+CQgJH78v88jlkwlr6iLDl+cVvz5V5Kg65jNFBHkdlbxiYeB8SBbIWQdDt N93OlH0HBY8+4ugZEwbz9wUTCe3eUQ8uFmEGMRm/7EFMTLDFbDFSOhj+xvP9BPV60nPb yjWg== 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=8K8ssU/jpdtnAmFP371PUWgFsPARCb5iHMCdWjac99g=; b=MG/Og4zLNmX9otuqVCS9sMohSgC/IEh3JNKsHcp6yVxkYoApxt3OJHR6ISRVECEO7K 0K+OrQmzc2qP5TCSPOl70gp1r5PUYRf6lwsevhi7/Tmz6kTxnAzVB9ae/MDZzw4w3ltJ NpaSWQKznkQBUjh2VHJwXEDM86GkS7sdvKn14F0uEnSlsljT7G62TcJ7QkLLPHVDyXUY TcC2d5f9VQEdkrj/zwf8kFtl2bdIMkHvgGuXg1wykG2fPcaB0cL4PVZX/yX/hfJF6hLE ISmgt9wtJCnB07FO5PwRwB+c4LKP59QbLU/Yytdqc3jVjtZoSef9gOk9uPE5CXy7wb4M SFhw== X-Gm-Message-State: ALQs6tAQYYR0ZSKLxpWMUQBK73PAopUVMVT9aRPTU5kjaMZZBbbflvme E7v7GztFmzHTlg2V9eoEl4QaKKwavyeqEXlO2lM= X-Received: by 10.80.134.50 with SMTP id o47mr22009043edo.243.1523650371202; Fri, 13 Apr 2018 13:12:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.139.137 with HTTP; Fri, 13 Apr 2018 13:12:50 -0700 (PDT) In-Reply-To: <20180406125825.GT4589@e105550-lin.cambridge.arm.com> 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> <20180405154630.GS4589@e105550-lin.cambridge.arm.com> <20180406125825.GT4589@e105550-lin.cambridge.arm.com> From: "Joel Fernandes (Google)" Date: Fri, 13 Apr 2018 13:12:50 -0700 Message-ID: Subject: Re: [PATCH] sched: support dynamiQ cluster To: Morten Rasmussen Cc: Vincent Guittot , Valentin Schneider , 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 Fri, Apr 6, 2018 at 5:58 AM, Morten Rasmussen wrote: > On Thu, Apr 05, 2018 at 06:22:48PM +0200, Vincent Guittot wrote: >> Hi Morten, >> >> On 5 April 2018 at 17:46, Morten Rasmussen wrote: >> > On Wed, Apr 04, 2018 at 03:43:17PM +0200, Vincent Guittot wrote: >> >> 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 >> > [Morten] >> >> >> >> 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 >> > >> > There is no way we can tell if a periodic or short-running tasks >> > requires the compute capacity of a big core or not based on utilization >> > alone. The utilization can only tell us if a task could potentially use >> > more compute capacity, i.e. the utilization approaches the compute >> > capacity of its current cpu. >> > >> > How we handle low utilization tasks comes down to how we define >> > "performance" and if we care about the cost of "performance" (e.g. >> > energy consumption). >> > >> > Placing a low utilization task on a little cpu should always be fine >> > from _throughput_ point of view. As long as the cpu has spare cycles it >> >> [Vincent] >> I disagree, throughput is not only a matter of spare cycle it's also a >> matter of how fast you compute the work like with IO activity as an >> example > > [Morten] > From a cpu centric point of view it is, but I agree that from a > application/user point of view completion time might impact throughput > too. For example of if your throughput depends on how fast you can > offload work to some peripheral device (GPU for example). > > However, as I said in the beginning we don't know what the task does. [Joel] Just wanted to say about Vincent point of IO loads throughput - remembering from when I was playing with the iowait boost stuff, that - say you have a little task that does some IO and blocks and does so periodically. In the scenario the task will run for little time and is a little task by way of looking at utilization. However, if we were to run it on the BIG CPUs, the overall throughput of the I/O activity would be higher. For this case, it seems its impossible to specify the "default" behavior correctly. Like, do we care about performance or energy more? This seems more like a policy-decision from userspace and not something the scheduler should necessarily have to decide. Like if I/O activity is background and not affecting the user experience. thanks, - Joel