Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5643124imm; Wed, 12 Sep 2018 08:58:35 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdacfqnj0+q+c1ND+4ZPWhbyb+fq/ADEUMSn3J1GoMn+1gI8mKu7U5E/ADVAjntlDlhCNAuV X-Received: by 2002:a63:ed4f:: with SMTP id m15-v6mr444592pgk.147.1536767914988; Wed, 12 Sep 2018 08:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536767914; cv=none; d=google.com; s=arc-20160816; b=DQJox88ZI/MTp0e2ligLoolLSbq+GnNfEZIhxmBIagMNea/fS9uvKfKFnkHTFhumHU Y66s5Xhf69fdTD0112ngy/se0MYHxR0BCDzw6KW1oH0MONr2Ze9iQ3xXcmUkU7Rv8a7l Rtqyfr8AGQ0/E3gKsGbnDo3hjL941S7A/sciftHdQFKSWpz+IDln9TRcycUC3I2mPCrI B4FeaXlxLWyUUB/ApkGLPd8ozjGRsZ6CXsgRNCi7uDr5RjR/XB8MMoQd4ohiqyQxEXpc RSXX6QkQBoz/xxDRcYznQI4PQuetrn4CCEQE0wH+buPVBceM4+mHt6i3u7DjuHxh0aSl J9pA== 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; bh=Ty0hsPtlDxkVSvhrAb3oFo5WMkAGEZViSsriu4+ocSg=; b=PJWUqO2dZIMuAqu9reon1iLSaSH183PImq74n1Aa0s1FAn3VNNsXT8Eyi8b91TgYA2 BJ54ZndelYufJFWC8DgAJ9H35ek70D24hmXZGDdwLm8FcXMRHjzWtlbVOIHf+lasGilO Qsvxewa+uwR2JWPbhdXSDSnRqDz9EkuARbVhrvF1WYqi+/VWB4Tckt0pc5e3w8ExyDJw onZbz6PmmrEXahaiIelDibNiFystwXYGhrH27Bb3XMY03TgkcZCJLpxLV+PMAjv2YWSa fUwLRCQ1BMI1aHW/R3B57Pu9lFaRrNS41YJ9nASqK8Hlo4aWeHrkiwIWfVChMz4RM2c5 IHCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MY+67Xgo; 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 m10-v6si1525713pgc.105.2018.09.12.08.58.18; Wed, 12 Sep 2018 08:58:34 -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=MY+67Xgo; 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 S1727801AbeILVBc (ORCPT + 99 others); Wed, 12 Sep 2018 17:01:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37465 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbeILVBc (ORCPT ); Wed, 12 Sep 2018 17:01:32 -0400 Received: by mail-wr1-f67.google.com with SMTP id u12-v6so2604615wrr.4 for ; Wed, 12 Sep 2018 08:56:23 -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=Ty0hsPtlDxkVSvhrAb3oFo5WMkAGEZViSsriu4+ocSg=; b=MY+67XgoBOeHRFvdBk9/9zmsIOq7kNvzQZSuszRrWqor4y3wAs26igs6QLQFDlI2iD CVQM2E9ijyuN4d0pkvDiDGAA/eCEQGjwjDcrSC4zIHxpXvcFZ1o4kPPray9ORYYzLK3A FUbZDRAQoQ5FbARr1QOR9wSg+1VLntldQsyNWJ3WKb5Qnr5kLz2cVfqtINM+28UBcTN1 8WywZ/P8aLukanx/h8891AOnaq2WE00+I3Gonnh9mus1XLxOTpjQhtnpqis03ClYVP5k ks4LN1pXhGb71XoIXDgbOtGUnfevvnOfP4shnQ10mPDDsV1IbTChGW/tzAktnT0caQCt 0JKg== 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=Ty0hsPtlDxkVSvhrAb3oFo5WMkAGEZViSsriu4+ocSg=; b=PLb3+Ra2LQNawxRoQyd+XgtdJ8pXCrdvHeLLpHCXF0J77L3fY24lFlcoxETELG3wHR Vh8NMFmekTuW0Q3X5t/Gu0RTAqrjbEiraGPm8RBFIdNPnWLON+qOs2WyYD3ElGleHDsk b8SMy0U4WAcf12d8CsyU+LUdr+aH9EktEpqGKfL3VM86gBTggkSrBSJkwkGC+BM4QI2m Ee9Iy1CbOYXDaEcHfiqF3c/FP0Y03DBNv+IVN7iYLXUvMDkPJqlOeodbfoFLV76NRNF8 VJMIEsKIBddDPDKFVq07iZTC2mEdIiLT+JEHfPsN8eBy0Bski8xey1VC/wUR4VrLQMXN r1/g== X-Gm-Message-State: APzg51AaJ/KQtMFVCMtphktuGP2hS0yHmvqObThlg+1FXHna7/+x2jdP PSsB4Shy7T9ydgE2iUPzi+/p/ocz0y/ngVrHQa+HNP9y X-Received: by 2002:adf:f24e:: with SMTP id b14-v6mr1887415wrp.184.1536767782859; Wed, 12 Sep 2018 08:56:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:c710:0:0:0:0:0 with HTTP; Wed, 12 Sep 2018 08:56:22 -0700 (PDT) In-Reply-To: <20180912125133.GE1413@e110439-lin> References: <20180828135324.21976-1-patrick.bellasi@arm.com> <20180828135324.21976-9-patrick.bellasi@arm.com> <20180912125133.GE1413@e110439-lin> From: Suren Baghdasaryan Date: Wed, 12 Sep 2018 08:56:22 -0700 Message-ID: Subject: Re: [PATCH v4 08/16] sched/core: uclamp: propagate parent clamps To: Patrick Bellasi Cc: LKML , linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle 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, Sep 12, 2018 at 5:51 AM, Patrick Bellasi wrote: > On 08-Sep 20:02, Suren Baghdasaryan wrote: >> On Tue, Aug 28, 2018 at 6:53 AM, Patrick Bellasi >> wrote: > > [...] > >> > + cpu.util.min.effective >> > + A read-only single value file which exists on non-root cgroups and >> > + reports minimum utilization clamp value currently enforced on a task >> > + group. >> > + >> > + The actual minimum utilization in the range [0, 1023]. >> > + >> > + This value can be lower then cpu.util.min in case a parent cgroup >> > + is enforcing a more restrictive clamping on minimum utilization. >> >> IMHO if cpu.util.min=0 means "no restrictions" on UCLAMP_MIN then >> calling parent's lower cpu.util.min value "more restrictive clamping" >> is confusing. I would suggest to rephrase this to smth like "...in >> case a parent cgroup requires lower cpu.util.min clamping." > > Right, it's slightly confusing... still I would like to call out that > a parent group can enforce something on its children. What about: > > "... a parent cgroup allows only smaller minimum utilization values." > > Is that less confusing ? SGTM. > > Otherwise I think your proposal could work too. > > [...] > >> > #ifdef CONFIG_UCLAMP_TASK_GROUP >> > +/** >> > + * cpu_util_update_hier: propagete effective clamp down the hierarchy >> >> typo: propagate > > +1 > > [...] > >> > + * Skip the whole subtrees if the current effective clamp is >> > + * alredy matching the TG's clamp value. >> >> typo: already > > +1 > > > Cheers, > Patrick > > -- > #include > > Patrick Bellasi