Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp122477imm; Thu, 26 Jul 2018 15:13:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfgVT3rY6QeSSsTf1T2ML61wiza/FUCYLyBhB5o2knTFB9Rh8KLdFEIU02la15kGinmdi/K X-Received: by 2002:a63:686:: with SMTP id 128-v6mr3519565pgg.338.1532643198330; Thu, 26 Jul 2018 15:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532643198; cv=none; d=google.com; s=arc-20160816; b=qL9DZQfm4HSerbVC09l9Z493Jjx78TKDqLLjt44SpygbVQSdvcr4Mol0WA/ORUTEZx /SW8r95zCe2EW/VxHOFsT0IAIdaA2Q8+vF7RTyN+pofQG8RcxEC66cYf8jbxbzzmLXAP yf8Pn+AlwE6UxM/4PQYDcEL6lmRG62P6qbTe11c7JasXtmPqQW7ypeIPoMc80qlOL/97 XA0cpDT0U3asHx7F6MMbzIyfbEh+phPvfFiS7B3xuKllNGPijvUQ7M6pwb4WSuEogZWa wxNKtmzrqaYZ/X98KrS12ZeBUnvsR6cPrY/9pUzbpj6QXqFDk7tM9SeZ39P4mV8bRvN5 PD6w== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Zea2fTwaVa4mBJx9nrWARvvbQ6bvX40f3dfyMz6Wyw4=; b=RGUpstbz8UevB98Tpw1//j0huVsXtbvKQTC09osAXa1cwZ7q2GbFXob8RsWThmNnkD XG6OLjxpfrKPOp2/sBAVTGqpywsXnyMq9fd/rD9n0mk8yLYC4wmn2Nu07A7TlX3yqEPk YZ/Hmf3cZpwBxFDDh0R+6StJjFI6iEmdUBzi9+8meungP1kjN7OoYrXUAz6UBj8mMvrl ckzZZGlmC5nzpEP5QHseimZfC+MsdbU3nLbURXXTHr5OWv9PFBxtprcad/J1Hp41oLLF ywt6R55Qp9RvXWTJIAczcxfDLOvR4RWmwBLqs0wzfmrqqxFtyxElWPZzCvNwhHuwvouH Nr8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XzMMu3j8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23-v6si2396241pfk.25.2018.07.26.15.13.03; Thu, 26 Jul 2018 15:13:18 -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=@google.com header.s=20161025 header.b=XzMMu3j8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731809AbeGZXa3 (ORCPT + 99 others); Thu, 26 Jul 2018 19:30:29 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:44016 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731370AbeGZXa2 (ORCPT ); Thu, 26 Jul 2018 19:30:28 -0400 Received: by mail-io0-f182.google.com with SMTP id y10-v6so2631350ioa.10 for ; Thu, 26 Jul 2018 15:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Zea2fTwaVa4mBJx9nrWARvvbQ6bvX40f3dfyMz6Wyw4=; b=XzMMu3j8F34NaoImPC/DPOUPHNDPWZYxkKLHb6dx0AEFcZSiU6vfwn2XrtVKyTZPKe o/aXxqiVHHfTXvyh31bz4gYrDoGDZ8fiZq4I25UFOj8sXBjO7EMEaAOSFSIEoFW6DnLu aQjTZ3q+RtiNpIGQRb7to2EeDqS3lr6b7Lz5rCysM542jpXfOr7ZA9aprwuAl64zN4vV D3zgDM6nHc2fEuGEZc9YvyCIYALe4VFGmbV8GlOcWcP9/pDo4OkInvLA9j+Gn30XFLpk 85V/FOTUnZtjBtVgrnIANrTJA+i+HZdSZoHBte6A6VuMJrPJ8NbJfLfvnS21T92WxaNb 2/fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Zea2fTwaVa4mBJx9nrWARvvbQ6bvX40f3dfyMz6Wyw4=; b=Dlfpdrs9yhsAY6/qX3ddc8zvJzzKhktjracntqudTIvMwWcQqyXjbUTS4F3Vcjmeiz 6ATI+SjDI7noUW0dGPCfPp1eJ6Fdjg9s54i8i34nH9Yv2JHYq2kX7QGuuCVVI3lwLz4Y g0Vbc08Gc16lFeH90ZP6zhLw+Nz122EhP4r81ZwmawLS0EmB5h6p79CabQg7dIp90+vv 83hDxfJAQqVoXzU/nrze2vU8AZesTc3yYFdHODo/BHRNZ+HibQysVr/7g/mgXatc6mVG aWzeembNP66QWDwbZ2bt2pPNO6smxpWbdCBA0EbgAtE2utfzKkUWaUNehieGAF/t23Tx gn5g== X-Gm-Message-State: AOUpUlGHQEWKY+pIOM7QUmp64hQARs5CL3D9xQvhxxHS2goA+HysMDnL /MOp4eLWrl78xu+M7km1QEtM32W2BSTGvqpowVOuvyr45jk= X-Received: by 2002:a6b:87db:: with SMTP id r88-v6mr3312561ioi.243.1532643099811; Thu, 26 Jul 2018 15:11:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:e445:0:0:0:0:0 with HTTP; Thu, 26 Jul 2018 15:11:39 -0700 (PDT) In-Reply-To: <20180724154935.GB3275@e110439-lin> References: <20180716082906.6061-1-patrick.bellasi@arm.com> <20180716082906.6061-11-patrick.bellasi@arm.com> <20180723154025.GF2683@e110439-lin> <20180724095550.GA3162@e110439-lin> <20180724154935.GB3275@e110439-lin> From: Suren Baghdasaryan Date: Thu, 26 Jul 2018 15:11:39 -0700 Message-ID: Subject: Re: [PATCH v2 10/12] sched/core: uclamp: use TG's clamps to restrict Task's clamps To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle Content-Type: multipart/alternative; boundary="00000000000088a3b70571ee47ef" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000088a3b70571ee47ef Content-Type: text/plain; charset="UTF-8" Sorry for the delay. Overlooked this comment... On Tue, Jul 24, 2018 at 8:49 AM, Patrick Bellasi wrote: > On 24-Jul 08:28, Suren Baghdasaryan wrote: > > Hi Patrick. Thanks for the explanation and links. No more questions > > from me on this one :) > > No problems at all! > > The important question is instead: does it makes sense for you too? > Well, it still feels unnatural to me due to the definition of the boost (at least this much CPU bandwidth but higher should be fine). Say I have a task which normally has specific boost and clamp requirements (say TG.UCLAMP_MIN=20, TG.UCLAMP_MAX=80) which I want to temporarily boost using a syscall to UCLAMP_MIN=60 (let's say a process should handle some request and temporarily needs more CPU bandwidth). With this interface we can clamp more than TG.UCLAMP_MAX value but we can't boost more than TG.UCLAMP_MIN. For this usecase I would have to set TG.UCLAMP_MIN=80, then use syscall to set SYSCALL.UCLAMP_MIN=20 to get effective UCLAMP_MIN=20 and then set SYSCALL.UCLAMP_MIN=60 when I need that temporary boost. To summarize, while this API does not stop me from achieving the desired result it requires some hoop-jumping :) > > I think the important bits are that we are all on the same page about > the end goals and features we like to have as well as the interface we use. > This last has to fits best our goals and features while still being > perfectly aligned with the frameworks we are integrating into... and > that's still under discussion with Tejun on PATCH 08/12. > > Thanks again for your review! > > Cheers Patrick > > -- > #include > > Patrick Bellasi > --00000000000088a3b70571ee47ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry for the delay. Overlooked this comment...

