Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp905524imm; Wed, 10 Oct 2018 06:14:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62TbuIU6FysxnRYmW04XwcQQi3rTZBTG2jXPyBaH+5NPdyPfef4W9OS3DMkZVJQr2hshgtg X-Received: by 2002:a62:42d4:: with SMTP id h81-v6mr35661669pfd.0.1539177253711; Wed, 10 Oct 2018 06:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539177253; cv=none; d=google.com; s=arc-20160816; b=ErcE95oG5zFRWnkbhITqvrNjERxfB/MD+hwAsb4y5E7Khz3kDSAZU01kc8eawE2nyL IyBSu4vCKLM7ve2CQ3MldBPkTrssGE8pdz4znKN9uESZke/tLGN+qog61G2ot+A7Mve0 +0/xlWUYjWFOKxFr2L3nScf9OyzogsjzyDLQIELlnCB1E7FsD9q9ZjpU4HlBM2G7JRUw FmQl+1FNihxJv9/PV/lrnZqARVjU8edAYIzI2DdKFBK9XlPYf4Ez71YBMTgskV3I0FIx Dlh8XN6S4/oybg2zYyM+hp9rhMXpgp31T4VNTrKl+gi2AhSqlNfRdx5Thd/cRi3dia5A 9Ydg== 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; bh=SyAw5XbT5bKXSDsQ7JOJiG+JR4jDmHxx9xCYmu6Y46o=; b=pdY0WMiG918YYO0dLu7LMFt9OHk6ppKoM3W1AwMt4SD9yNGnwXu09qpTArXqIj00h/ 1rKEIs7V8YvtvpQ2+Z8yOm8q1s8Inhz4f7szkjpRZCEADYSBIe4gYCWxghxdGPAeJfLl BZRaFSly4cFykb+jtNm4FPD6lttnaJUzrPBqDILnNfkoY5DSlu6eQSMZRqmWKCdo5A6d 4rded8GzE5P+WYbQBeRD3OyJD6rv/FseKA0vVyt08uoJeqZg5hwSIBZ5DiyuMR60f/r1 DAu7fuW/GcDWCXsulmvp5efbjdszkHciw4RlOVqF4lVkd618te/+D175oIVN6iLlFudP Qkvw== 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 a3-v6si23607277pgb.457.2018.10.10.06.13.58; Wed, 10 Oct 2018 06:14:13 -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 S1727160AbeJJUdj (ORCPT + 99 others); Wed, 10 Oct 2018 16:33:39 -0400 Received: from foss.arm.com ([217.140.101.70]:52232 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeJJUdi (ORCPT ); Wed, 10 Oct 2018 16:33:38 -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 1920AED1; Wed, 10 Oct 2018 06:11:31 -0700 (PDT) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4B0693F5D3; Wed, 10 Oct 2018 06:11:28 -0700 (PDT) Date: Wed, 10 Oct 2018 14:11:26 +0100 From: Quentin Perret To: Juri Lelli Cc: Vincent Guittot , Ingo Molnar , Thara Gopinath , linux-kernel , Ingo Molnar , Peter Zijlstra , Zhang Rui , "gregkh@linuxfoundation.org" , "Rafael J. Wysocki" , Amit Kachhap , viresh kumar , Javi Merino , Eduardo Valentin , Daniel Lezcano , "open list:THERMAL" , Ionela Voinescu Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure Message-ID: <20181010131124.isexblzzvkcp26q4@queper01-lin> References: <20181010061751.GA37224@gmail.com> <20181010082933.4ful4dzk7rkijcwu@queper01-lin> <20181010095459.orw2gse75klpwosx@queper01-lin> <20181010103623.ttjexasymdpi66lu@queper01-lin> <20181010122348.GL9130@localhost.localdomain> <20181010125033.GP9130@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181010125033.GP9130@localhost.localdomain> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 10 Oct 2018 at 14:50:33 (+0200), Juri Lelli wrote: > On 10/10/18 14:34, Vincent Guittot wrote: > > Hi Juri, > > > > On Wed, 10 Oct 2018 at 14:23, Juri Lelli wrote: > > > > > > On 10/10/18 14:04, Vincent Guittot wrote: > > > > > > [...] > > > > > > > The problem was the same with RT, the cfs utilization was lower than > > > > reality because RT steals soem cycle to CFS > > > > So schedutil was selecting a lower frequency when cfs was running > > > > whereas the CPU was fully used. > > > > The same can happen with thermal: > > > > cap the max freq because of thermal > > > > the utilization with decrease. > > > > remove the cap > > > > the utilization is still low and you will select a low OPP because you > > > > don't take into account cycle stolen by thermal like with RT > > > > > > What if we scale frequency component considering the capped temporary > > > max? > > > > Do you mean using a kind of scale_thermal_capacity in accumulate_sum > > when computing utilization ? > > Yeah, something like that I guess. So that we account for temporary > "fake" 1024.. But wouldn't that break frequency invariance ? A task would look bigger on a capped CPU than a non-capped one no ?