Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4444199imm; Fri, 18 May 2018 05:19:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqEw7XvE2U278ytrLjGTaeTABZUel6KfxuytAKKcmS9zHz7QBKt+lxgcPVMEUYyEli1SSga X-Received: by 2002:a17:902:8647:: with SMTP id y7-v6mr9206314plt.86.1526645998993; Fri, 18 May 2018 05:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526645998; cv=none; d=google.com; s=arc-20160816; b=VuJfe8ha+zu30Ad3ga6cxZjlphJT9tQ4HhaOmkIgdhVngWABjeclF9gAfIqZux7KGL dOgC293oMCxVGX6Co8MvfNIUgt3GNQyDO+r1366QfAmf0XB3CKCWqdsF+gdSLtFki3C+ KTqXvH4YvglafeDswTElAdw9pCSxKYK6p5HfQt7ZHcN4fgp8lk8GBym09b3yhTMuihPc +LDuWrLXPFJ16XVfgKhAjphJXZ9m2a3Yv9cK43x8knBCbQFDSdl/1xMggVtGb/hhnE0J fOfzT0fZAsTcbFX//QSTAGlbKYVS4/5c/wDKm6mGWmEOF1jDBFIrXd00A5AgV+TCNNds J+dA== 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=1QPFEkYmPbcaTYQbnqgGW1NaTYmPfZ4LMjrBw9DAoW0=; b=iQLq98MtF+oqhbICl0sv7LrVSIFstSA/7lzFMNuhjGaCO58noo2XN8NLCvk4Wxe6lN YjIDpTAEdNZonpB3xkXDPYCu0b4GnuJqMDgsXLlKmULP6j2BMHmYPhmDijHG3Q7TDs2M /nr23KxG12S8TWKUpQuiyptUXKEwf9gTt/Q2uqRTiT3mAmpBiSlcYdmZBIa4O5qKmHC4 5CpIbWu3i2j+8fj652TFlFsGuNgB6gdeUyCF0WYKbGj//7ovK0Z2oaRNsAg9Jp3kW5ru TxDQxiGnNHfoWmXtJiZKF+lPs08jxuGX6ReHlwfvtMM3s0gyR1+Sig1tL4v7HxIGawuW Oq5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qApPyCYY; 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 l12-v6si6018859pgr.367.2018.05.18.05.19.38; Fri, 18 May 2018 05:19:58 -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=bombadil.20170209 header.b=qApPyCYY; 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 S1751418AbeERMTV (ORCPT + 99 others); Fri, 18 May 2018 08:19:21 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58302 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbeERMTU (ORCPT ); Fri, 18 May 2018 08:19:20 -0400 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=1QPFEkYmPbcaTYQbnqgGW1NaTYmPfZ4LMjrBw9DAoW0=; b=qApPyCYYxdNLmqisf/JsZILKZ mw4cZ0TYwP6rq5CNnz1aUORGVvdhd8zDwKAuFApk8yO5ekHmpzSTFVEZ/C4uZ1MsZSHaY2oVRx7Pr f1R+kaGpv/INXM61G/SBXsCfn0QuMwR4taSFV1VPe40Yd0FaCGJOhMOPsuJHIgYcwfTTsD9sO0PCG z60UG54F+HOoku78XpoD5yG6kmEzKcnytTeQjnTOLnb4ZQrwYox8FuMJLd8owEA26/+rGP67aLTln I7D7BnFbhESrRCA03AdsO+813KNZAmULv5nxMCITrDcs0VlwGXZKIGghnbkNrt2GlRI4gBuEC7Ak2 Biqbezldg==; 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 1fJeLr-0007sJ-9p; Fri, 18 May 2018 12:19:15 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 262F02029F870; Fri, 18 May 2018 14:19:13 +0200 (CEST) Date: Fri, 18 May 2018 14:19:13 +0200 From: Peter Zijlstra To: Patrick Bellasi Cc: Vincent Guittot , mingo@kernel.org, linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, yuyang.du@intel.com, pjt@google.com, bsegall@google.com, "Rafael J. Wysocki" Subject: Re: [PATCH v3] sched/fair: update scale invariance of PELT Message-ID: <20180518121913.GR12235@hirez.programming.kicks-ass.net> References: <1493389435-2525-1-git-send-email-vincent.guittot@linaro.org> <20180518093638.GL12198@hirez.programming.kicks-ass.net> <20180518101738.GM30654@e110439-lin> <20180518120851.GM12198@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180518120851.GM12198@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 18, 2018 at 02:08:51PM +0200, Peter Zijlstra wrote: > However, I think we can shrink util_avg unconditionally, which would > give us exactly the 4 byte hole we need. There is of course the problem that we track rq util_avg as a straight sum of entity util_avg, such that if you migrate/wake a bunch of tasks into the rq the sum can exceed the natural bounds, although it will settle down back to it. If we're really worried we could try and detect overflows on the summing and clip.