Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp823500imu; Wed, 23 Jan 2019 06:21:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Vcq5f5jfbD7Df4tI7+A5brErM+ukx9nG7UOqhC7LLiPWXO+05U1mTwvShwUHsprFixIEW X-Received: by 2002:a63:557:: with SMTP id 84mr2039973pgf.411.1548253281319; Wed, 23 Jan 2019 06:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548253281; cv=none; d=google.com; s=arc-20160816; b=R7+EyGnN9exlHcJiy+q3W64tTwGy6BogDelFM0iSGAmEL9J2EubDl72Tk6DlEA07OS gVPqSPx3i7lfqoQic7PaQ8O5Zmvj8VLz4qCmFTdxRlvFjNLIgzmHyssoqaX0Ug2S7ibw 9CvxmOO+sM4yQQwNVLSfKSG6GL5DqHwIV4SuNWQd457wQFm0UHrYbTxUNx8JkOs2ubL0 mJywSFcouiz/UjOvZbXHiUMtXeeb8EAO8GcDI2EwraV0XSt6sfh/lv7Qp0e8M5Yv7JRq je9Y9ZbmDEFzJnGu+6bLbBjean8fHiIkQdzIfisSCusiUQMKeqsvBFw1luVaION83OTG VYgg== 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=mn4lPTMQ7lCHZ5VS74TamlBHfRvNAmF6hVCNgAXxdFk=; b=IsH0M41qXBez7qCz0izwMepSYdriiBnF3mxIKNsW+13MnAn9deY4VVwtH2acVibt+3 1ZcW6gn+YshOLYQ4SOtJMZofJDudZci9BU5WP5E73euC9mDSfYcQe9b99EF2w1Fyc2vA VtFIwEVcz5VNBcgI38p618sMaVT6aMR0zpuW++xOrP1u0bZWlwunfAmGTxqNNo32UxYS LhxHs1YZj+xj747lyyxApieN/FI+ivTjxRj+sk8qwEeOMVVaIIlMYZCotfjb45twbyCL 3edltN27VG3Fvyam8OEuU04+B+XpiWfWyCOjgmQajRezb8EfLQ3PppOGfDTTdPoNJrY7 e46Q== 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 1si17883649plo.195.2019.01.23.06.21.06; Wed, 23 Jan 2019 06:21:21 -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; 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 S1727078AbfAWOTb (ORCPT + 99 others); Wed, 23 Jan 2019 09:19:31 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41780 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbfAWOTa (ORCPT ); Wed, 23 Jan 2019 09:19:30 -0500 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 DB0BCA78; Wed, 23 Jan 2019 06:19:29 -0800 (PST) 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 E65DF3F6A8; Wed, 23 Jan 2019 06:19:26 -0800 (PST) Date: Wed, 23 Jan 2019 14:19:24 +0000 From: Patrick Bellasi To: Peter Zijlstra 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: <20190123141924.x36iqxh42lkssrxl@e110439-lin> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190123092210.GU27931@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? Perhaps we can add it in a second step, once we have the core bits in and we really see a need for a specific use-case. -- #include Patrick Bellasi