Received: by 10.213.65.68 with SMTP id h4csp576511imn; Wed, 4 Apr 2018 03:45:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Mb+vX+56YHoqB6FJR6IXRoVUC5SXsaCfN8vQVVk9lc9SUvnKXjB2k62aCjBzk35vT7fQA X-Received: by 10.167.128.81 with SMTP id y17mr6657711pfm.194.1522838735820; Wed, 04 Apr 2018 03:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522838735; cv=none; d=google.com; s=arc-20160816; b=qszVFFqG/YaDUH/e0lDc7Tyq2reGCUOiVutDRgNJZ1VCczjXBc4dFXzPm6l0oy7VzQ aa01JPNJxV4NjEw9LyKwzIMPN538UwJVnHrjCzw0fYBSp4UOxQEqOrmqB/AMzOmnfLL0 eX9eM1XMrzI5fqar/N2qa0UZdKlMmfu+etUJVldkHbxaAAKkLq7IWcsAZVkoYBnia3P2 I3QBgz3FhrMdZPpHsKKije8u6u/Ix9N6A9Ir96dCM32hqqtMIxvNquqgUwX3FT43IDHR bF4xYoIsoHJlYe+o092oTU/RaaywH9yYH/ToFTEOP+WA/uzs5ZzlV/fFvZ4n4/B4bbxy CXVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Cbuu94lEY5cvHNsk7pjagEJwT62+fDutB5HstP99ylo=; b=O5OPeexCP8rbGujCT+7d2Mz1+Q44ghcbRSQe9e46zwVKxGttRHBz2DezuYTAxDzb9V 0BANn1UX61ovqfgyRa16vXZ0SDdjSELGBYNGsprikf47zdtSOPSLfmSNw2gjC2skbJ5U NOpnxwrUrmRVXE66rWFYXQwk7eoOb1jxldsKAQwhVdEHKjc2AjMx9c5KyGvnoEqHlP35 EhAfswoEGRZrA4F4ECLet6KCTeZ4cpLtFgmpCTdkl7EvDEAJPCTuygBO0XR4996F4BZK ioeSU4jczjC6gtETW+p/6iViE2sQkrbSMVq/rU8hfxwBy3AVi7zTBFncnenBlO1hj8hh bHgA== 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 v21si1924359pgc.569.2018.04.04.03.45.21; Wed, 04 Apr 2018 03:45:35 -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 S1751356AbeDDKoI (ORCPT + 99 others); Wed, 4 Apr 2018 06:44:08 -0400 Received: from foss.arm.com ([217.140.101.70]:43044 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbeDDKoH (ORCPT ); Wed, 4 Apr 2018 06:44:07 -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 4A68B80D; Wed, 4 Apr 2018 03:44:07 -0700 (PDT) Received: from [10.1.206.36] (e113632-lin.cambridge.arm.com [10.1.206.36]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BCC6A3F24A; Wed, 4 Apr 2018 03:44:05 -0700 (PDT) Subject: Re: [PATCH] sched: support dynamiQ cluster To: Vincent Guittot Cc: Morten Rasmussen , Catalin Marinas , Will Deacon , LAK , linux-kernel , Peter Zijlstra , Dietmar Eggemann , Chris Redpath 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: Valentin Schneider Message-ID: Date: Wed, 4 Apr 2018 11:44:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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. 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