On Tue, Jul 24, 2018 at = 8:49 AM, Patrick Bellasi <patrick.bellasi@arm.com> wro= te:
On 24-Jul 08:28, Suren Baghdasaryan wrote:
> Hi Patrick. Thanks for the explanation and links. No more questions > from me on this one :)

No problems at all!

The important question is instead: does it makes sense for you too?

Well, it still feels unnatural to me due to th= e definition of the boost (at least this much CPU bandwidth=C2=A0b= ut higher should be fine).
Say I have a task which normally has s= pecific boost and clamp requirements (say TG.UCLAMP_MIN=3D20,=C2=A0TG.UCLAMP_MAX=3D80)=C2=A0which I want to temporarily boost using= a syscall to UCLAMP_MIN=3D60 (let's say=C2=A0a proce= ss should handle some request and temporarily needs more CPU bandwidth). Wi= th this interface we can clamp more than TG.UCLAMP_MAX= =C2=A0value but we can't boost more than TG.UCLAMP_MIN. For th= is usecase I would have to set TG.UCLAMP_MIN=3D80, then use sysc= all to set SYSCALL.UCLAMP_MIN=3D20 to get effective=C2= =A0UCLAMP_MIN=3D20 and then set=C2=A0SYSCALL.UCLAMP_MIN=3D60=C2=A0when I need that temporary boost.<= /div>
To summarize, while this API does not stop me from achieving th= e desired result it requires some hoop-jumping :)
=C2=A0

I think the important bits are that we are all on the same page about
the end goals and features we like to have as well as the interface we use.=
This last has to fits best our goals and features while still being
perfectly aligned with the frameworks we are integrating into... and
that's still under discussion with Tejun on PATCH 08/12.

Thanks again for your review!

Cheers Patrick

--
#include <best/regards.h>

Patrick Bellasi

--00000000000088a3b70571ee47ef--