Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6939547ybi; Wed, 5 Jun 2019 08:39:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUOjBiz25joxihAyp/AnmWvh62Tydhu05kOhrcSmzJpjtiBltREWr1q3pslB/hHILjLJol X-Received: by 2002:a17:902:3341:: with SMTP id a59mr15913321plc.186.1559749159124; Wed, 05 Jun 2019 08:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559749159; cv=none; d=google.com; s=arc-20160816; b=Yzp1rAruzU1SGwK719wiw/dBndw7kX0Zg976yqNMMXU4Jqqqq5DNETJNZnNJQY/bDg v9KN2gF01y0I76AfFIPY2UcevGwYr+si9rTpJYRxhB2qkNFrQop62I3QfaYmqCwwAobK +8ZRJ5iHwtWCGPSujronDxX+odLlh9adQYwQ7DBcTL3S3rKirO59jvOFjPqKYNWyKifr tALR8MAGZGSyn7z4ImhY6mG6W+l2k1po5ZSu1HnnOfe48TgTzeUZpFIL+M2PcZFfGSO1 2Vhr58UhboUxRblUcoA4ImMi+2QiTE9TiPm5x9HBBiA0pLkV59xmXBRIJzx7Gn2muXk7 rI0A== 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=UrGB1/no93iw2I2ZjhVhFND/XZAGXgCa6ONv+q/nVAM=; b=ywfaT7duOJOVEtXjS3YNl016AbpZKnGeHBDdbJMFWI7y4FSVODf1uUnDUIPUsfj1o1 +63LBpKTTlVVKNqsNYj2oe1jYOvtZuc1wKaAOu8OAlFotBj7u8PP6UDF6cCrQlOYjykP 2Z+h0YpsUPZA74G9MhtuAPxlxcAFW6u9Aq+0LZji0wy7lqhwieXLtnhJSuGVuV0Vwd0p EjNM0vCfDkxtvGpsc+BBbGA6fCpA567k51/83Aj6sfh4HdMGDafbLo1elGEMB/9pndSX EfO0fW3sKRoRYCL5+w4GRxtqiMlDC503ifqPVEZMgBrn5csZzWOLTODZ/OaCbu4PKoFs MUtg== 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 f1si28081173pgu.521.2019.06.05.08.39.01; Wed, 05 Jun 2019 08:39:19 -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 S1728413AbfFEPht (ORCPT + 99 others); Wed, 5 Jun 2019 11:37:49 -0400 Received: from foss.arm.com ([217.140.101.70]:33902 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbfFEPht (ORCPT ); Wed, 5 Jun 2019 11:37:49 -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 75AE0374; Wed, 5 Jun 2019 08:37:48 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7FB373F246; Wed, 5 Jun 2019 08:37:45 -0700 (PDT) Date: Wed, 5 Jun 2019 16:37:43 +0100 From: Patrick Bellasi To: Tejun Heo Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@vger.kernel.org, Ingo Molnar , Peter Zijlstra , "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: <20190605153742.lusoiodrzxmpsrvd@e110439-lin> References: <20190515094459.10317-1-patrick.bellasi@arm.com> <20190515094459.10317-13-patrick.bellasi@arm.com> <20190531153545.GE374014@devbig004.ftw2.facebook.com> <20190603122725.GB19426@darkstar> <20190605140324.GL374014@devbig004.ftw2.facebook.com> <20190605143805.olk2ta5p2jnd4mjt@e110439-lin> <20190605144450.GN374014@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190605144450.GN374014@devbig004.ftw2.facebook.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-Jun 07:44, Tejun Heo wrote: > Hello, Hi, > On Wed, Jun 05, 2019 at 03:39:50PM +0100, Patrick Bellasi wrote: > > Which means we will enforce the effective values as: > > > > /tg1/tg11: > > > > util_min.effective=0 > > i.e. keep the child protection since smaller than parent > > > > util_max.effective=800 > > i.e. keep parent limit since stricter than child > > > > Please shout if I got it wrong, otherwise I'll update v10 to > > implement the above logic. > > Everything sounds good to me. Please note that cgroup interface files > actually use literal "max" for limit/protection max settings so that 0 > and "max" mean the same things for all limit/protection knobs. Lemme see if I've got it right, do you mean that we can: 1) write the _string_ "max" into a cgroup attribute to: - set 0 for util_max, since it's a protection - set 1024 for util_min, since it's a limit 2) write the _string_ "0" into a cgroup attribute to: - set 1024 for util_max, since it's a protection - set 0 for util_min, since it's a limit Is that correct or it's just me totally confused? > Thanks. > > -- > tejun Cheers, Patrick -- #include Patrick Bellasi