Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1171260imm; Wed, 10 Oct 2018 10:09:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Ys3FYXUAImf/7eq4cLGk83OZnChXz9Hl6GyuWYA7Krug3FnDlUqqXRwySNo25A7gwXlT1 X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr35417052pfd.185.1539191357936; Wed, 10 Oct 2018 10:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539191357; cv=none; d=google.com; s=arc-20160816; b=YrR1hsYkgNLDg6ZAwERQ6QyPnfXaW4FWYEZmYj5vmIo1EBDlzLa8/VJ1eqD6mnyu3Z fa+6AhU1jUjqzxwWRmjsP64yr55j2SSzjEU7b5fFPEB4OM6wKXqZok9FvWi5rKRAXUfJ zUIg9unvHsf+7o/diq28HPlvMjxs7lKnuA94gUZSLCb9xd2WCGI1wUvBkMfgsLGSpT46 mEkRbIxjqop13Dp3RHRgWTrFL6GfzBR40RIYNlU/DZbfzeO+HQ6rggod8Y2BPKG9kYGv SBAYqG92JXgKMGdFvixoxdwQic7UOsynKh1ouuOVvNSyot8WWvR2hgLxrqGlL8taN+QI xiHw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=hL0JQCLgTLaHezBUyjZGPAyqliC9AhU+kpQMvux7zSo=; b=Z2qOhQaXCtk/NOm+xj/g6GvNqwFT98Fmpqy/6hGVHBVYrQT/hPg3t2JJqdnhXGXCcS t0IlJ9T5pe35YFKMcK/ibbdP5U75kepPDNSsmIrdPQPNKbGDLyxYHrzqMhDXgcVtWmzE MCQ99CjusowKQf+6WsGV+OuC8u9lVZ7/25hRXXLVGjIesSQ5xKOk0fNCiEUkTEIeVgu4 vl+YOy3hQyMU9l7ZRZT5dq/ZDQxCenZEjf/iU2Bb+rkrVJxNSXFEeBpboDxtmek+4blr vooFJ63aDscLuU+V8aOhOGSO85hZZy8js6NnuHedkOUegQ8ad6FDt11Q4G6D3MZXFSkb AhnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DHk/fng5"; 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 b24-v6si24695967pgm.145.2018.10.10.10.09.02; Wed, 10 Oct 2018 10:09:17 -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="DHk/fng5"; 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 S1726942AbeJKAb3 (ORCPT + 99 others); Wed, 10 Oct 2018 20:31:29 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45459 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbeJKAb3 (ORCPT ); Wed, 10 Oct 2018 20:31:29 -0400 Received: by mail-qt1-f193.google.com with SMTP id e10-v6so6492496qtq.12 for ; Wed, 10 Oct 2018 10:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=hL0JQCLgTLaHezBUyjZGPAyqliC9AhU+kpQMvux7zSo=; b=DHk/fng5T5KJt+PHrXKDYdFdArLJTa/u77xIZ6X16vW+IhiS9b9gX8z8n8d0I/k03A cU2D14V98rLfokaWQYos6fAXoOIg3KC3Q9qNugHdAPm/nlxV316jq9zc5a3BZWjj5jU+ 4X1NzjpJZdL+LbiukGM3V2fBRk9XqUb6yMIeY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=hL0JQCLgTLaHezBUyjZGPAyqliC9AhU+kpQMvux7zSo=; b=FVyv57+CBejgqvjv0j2hTGyeL9GeZKhLVroAdgB0Z5TDxvgdNPb/qjb4Ld4YlHAY6n DXtSSpsBanV/CBb0MdpUkbQDN/8M15bM3+6Q4jVNEOc5SJ6gWB+cFmPHWs+Rc60cc+G7 CdkpqlDiNUiKFS1U0E3DUxfHcoT+rYTEuyIfKDZNleLpEgdL+PLaCaP9QJ4Y5JidLHc3 bpVPtoG+ImtWaQSmQithZS4Oybo/QxH7zyWRqbLOe2N6l2FeKBbZFNGwgYkU9XI7nCYO ZZsSF0FG7RBsmMJjH/SunxuNQtIkKHRnrW+a+x/Hb7A6NMR6DPQbOt18Am/zHbJjaGka dbrw== X-Gm-Message-State: ABuFfogORMOKdAE/0V27NLvKNeCLDixoVG/0n7+C9Yzu9Lbg5LgfPMIh jGyUW7d41/dBAQvCJ39Fq4n/ug== X-Received: by 2002:aed:2ba7:: with SMTP id e36-v6mr29005223qtd.154.1539191305072; Wed, 10 Oct 2018 10:08:25 -0700 (PDT) Received: from [192.168.1.169] (pool-71-255-245-97.washdc.fios.verizon.net. [71.255.245.97]) by smtp.gmail.com with ESMTPSA id b10-v6sm13838211qkj.25.2018.10.10.10.08.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 10:08:23 -0700 (PDT) Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Juri Lelli , Vincent Guittot References: <20181010082933.4ful4dzk7rkijcwu@queper01-lin> <20181010095459.orw2gse75klpwosx@queper01-lin> <20181010103623.ttjexasymdpi66lu@queper01-lin> <20181010122348.GL9130@localhost.localdomain> <20181010125033.GP9130@localhost.localdomain> <20181010133443.GR9130@localhost.localdomain> Cc: Quentin Perret , Ingo Molnar , 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 From: Thara Gopinath Message-ID: <5BBE3206.2010407@linaro.org> Date: Wed, 10 Oct 2018 13:08:22 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20181010133443.GR9130@localhost.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/2018 09:34 AM, Juri Lelli wrote: > On 10/10/18 15:08, Vincent Guittot wrote: >> On Wed, 10 Oct 2018 at 14:50, 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 the utilization will not be invariant anymore across the system > > Mmm, I guess I might be wrong, but I was thinking we should be able to > deal with this similarly to what we do with cpus with different max > capacities. So, another factor? Because then, how do we handle other > ways in which max freq can be restricted (e.g. from userspace as Javi > was also mentioning)? IMHO, user-space restrictions should be handled separately. It should probably reflect as an update of capacity_orig and rebuilding of scheduler structures as such a restriction is meant to stay for a long duration. Regards Thara > -- Regards Thara