Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1126085imu; Wed, 23 Jan 2019 11:10:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN5hcmF/G5zjzkjpbmj4Arg9vDsGQ9xk54aNOyYJwju1uHHkpLBrrCJHNWFyhGydx7ebztVZ X-Received: by 2002:a62:c583:: with SMTP id j125mr3241975pfg.37.1548270646117; Wed, 23 Jan 2019 11:10:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548270645; cv=none; d=google.com; s=arc-20160816; b=wQ4bVd8pMm5qGJSSOS1qGczoUE0NF9kKQS62Ww1wlRQ9YdhCunTZ1KPcvGJyHO7888 AkdV7xYOKyF23EaweGjM0bXTWiOsHgE7MGjSeOpl4izsugIMiHlArSIQfZFIlVWKWzq0 ktUhqzPeAiJ+BYUTA7mX/xqdWCpy0pj8j9YbB6fmc/Xn4ps6olNKfYj6p/gsp5kqNRrK R+v3hEpquEt6hKbxVAi9sxX1DnK2eYlL7RbxW/31SHNF8a6QNJymhh6VaIP/84MOAc03 F5b8trF7H+It4T61NPZt4uKHHFk2KIApwZkeP0oJXJA4ZAibuvfeQSsxCue2qDq6iu/w PZIg== 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=WR9PUrRzUHma+Z7YOmuyL5asuyyyFMfZUNkzeEZT7Xw=; b=BNdggqK/u5immNApctB2Okp9CnoOlWXN9wWVKNZ9uKzHgf367YXSWdDvRGI1upWZ3n m0WcOlZhe1N/WK5V1DXQgwF8YCkCQi7fIzgss2VvYr/AhFLc3GLbJr9L3/MJXIqZ/hnM KRQxKa4oW3sV9Fo8vC9zmDKXejdwWSZpZG4JL1bnVI9x8QFJNdoKa5EWvSiHPNKQVQ9p QGwpfSNPXZkmcctS9hLjSygAYWMx9QlUyshnTG4LNhsoJPpghNnUhniStQ/uBgaPhXZ6 dGjNPYyVriBKlzTtAC93SwWzXMgnDjQNZYYj3TbFyCMdkA6QgE2AdMnGOQkp2NTf8D47 5xsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Wg4QR/xK"; 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 r34si20031690pga.242.2019.01.23.11.10.29; Wed, 23 Jan 2019 11:10:45 -0800 (PST) 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=@infradead.org header.s=bombadil.20170209 header.b="Wg4QR/xK"; 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 S1726354AbfAWTKO (ORCPT + 99 others); Wed, 23 Jan 2019 14:10:14 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:40660 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfAWTKO (ORCPT ); Wed, 23 Jan 2019 14:10:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WR9PUrRzUHma+Z7YOmuyL5asuyyyFMfZUNkzeEZT7Xw=; b=Wg4QR/xKdD2VqbA6sZua2U0vF 83H5qKeRVt47aKzlbF/c8UanYJUfK29oMo6RcF+lgzon7fd/upEUrB0WA6xdiFWcLc2CsOAUH3Tni hS2Ch0x0gHznAUuxQVXq/oN+vT5yEk1qyU2L36nHCwEzp2Mh2esTB61qsdQzWf/bMwlbbCP474HHr A/QIjzgtBWyRKzq5EX/XEJ7mMw6Hvf0oOumGjJyAI8rs5Br+WBPrgChkGtZZdhKCmvkBxN4iz6yRu fqLDZj8659YgC5NINqmyuFNYewf76J8bAYZHW1vPraOq7jKJf3HDWZ9+uZGwF+JKMkT8wSlP/+AZF arYpJc2ew==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmNub-0008GK-IG; Wed, 23 Jan 2019 19:10:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 02C90236EC0DA; Wed, 23 Jan 2019 20:10:07 +0100 (CET) Date: Wed, 23 Jan 2019 20:10:07 +0100 From: Peter Zijlstra To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@vger.kernel.org, Ingo Molnar , Tejun Heo , "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 v6 07/16] sched/core: uclamp: Add system default clamps Message-ID: <20190123191007.GG17749@hirez.programming.kicks-ass.net> References: <20190115101513.2822-1-patrick.bellasi@arm.com> <20190115101513.2822-8-patrick.bellasi@arm.com> <20190122135644.GP27931@hirez.programming.kicks-ass.net> <20190122144329.ziimv6fejwvky7yb@e110439-lin> <20190122151317.GH13777@hirez.programming.kicks-ass.net> <20190122154129.mxnpgaoxnccbjbch@e110439-lin> <20190123092210.GU27931@hirez.programming.kicks-ass.net> <20190123141924.x36iqxh42lkssrxl@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190123141924.x36iqxh42lkssrxl@e110439-lin> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 02:19:24PM +0000, Patrick Bellasi wrote: > On 23-Jan 10:22, Peter Zijlstra wrote: > > On Tue, Jan 22, 2019 at 03:41:29PM +0000, Patrick Bellasi wrote: > > > On 22-Jan 16:13, Peter Zijlstra wrote: > > > > On Tue, Jan 22, 2019 at 02:43:29PM +0000, Patrick Bellasi wrote: > > > > > > > Do you think that could be acceptable? > > > > > > > > Think so, it's a sysctl poke, 'nobody' ever does that. > > > > > > Cool, so... I'll keep lazy update for system default. > > > > Ah, I think I misunderstood. I meant to say that since nobody ever pokes > > at sysctl's it doesn't matter if its a little more expensive and iterate > > everything. > > Here I was more worried about the code complexity/overhead... for > something actually not very used/useful. > > > Also; if you always keep everything up-to-date, you can avoid doing that > > duplicate accounting. > > To update everything we will have to walk all the CPUs and update all > the RUNNABLE tasks currently enqueued, which are either RT or CFS. > > That's way more expensive both in code and time then what we do for > cgroups, where at least we have a limited scope since the cgroup > already provides a (usually limited) list of tasks to consider. > > Do you think it's really worth to have ? Dunno; the whole double bucket thing seems a bit weird to me; but maybe it will all look better without the mapping stuff.