Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp378320ybc; Tue, 19 Nov 2019 02:56:03 -0800 (PST) X-Google-Smtp-Source: APXvYqz5cvHE2XpRV9r/ds+BPbu7MMysXYerox4aDYeqb6sF182cDZKUEauHe9E2fueI1Tp5zJdm X-Received: by 2002:a17:906:3495:: with SMTP id g21mr34566810ejb.190.1574160963087; Tue, 19 Nov 2019 02:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574160963; cv=none; d=google.com; s=arc-20160816; b=S4cwwjuAIU+VzDxHTNrzcJDCgNZ6XjDOIrI0PmmiA69Gs819ozO+tFpms2duATmmDB CGu5I66O1oKDkoWlC7gje5n9OOyZpJQVyA8d2LY0WQ69za9Cy+NVqY1qWywzk/wWJkwm 4dxI3gRoZY6LA6sHzEwNskB+XRQV+wvCx7Jx6R/iBXazH6W2nJs9of6sMYtD5Mf4yvSP CSjbdnC44r4HNdsvAP5Z0ktz6s4kKOlmPXWxFx3XroVx1lflfFTP2r7sU67XVzPLy/3k lnkUwjwAyM1UKgX/aLpiHdqPKNF4EGx9iG39d0BDnBig4O1We1S2PojDktwO8hY0Imcb SJKA== 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=jLtkUESkDarsYpGMcY5/LJpQLbfAZdXaCoyZyWBflKA=; b=JyfO/G4FXAi/9d3sJB6cWpbB4vqFejwd68BACuU76FhoSOHUMhSxYSuCtTKC/zww0g wCcXFIHURT8sYRhBKFN81hzGFOzhM9ngqS07W0rFaCpyMLB/7O4R4mDFhim0EdGoNSLN YQ2RFGC9yoszjDOM2KEGFtdj3BjCT+iq/5gstOSw3cbhtGoV9kfB2PORnP0DeeqygSOP JZ7A/AgLQiNDt9D97cO4puBseJsJA2mi+1Al9stj3xiOqPFaUteIGmwMz8xBVs342OkJ ZQkecFs9ku7+tVT5SIjHhykiikV4aKxvJ4BzOxxm8JWTe5+CPoP9J04SAJ5pwMtjYgl0 UB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=L1aemyzM; 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 y9si13683855ejp.175.2019.11.19.02.55.38; Tue, 19 Nov 2019 02:56:03 -0800 (PST) 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=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=L1aemyzM; 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 S1726980AbfKSKya (ORCPT + 99 others); Tue, 19 Nov 2019 05:54:30 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:37268 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbfKSKy3 (ORCPT ); Tue, 19 Nov 2019 05:54:29 -0500 Received: by mail-vs1-f67.google.com with SMTP id u6so13890828vsp.4 for ; Tue, 19 Nov 2019 02:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jLtkUESkDarsYpGMcY5/LJpQLbfAZdXaCoyZyWBflKA=; b=L1aemyzM1aduLNZwAbSrTDiqpcLqDVmLQ7XFSgddc8EA+l5K2jXQ6ORT6r7115VWVX HiPcECQnLNwTf8AgAVbGAc/i6t1DRLeCHqDF8aUnnwq5YXgQSqijLylFm5O6Viqw7sGA umY24/2n7asnmh0cQllGJf4akM8O6Cm8mCQCgJtPO3zqYfyVx3zTpgeXD6ZmsprgQetG j0S0AU/puPjqxtBYPd7hjJBHzISRmVPBjfO9focyR4OZuN2flk4K+2oD/70HNi0NC/Jz ku7V+SEgTxHDPkTow8ajnSe1pler3XauB+52VpNsCMfF7m6q95iYXMvHvA7Bxzoh/fHW xdXQ== 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=jLtkUESkDarsYpGMcY5/LJpQLbfAZdXaCoyZyWBflKA=; b=kcR8kNC1tZZrHC8soRNDeJhJF+wizq3SeCIgiIITcbeDReYGMfC1PU1zMBoamhrFU+ GP5szBtSThiCNemUZDMQEs37p9bJko0jXvatg66y8vmIprm3gVO7FlXG5yn/+pWCaxrl KkYCbxHmpfBwQB+ez7hTd7v6PRnynRyYAxvQHAhkTUzQcnyUeAAW2WJ5dRtxybpruKff 4d1W6qBGlFli85pvqUwfY07HoDNBrvBdBchKitKC94UmMPxyJf8G9ReMjyOBuzL8LCu9 /n/YcIbAMKbvpNvEbj3iM15P/3yRT8+c0hNI9PRfhLSmyXIR3e7OsaqoUAoypWgRGtUH 4V7g== X-Gm-Message-State: APjAAAUmxrjc4E+QMB4DwVWYs1tMdiIuwsDhVRKMNaoWLiMpLYkjTFOT QHZESTrAfag5uL/SbsHuDvZsXjGqQ8HBhQ3jEmNidg== X-Received: by 2002:a67:3217:: with SMTP id y23mr22858901vsy.182.1574160868651; Tue, 19 Nov 2019 02:54:28 -0800 (PST) MIME-Version: 1.0 References: <1572979786-20361-1-git-send-email-thara.gopinath@linaro.org> In-Reply-To: <1572979786-20361-1-git-send-email-thara.gopinath@linaro.org> From: Amit Kucheria Date: Tue, 19 Nov 2019 16:24:17 +0530 Message-ID: Subject: Re: [Patch v5 0/6] Introduce Thermal Pressure To: Thara Gopinath Cc: Ingo Molnar , Peter Zijlstra , ionela.voinescu@arm.com, Vincent Guittot , Zhang Rui , Eduardo Valentin , qperret@google.com, LKML , Amit Daniel Kachhap , Javi Merino , Daniel Lezcano 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, Nov 6, 2019 at 12:20 AM Thara Gopinath wrote: > > Thermal governors can respond to an overheat event of a cpu by > capping the cpu's maximum possible frequency. This in turn > means that the maximum available compute capacity of the > cpu is restricted. But today in the kernel, task scheduler is > not notified of capping of maximum frequency of a cpu. > In other words, scheduler is unaware of maximum capacity > restrictions placed on a cpu due to thermal activity. > This patch series attempts to address this issue. > The benefits identified are better task placement among available > cpus in event of overheating which in turn leads to better > performance numbers. > > The reduction in the maximum possible capacity of a cpu due to a > thermal event can be considered as thermal pressure. Instantaneous > thermal pressure is hard to record and can sometime be erroneous > as there can be mismatch between the actual capping of capacity > and scheduler recording it. Thus solution is to have a weighted > average per cpu value for thermal pressure over time. > The weight reflects the amount of time the cpu has spent at a > capped maximum frequency. Since thermal pressure is recorded as > an average, it must be decayed periodically. Exisiting algorithm > in the kernel scheduler pelt framework is re-used to calculate > the weighted average. This patch series also defines a sysctl > inerface to allow for a configurable decay period. > > Regarding testing, basic build, boot and sanity testing have been > performed on db845c platform with debian file system. > Further, dhrystone and hackbench tests have been > run with the thermal pressure algorithm. During testing, due to > constraints of step wise governor in dealing with big little systems, What contraints? > trip point 0 temperature was made assymetric between cpus in little > cluster and big cluster; the idea being that > big core will heat up and cpu cooling device will throttle the > frequency of the big cores faster, there by limiting the maximum available > capacity and the scheduler will spread out tasks to little cores as well. Can you share the hack to get this behaviour as well so I can try to reproduce on 845c? > Test Results > > Hackbench: 1 group , 30000 loops, 10 runs > Result SD > (Secs) (% of mean) > No Thermal Pressure 14.03 2.69% > Thermal Pressure PELT Algo. Decay : 32 ms 13.29 0.56% > Thermal Pressure PELT Algo. Decay : 64 ms 12.57 1.56% > Thermal Pressure PELT Algo. Decay : 128 ms 12.71 1.04% > Thermal Pressure PELT Algo. Decay : 256 ms 12.29 1.42% > Thermal Pressure PELT Algo. Decay : 512 ms 12.42 1.15% >