Received: by 10.223.176.5 with SMTP id f5csp1075748wra; Tue, 6 Feb 2018 12:10:20 -0800 (PST) X-Google-Smtp-Source: AH8x226FwKudvhBQiHjUqgmiNhUAfpB60vZikeg9wzhigoxXofcSnxpiOehw8vA1L9RanYpWZYZT X-Received: by 2002:a17:902:9686:: with SMTP id n6-v6mr3437207plp.333.1517947820432; Tue, 06 Feb 2018 12:10:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517947820; cv=none; d=google.com; s=arc-20160816; b=O6spTNwAFyVkCJdAyFxP5dEkhN2xBVCSPZ/USo1WXRkPIqOlFk58NTw6kCCMLbl0im t4SRKXHPMWwxZcbLKFd8ghF6qlSOmmOcF+ae3Mr3M4pekc5Tn9WUQRqqgPM5I/rD5wwG XFNw7iRHMphOpTE8yrgePxm534A7YD7a7xvY07Q82nekYYhRVKQJvrYgNtGEaAfRQJbj hhcXmYlueTKdzLbDsbdxCviDMDDwNMs2P2qJIpEKkQrxmVUsGWMvtTB9Pfs6Avk0/xex kuSXNVQiW8njphwGHDOQVESisL1NFApPkCvwpmT3Qgb/tfnTeAoT8UXXwDypcGAOfdhb 4+/w== 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=WMXdpnCZBjM3GVvshzUXeZQrCzwApBVpszGusMcREOk=; b=BOZxlhdb7L/QkxoXqY/TimeXoPqBmbw+YrFOa9Ncg57XbUZouaGbTV6g3ugbodtKwz pWob7NcUN6OwRhHRmHHwzRHJIjK3YgtyATzhkuXMD2mDZqt/PsDv7372jIJg8pY0lAxn PfB1fCyRnmbdwbZdXDhLzSaDNORJrFFeuFm9hmxl9053fKTwVhVmDMO/Sxws2gHT7YyU /hcX12+5wOn4ZOWYQf0U5e3x2uIG12fhTUVbh//xw3vlVCJqzSiawTVQTSfop0N9/9Q4 R/ntUfyjoa3Uvpzosv4bk+56b/eWun988C50F9Y9rRglDGZwfBMYdpJ2S0H/xQ/Loi2z HY9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jy/X82nP; 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 r12si1513743pgs.227.2018.02.06.12.10.05; Tue, 06 Feb 2018 12:10:20 -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=merlin.20170209 header.b=jy/X82nP; 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 S1752874AbeBFUI5 (ORCPT + 99 others); Tue, 6 Feb 2018 15:08:57 -0500 Received: from merlin.infradead.org ([205.233.59.134]:60858 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751574AbeBFUIz (ORCPT ); Tue, 6 Feb 2018 15:08:55 -0500 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=WMXdpnCZBjM3GVvshzUXeZQrCzwApBVpszGusMcREOk=; b=jy/X82nPW07V9lGBiEy0+F7Mh WOAZnETjOFHFJ5MZYQsLAm8GB5z811kuqu4VYARlqMrR/gKbu8uCJG78x5c95pK8UzSr09ibjD3n7 kaUp5D2ftPIGERjq/QslrN8Wr6x7TnZLWPmZmngCUGJJRtiIDHKmHop0boX85SgFyMsKVpMvPNzf+ A4PGgzp5ooOGV3MVsdotZcLVsbPJdoWHwq46SI62iWvT1pdj2Y5ekzsw4UPt0zTDGLiIQHmVYXFma KoT3tUR3ThF2Q8G/8smUaUtQ+iECsjjn13nCH81If/Rg8B2jVp7RGdlEdxTysCHYT2XyI8TV5cw+f IpYvIVP2g==; 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.89 #1 (Red Hat Linux)) id 1ej8hx-0003oK-9p; Tue, 06 Feb 2018 19:15:13 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id EBC0E2029F9F9; Tue, 6 Feb 2018 20:15:07 +0100 (CET) Date: Tue, 6 Feb 2018 20:15:07 +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 v4 1/3] sched/fair: add util_est on top of PELT Message-ID: <20180206191507.GU2295@hirez.programming.kicks-ass.net> References: <20180206144131.31233-1-patrick.bellasi@arm.com> <20180206144131.31233-2-patrick.bellasi@arm.com> <20180206155056.GF2269@hirez.programming.kicks-ass.net> <20180206183315.GG5739@e110439-lin> <20180206190900.GN2249@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180206190900.GN2249@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 06, 2018 at 08:09:00PM +0100, Peter Zijlstra wrote: > On Tue, Feb 06, 2018 at 06:33:15PM +0000, Patrick Bellasi wrote: > > > Good point, I was actually expecting this question and I should have > > added it to the cover letter, sorry. > > > > The reasoning was: the task's estimated utilization is defined as the > > max between PELT and the "estimation". Where "estimation" is > > the max between EWMA and the last ENQUEUED utilization. > > > > Thus I was envisioning these two calls: > > > > _task_util_est := max(EWMA, ENQUEUED) > > task_util_est := max(util_avg, _task_util_est) > > > > but since now we have clients only for the first API, I've not added > > the second one. Still I would prefer to keep the "_" to make it clear > > that's and util_est's internal signal, not the actual task's estimated > > utilization. > > > > Does it make sense? > > > > Do you prefer I just remove the "_" and we will refactor it once we > > should add a customer for the proper task's util_est? > > Hurm... I was thinking: > > task_util_est := max(util_avg, EWMA) > > But the above mixes ENQUEUED into it.. *confused*. So mixing in ENQUEUED seems to give it an upward BIAS if the very last activation was 'high'. Thereby improving ramp-up. That seems to be what we want.. might be nice to have that in a comment ;-) I'm thinking we want a different name for max(EWMA, ENQUEUED) though, but I really can't come up with a sensible suggestion, which I suppose, is why you stuck an underscore on it and went on with things.