Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp906559imm; Wed, 10 Oct 2018 06:15:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV63YkqU3oLlZiA3rtsi1KlsaYwGLzr2Wo6j3X/4Rg+1nWCGjXjwNOWJf5o2t5cDwbxquaZS5 X-Received: by 2002:a17:902:a9cc:: with SMTP id b12-v6mr32465593plr.198.1539177305087; Wed, 10 Oct 2018 06:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539177305; cv=none; d=google.com; s=arc-20160816; b=o9IWnIEsQx2i3k0Nww/dFI03QFTFOEBTMjSM0+RQ5ilEHbptYBMunza59vcS/TZAPf F5bJlYOKkcgBn+cZX8uH+GAJqHRtdvKe+Y7OnVsehUc5sKIJpbDMWzrPQwpYhi14t/fX vOgc04rG4uq83FxbUJ4HseXzrkc4C+kyv46OwK2VxCYlhlsfoBagSu+MiY5yNj5Ai5AI 3kMKKHADRjtc34Je0t59c9OBqZALTpo90pJiz12pjadpebCBrw6yY3XBm4AqhIFHP8ol 9F105qZYMXww5j/uTI5Dwm8ZaJcto1wssK803XHm0fnJYD63hF8rKJBvG6oOrDTAyBLO GpfQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=goG6rHNh3lqZ02ed0+4cIJ9377dB25xd+6dYr0fdBjA=; b=lVE7tH8zAx1YNii2UJLKpIGu33JzkANiuGKIvhZBNWGjzRzAGzg9s5GpL/4qDwDppE YoGsW+70eHCTPgrLPacUgP+oslE4qzm4Lac0hI/bDgr/mfsxRn1KUIOrB5bFSRcUBJ8I /SuGw98lFOir70oiQNz3RFB9+JAi8uREYd1D2zkYrTRL1L4vcpCqAAW/qPw1ie1MAQMB VNcFi+P0Nqqr4eVJ53tC77mzAmPH0T+npdpXDtoxNly4Rgq4QajqGKN6XTWxvSwhGN+z HAryrg0EQtpztamO/9URa5VPZY9W2io8zRHgDGZHk1l5o2L6fwz9rO7Ire5eUoaU6kMn fZ8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZHLONgxI; 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 a80-v6si26630388pfj.195.2018.10.10.06.14.20; Wed, 10 Oct 2018 06:15:05 -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=ZHLONgxI; 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 S1726960AbeJJUbL (ORCPT + 99 others); Wed, 10 Oct 2018 16:31:11 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:53597 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeJJUbL (ORCPT ); Wed, 10 Oct 2018 16:31:11 -0400 Received: by mail-it1-f193.google.com with SMTP id q70-v6so7886062itb.3 for ; Wed, 10 Oct 2018 06:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=goG6rHNh3lqZ02ed0+4cIJ9377dB25xd+6dYr0fdBjA=; b=ZHLONgxITl1yvMkCxDaxsrmAHbXD0LsWiTsCbqKea1tRqdDNW4ktRX2lmetoYzWrq5 Mv7PbQeRJA8+7RCNOIXNRToNlc2WQamg7vgJ5ze8qZPpkNsN835v4QLYwiysVftlybWf JcOJhYJ84PxGvap9C974BMV58bhAhCDtlxnAo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=goG6rHNh3lqZ02ed0+4cIJ9377dB25xd+6dYr0fdBjA=; b=XtH4LYy6knZjTBDGHDCJ5uST4v57soIkhjSa9k2oSOLwU4cOUdTS3O+muswVDcgJ6M cRZyXtSWg7hifN0ARJpop4cGAB83VFfgk/q+uQHOKzahnhZ1o22dOyDLwHprivkyi11q F3WwsNJ5xXRr6AGvh70cFxmrwCUOG9XA2W7nRhoFIylAbejqybtBCoDnma42+h6LNjuU I+2R75AYmLRqduSCvJlzbZTe6QW4cGwGWKjngqFDzarvdc4RbgC5lx9DTZs+CbcpoiDg Cl0X58XowBamP+Gi0b45fM3HrCETcpt3V7Kkci1UIGPDbaGXNC1maEEHUwbNDmnGpdTd okDg== X-Gm-Message-State: ABuFfogs7kj48JDDPzKZ7E05lrosF2y7KGs0Us43P3g837p5SrRMf/aL v+dNb2p+rvDecdxpKi2aRsQoYLjOxf1Yu3S2xTdiEA== X-Received: by 2002:a24:670a:: with SMTP id u10-v6mr688682itc.114.1539176943770; Wed, 10 Oct 2018 06:09:03 -0700 (PDT) MIME-Version: 1.0 References: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> <20181010061751.GA37224@gmail.com> <20181010082933.4ful4dzk7rkijcwu@queper01-lin> <20181010095459.orw2gse75klpwosx@queper01-lin> <20181010103623.ttjexasymdpi66lu@queper01-lin> <20181010122348.GL9130@localhost.localdomain> <20181010125033.GP9130@localhost.localdomain> In-Reply-To: <20181010125033.GP9130@localhost.localdomain> From: Vincent Guittot Date: Wed, 10 Oct 2018 15:08:52 +0200 Message-ID: Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Juri Lelli Cc: Quentin Perret , 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 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 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