Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2856138ybd; Mon, 24 Jun 2019 14:05:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEVpscMPphZ3v1jfR0jT+1KQEptO1nFx8cVdX0OW6V4j3d5im4T5XqXsBRqompJBZyMTuX X-Received: by 2002:a63:6241:: with SMTP id w62mr27972541pgb.401.1561410336459; Mon, 24 Jun 2019 14:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561410336; cv=none; d=google.com; s=arc-20160816; b=zo9ceC7eQDAwC/hrw3jcu6jLMETAQIvts4+9M7dcLxUnBO53iUWJSo6zki/o5UCE6Q WINYlN08IvzH1win0hcBw8cS6qLnMYfysjR6dIHqweakdFivtW/AQJOt4EAq23m19jNx sQvA9tNQsCl/KNDHmnX3YepclvDmAUeVwD8dFMVT5k2xsK8hltRx7hHfkzAW25+NQoXc JrgvLWzShaEXTGVl24pt6VPMlrprAlSej/pHrZaN+5ZOaar97eDb8H3P2CMLh+30Eic+ dTxcIAv7iucio3ge7rQjIpsioONxhQyfnVeRTLjnT73FbeKANqivg/AUf09kKLxwYGxo R/ug== 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:dkim-signature; bh=zqvhv4+HocZvAFgQ886MQBeV76Way/6y27/WtDFCSes=; b=Z404BLsf2cIRqvy1UQyKwgWAY+Vney3KHWY/9B44WYvpnKTwWOJakpXaFX7rjhRYPW sa0TQL7b4r52bAZM5nPDWE6hBakUHl05zemptBEdbpv8SVJwWosXDY/t4hMUWYpL2FdO Vkoz+dQ9g4K+N2n3R3pDGD60ZGhazltrorXzb63s2QrDW9SCFPAYiXiozD1rmsBsZrs9 CqvvysUh4+RT20kVEEE3nQnEd4rjtTLY66Erft2xSPC88vDvWYRpYqJRwH2zbXWbXUHP ir+iC/bm+7wAexl5Jn4v9AJiFHml5MgpSyYaQZAnHkwC2asyKwqqPO0jMp0ZnhA10tN8 erZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vHR3m7Cw; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si10712681pgh.53.2019.06.24.14.05.20; Mon, 24 Jun 2019 14:05:36 -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=fail header.i=@gmail.com header.s=20161025 header.b=vHR3m7Cw; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729257AbfFXRqL (ORCPT + 99 others); Mon, 24 Jun 2019 13:46:11 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34265 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbfFXRqL (ORCPT ); Mon, 24 Jun 2019 13:46:11 -0400 Received: by mail-qk1-f196.google.com with SMTP id t8so10438896qkt.1; Mon, 24 Jun 2019 10:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zqvhv4+HocZvAFgQ886MQBeV76Way/6y27/WtDFCSes=; b=vHR3m7Cw0aO++OPfO86qU7byPS7zK+S7TvkfG3a2HodsI2oq3SB6b6zb73f0m4wAM1 stii6+Wq5k+1gW2y52IOuohS6Ma3ZEvGxcMFkK5DFZDVcug8n4nRFmAAAGOw/t/W1Lvq etn4ME0A2n6n2MdOFmak5Sr+NwCWDGyC9UATjJzWsYTC8xPRGn6m4gx4JdttXNzknnBP UL/fbcMFmDgGWjk7f/C0WO38e8F4fQ2f21W2yNk3NYnYTeclq78/l3O38DXQpFcYaSAt YLpa0kjKCNAz21XYCRhpIzGjGqVqYnH5YF31CmdQ/6Xpw8NHOTwbbCwpELMicNNS9+9o cDPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=zqvhv4+HocZvAFgQ886MQBeV76Way/6y27/WtDFCSes=; b=sfgFVk6HxbVuW4r58laowJNUn0iVbsh2SXkzZx4uCU6CNWT1qhsmUn+EGA6D08w7Hb pdyLlTfZy6HLs8eOv04/5CIyeWxHrhxKY+a4hnfUGnb0ITgIxg3skMJycu8Nd25TKoZU bW9SlxK/93xsv0E8UGdxctJRFTiHmItq2oXFOAWUX1gHTS37/n9zru2kkC3JFRoXxNYR 18xhcWcRWC+1UvvTK06Wq8Wm6Tgz2Cilb7aBe1fQT+uK9GAQlb7tp6jKpV61YcuC/8Q6 YPwRlLRrFQ21Dreb+ZZM2yseNcmih5Qr02oQJCl/CgRKy82qr71b/BXUkOEcY80wc4Ll y71w== X-Gm-Message-State: APjAAAVHOkjtixWIHIt7DGkqC5xQx6Fchqns6BqWUN81ANMkQQFQJpet 3ARn6l8WNOK97sRp4XM4Yrkq+7Sp X-Received: by 2002:a37:9c16:: with SMTP id f22mr121696273qke.261.1561398369951; Mon, 24 Jun 2019 10:46:09 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::2c48]) by smtp.gmail.com with ESMTPSA id j79sm6894214qke.112.2019.06.24.10.46.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 10:46:08 -0700 (PDT) Date: Mon, 24 Jun 2019 10:46:07 -0700 From: Tejun Heo To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@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 , Alessio Balsini Subject: Re: [PATCH v10 13/16] sched/core: uclamp: Propagate parent clamps Message-ID: <20190624174607.GQ657710@devbig004.ftw2.facebook.com> References: <20190621084217.8167-1-patrick.bellasi@arm.com> <20190621084217.8167-14-patrick.bellasi@arm.com> <20190622150750.GN657710@devbig004.ftw2.facebook.com> <20190624173405.enrxqalaqinbgsut@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190624173405.enrxqalaqinbgsut@e110439-lin> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Patrick. On Mon, Jun 24, 2019 at 06:34:05PM +0100, Patrick Bellasi wrote: > > On Fri, Jun 21, 2019 at 09:42:14AM +0100, Patrick Bellasi wrote: > > > Since it can be interesting for userspace, e.g. system management > > > software, to know exactly what the currently propagated/enforced > > > configuration is, the effective clamp values are exposed to user-space > > > by means of a new pair of read-only attributes > > > cpu.util.{min,max}.effective. > > > > Can we not add the effective interface file for now? > > You mean just the (read-only) user-space API right? Yeah. > I found it quite convenient, even just for debugging. > Moreover it allows a container to know what it's exactly getting... I fully agree. > > I don't think it's a bad idea but would like to think more about it. > > For cpuset, it was needed because configuration was so interwoven > > with the effective masks, but we don't generally do this for other > > min/max or weight knobs, all of which have effective hierarchical > > values and I'm not quite sure about adding .effective for all of > > them. > > It could be that that's what we end up doing eventually but > > I'd like to think a bit more about it. > > ... but I see your point and, since it's not strictly required, I > think we can drop it in v11. Will check better if it's of any use > apart from debugging/testing support. Yeah, I just wanna figure out a plan which works for other controllers too. It could be that the right thing to do is just adding .effective to everything but idk I need to think more about it. Thanks. -- tejun