Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5416968imm; Wed, 12 Sep 2018 05:52:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYcEMSQmGBzrrzHsTWnP00rP+M4oQS8DzVyRO1kh8dsxIj+Ke5cCcg568RtDbwN/ZIuecS+ X-Received: by 2002:a63:ea49:: with SMTP id l9-v6mr2111635pgk.427.1536756732062; Wed, 12 Sep 2018 05:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536756732; cv=none; d=google.com; s=arc-20160816; b=qy96rcNxJIZwOw84nW5wgzPcNpUFZbeTkfRNB23PH+IhT7ChhoqALf+AoWLgUCgpN4 dkq5PSV3YHx+HT6sYZlIckp83s8AJ3PPLSscLBA+NtIComG/QLvfcH/D5pElYWftg4hq 77oyoFWKWIo46d/AZ5EEpwRldPCH6X4g+hpVI+2zsNLY6bo2le5OIrx4r4AR8T9iJ6E2 UI0aMzQlgniBpTyO65f0e0CKzEsD0m6OXuTWv3b2tpr7IQOytwjh5UvZkb1pDkLezX4o b8P8COGNetC8ELWMXO45P3ED5VVAe3agII5G3ZhFpFqMhI/aoEHIPS89DFECuVva03K8 yMug== 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=ZK0Myj0K97otBKkl5iPicazc24LJy+Y6Y8yH47ReYnU=; b=xWTNb/vgzolSxj0xxLVh0h/DeSGtGcXhxpwyYx6pptFvdjA9O60f9evDHfVF8AtiMC 1kitKsPdgRqD+eP03vnjN3QnenAvkpcRM51Fr6nu3xfu8N54NR/K4/O5/Ch0Fd5aOF3q Q+iR8W07rri1ICqK4WSqnDRSp8+bPkQbPyOkFzlQ3SY16At4f0vdXUM4VETXZayDVV7H aLxIAmvkZhUEYV5j+Y/8AwwWz/7GVBRCneb+iKMOoOt/8ga6zvTCijg8PkuTs6ZVan8l XmzFlGHtSuSZ6cVPrnQUlG9+p8DvD0T+xfRjyjzdjgW6+t/jC+jKZyIYbYvaDAKP++PY dQZg== 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 k15-v6si1129493pgi.62.2018.09.12.05.51.48; Wed, 12 Sep 2018 05:52:12 -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 S1726836AbeILR4B (ORCPT + 99 others); Wed, 12 Sep 2018 13:56:01 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59022 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbeILR4B (ORCPT ); Wed, 12 Sep 2018 13:56:01 -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 CC1E780D; Wed, 12 Sep 2018 05:51:38 -0700 (PDT) Received: from e110439-lin (e110439-lin.Emea.Arm.com [10.4.12.126]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 098F53F703; Wed, 12 Sep 2018 05:51:35 -0700 (PDT) Date: Wed, 12 Sep 2018 13:51:33 +0100 From: Patrick Bellasi To: Suren Baghdasaryan 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 Subject: Re: [PATCH v4 08/16] sched/core: uclamp: propagate parent clamps Message-ID: <20180912125133.GE1413@e110439-lin> References: <20180828135324.21976-1-patrick.bellasi@arm.com> <20180828135324.21976-9-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? 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