Received: by 10.213.65.68 with SMTP id h4csp391051imn; Fri, 16 Mar 2018 06:27:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELtpc0BicoGLkIJcuvb+c4GmbxgEo1UffZo2R5daJsiQsk2q1R/STOrO9btniRfPtxLhfA8i X-Received: by 10.101.101.78 with SMTP id a14mr1457062pgw.368.1521206822027; Fri, 16 Mar 2018 06:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521206821; cv=none; d=google.com; s=arc-20160816; b=Qfm5qoTSr6iqLOi58H/ld9LOF+INnGRQUxoFiv9hFVuQ76QnWtMvpecOgDSRTvQAc4 s69bJggKwOx+Z5Q6KRWu6JfDIj6pslclmEdZSVwumNcpb3j9IYGJ+qx26A4ldOuJmGvg WoLSQ6HWzCMOJeZeIOO1nOnoWF11FkGp9aIdAcjptIlfQOwKWBDu9C2WPf8QVMP036oq nJI0BPiy5Coq2rfsjXlf35fHWn5WdJJOM8j6BPrad0K1UyXA+ORGCOjqyH721UMJFfBQ ulL23lyhUGLYQ8G9Z8zbLqFHeW7e4HMf3NY5ofP4Fvnt98oAbtfayjOXvWaipm6yZaeI 9WTw== 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:arc-authentication-results; bh=P5sq4lwah4Apxj4z8G6GXEjyWZlCdZwGTTnV/5MOYB4=; b=kkY3zUvOSh2cmU7mSuQPsZTptJ5zL5D+26xrna3IhGl9bYuyo74i/E/LTFDKd4E68H G76RxvOpKBZgFgus9wseQxc7Iz0Qxcj9IQvXPWUwWDMk/cM2iE4iNaXM+1QGkW0rLjgA SanbqdY6FI84PgoFQNNBNhAMCn3sZycBEmH2Bu1l0sy3skPs4oq2RQQ8oVho0f7yySgz 2pdbFcpt4KZ1dxEcRTHUy0eivH3b3PSENU8wJfywInc1sODvHXjyzhRP5qfu0UO7RnZn qyGJV5RtbyTSTco33w/C5wasJEvgEj2FiZ9ywWd4XzLuOakIMfTeJ7JIjGv+tiGdzd7g xkpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=koe7wevE; 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 x19si5517201pfa.130.2018.03.16.06.26.48; Fri, 16 Mar 2018 06:27:01 -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=@infradead.org header.s=merlin.20170209 header.b=koe7wevE; 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 S1753119AbeCPNZW (ORCPT + 99 others); Fri, 16 Mar 2018 09:25:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40786 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbeCPNZU (ORCPT ); Fri, 16 Mar 2018 09:25:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=P5sq4lwah4Apxj4z8G6GXEjyWZlCdZwGTTnV/5MOYB4=; b=koe7wevE5i+6qACUysvjLjX4b o/fi2TBkyTNhNSWZmr15+MzploK8YaoQ5oXMBOCq4pQ1lNStUaPI90NAxlASZKRDrnDzoPh1p0XGv KrxBPwIAVlN5G3YUKigAMm64xXT8NIVCtyUQWz1n1wkXyx+YHNmii1D8B1VOUKtydc2362dt6HUpw +K/Hi/a+wkbcUCkYLEfLLJPTx59hVMML5Gj3wj56y8FCrAljEi92GHZxg0dx3h2+XVSPKCDWcxGnZ VFiw7vYwEMWzyj5DVoW/uVLXmRa57GsvMgJfmUxO5aN4ym40dhfPaPUJu/exkO7+s/NRmANoV1ODb D5zaEe3xw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewpM5-00026K-Hm; Fri, 16 Mar 2018 13:25:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A69022029F860; Fri, 16 Mar 2018 14:25:06 +0100 (CET) Date: Fri, 16 Mar 2018 14:25:06 +0100 From: Peter Zijlstra To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle Subject: Re: [PATCH v6 0/4] Utilization estimation (util_est) for FAIR tasks Message-ID: <20180316132506.GF4064@hirez.programming.kicks-ass.net> References: <20180309095245.11071-1-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180309095245.11071-1-patrick.bellasi@arm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 09, 2018 at 09:52:41AM +0000, Patrick Bellasi wrote: > Hi, here is an update of [1], based on today's tip/sched/core [2], which mainly > adds some code cleanups suggested by Peter as well as fixes compilation for > !CONFIG_SMP systems. > > Most notably: > a) The util_est's update flag has been renamed into UTIL_AVG_UNCHANGED, which > seems to better match its usages. > b) The cpu_util_est() function has been removed to reduce cluttering by folding > its code directly into cpu_util(). This last function is thus now always > returning the estimated utilization of a CPU, unless this sched feature is > disabled. > c) Not necessary READ_ONCE() have been removed from rq-lock protected code > paths. For util_est variable, that we read/modify/write only from rq-lock > protected, code we keep just the WRITE_ONCE() barriers, which are still > required for synchronization with lockless readers. > The READ_ONCE() have been instead maintained in all the getter functions, > like for example task_util() and cpu_util(), which can potentially be used > by lockless code. e.g. schedutil or load-balancer. > > Results on both x86_64 and ARM (Android) targets, which have been collected and > reported in previous postings [1,3], show negligible overheads, especially > compared to the corresponding power/performance benefits on mobile platforms, > where this feature helps to reduce the performance gap between PELT and another > other out-of-tree load tracking solution. Thanks Patrick!