Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4081520ybi; Mon, 3 Jun 2019 05:30:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqygyG4iCrwIdDmbgtA0q1uTNMpDX6VzNiv6QKhIWy35g8RieG3XU2+cSj42+dmWHqbltcms X-Received: by 2002:aa7:824b:: with SMTP id e11mr28872999pfn.33.1559565004586; Mon, 03 Jun 2019 05:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559565004; cv=none; d=google.com; s=arc-20160816; b=gc+ZShegQk2P9VHwqFHiFAPxUs8s3SR1t6535LR/Fo4OJeGlxLBCdNKCV0VEroQgt9 Ypxmi7RwMY5zgrYIgW5fpnBSWe5LeqRXTUmYe1DpemKSSFsjfI4wbwE3GyQusG+USJEF LInigdzNUwzMOrGvcfpyzP5zLO6ud1zI3VjZ2CHw7QynG2b1d/7Uwe8mXEroENVrOTmj 5jcv5rTAJCK1mUT9OhnqJIOrulKBQGFMxppWpJdAz9kYLkeu8462GiYr9sWXsvXhONPZ 0+RNusLMekloiKJEoftNODMcOKoMcMebHNYdW2snUApZ5Ws2YbvNdAFyntboNXXVgNE7 QpmA== 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=T2MBFQHDmX9KmyvHr6AYLWU/nb3DTOaHoDht84tw8Tg=; b=Hcm0/JaRkpIMfGVc5IkKVJ8u7sVPwRynp0q00Zr+oJ1IssEUyI7VquO5KULgfYbrHb ljhkeFGfQxXsa5kUpBMy1F35s6QvJeYCfEG0QRvWkxR1i06ucMqSujsNlMTbU7B+NrmY HzGXqxgPk5kmqZRtEsof4ZeXklJmKvOD+DCm/j6rHI6ICu/ua4pcWwWQQjzAsWHFJMbz /2E5WpnIHZ8xiwxuIOrnPaTp2PDj7bItHdNIjM40INGzK719EDkHZ0SVHX0WDbN4CnkT c9tnp14YBNkA6z+MTxHs9wASp60Bd482BfbxE7zaThfeAwPoZnOdYdH65IsgpTNjlCtT YSHw== 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 y15si18979800pfe.133.2019.06.03.05.29.48; Mon, 03 Jun 2019 05:30:04 -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 S1726792AbfFCMYd (ORCPT + 99 others); Mon, 3 Jun 2019 08:24:33 -0400 Received: from foss.arm.com ([217.140.101.70]:50090 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfFCMYd (ORCPT ); Mon, 3 Jun 2019 08:24:33 -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 A38D115A2; Mon, 3 Jun 2019 05:24:32 -0700 (PDT) Received: from darkstar (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 67E793F5AF; Mon, 3 Jun 2019 05:24:28 -0700 (PDT) Date: Mon, 3 Jun 2019 13:24:22 +0100 From: Patrick Bellasi To: Tejun Heo , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@vger.kernel.org, Ingo Molnar , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v9 12/16] sched/core: uclamp: Extend CPU's cgroup controller Message-ID: <20190603122422.GA19426@darkstar> References: <20190515094459.10317-1-patrick.bellasi@arm.com> <20190515094459.10317-13-patrick.bellasi@arm.com> <20190531153545.GE374014@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190531153545.GE374014@devbig004.ftw2.facebook.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31-May 08:35, Tejun Heo wrote: > Hello, Patrick. Hi Tejun! > On Wed, May 15, 2019 at 10:44:55AM +0100, Patrick Bellasi wrote: > > Extend the CPU controller with a couple of new attributes util.{min,max} > > which allows to enforce utilization boosting and capping for all the > > tasks in a group. Specifically: > > > > - util.min: defines the minimum utilization which should be considered > > i.e. the RUNNABLE tasks of this group will run at least at a > > minimum frequency which corresponds to the util.min > > utilization > > > > - util.max: defines the maximum utilization which should be considered > > i.e. the RUNNABLE tasks of this group will run up to a > > maximum frequency which corresponds to the util.max > > utilization > > Let's please use a prefix which is more specific. It's clamping the > utilization estimates of the member tasks which in turn affect > scheduling / frequency decisions but cpu.util.max reads like it's > gonna limit the cpu utilization directly. Maybe just use uclamp? Being too specific does not risk to expose implementation details? If that's not a problem and Peter likes: cpu.uclamp.{min,max} that's ok with me. -- #include Patrick Bellasi