Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp559582pxb; Fri, 8 Jan 2021 11:48:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/tHwtBJExwba9clemrWjs3K5P8n14pAaZ1hMarqWxh5hImBFvER2VAMfWL3bgBFY7YLS2 X-Received: by 2002:a17:906:2e16:: with SMTP id n22mr3777038eji.477.1610135299229; Fri, 08 Jan 2021 11:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610135299; cv=none; d=google.com; s=arc-20160816; b=AOLz6NlZnK+UXcoVyQJcjQmqzWdUFPbAhT/gj9uhcyYh0PHwlrkdMQ1VZOOq/0Ikrg KNf1LP+LeBHbp5rQcE9+Cmj3xFptfT3w+TW1cZCY4UHOxRMkKfxE3RJP/72+bQW8ltnm VIhjRjrATpvWb4piKtnbhMm7+O+h7XG0QeYSU/UFpJrQIvQOt8yAQxfIRdkMWz1Nu86T 97D9CyMxQ7DC9yroyg468+EJKls8Xo60sVgfVdnN2inzalUrcT6xRgTSxXpv3dbn8UZZ bKXPw1IQIojeAeNGrMSthPDekbHSRCNKGEkjNVQTHtgxC5ztglB1133EmdFUArnAV0GU 56XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oOtQDu7w1ab6cweuFIDLs0jH0PgEz7DuChoBHnBqhjY=; b=C33iaAK/zY9v4m/+enlqzco5YoArAbYFe8m6aA1IXvPLVo13sW80xd9EozSD11+Gtw JOtD2b2arLdJI6eTTbP1pzW82wFdYtKLF8hNKK1NiqD9R5BgLVAu5hzKbDUNQQY4V8lt xlZYMbtA/pLveRYR9JHsgu5HqOhydKay8UQpsLc1DIor6zlg1obfeEw2ZPJS86TekygT wqKroE6SlmUGxM5X7fyvJR/BhvcuygV7sAhf+kCFTxLjeEEB9fGIze1Pz9jM70aAY27n 9AvAUOXM3YwLCQXzJfES4/nMXwC0o2jMCXvjoc8fFnmQunfk/UoAXGFrBTkL7zk6kV83 eiNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ezABTJEo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si4088012edk.285.2021.01.08.11.47.55; Fri, 08 Jan 2021 11:48:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ezABTJEo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728898AbhAHTq7 (ORCPT + 99 others); Fri, 8 Jan 2021 14:46:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728759AbhAHTq7 (ORCPT ); Fri, 8 Jan 2021 14:46:59 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98B35C061380 for ; Fri, 8 Jan 2021 11:46:18 -0800 (PST) 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; bh=oOtQDu7w1ab6cweuFIDLs0jH0PgEz7DuChoBHnBqhjY=; b=ezABTJEo25pEyy8exv16P+jYeK 0xmgd65tq60rvsCkakyn2p3IaNG59Pb538U82McIBLZcyv1Kc9HHzM7cZqC7WP0jO/VxmbcgZgjXo ti/DTFIGGnvAVX1s6xnwnhCoiVKfXQ8U3HPu2gIOnfhQc5OYOnrwakzq6EoBTf/3cFW62soScWLnF /wPK56qVnW6SaOifD1t3ZREPk9vS2jIaxBbsICZoaCPELzVEr6Yz0gI/XTDBSLKfWKEF3P7Nk3IWE cEITXV6zeZdKYGet+qazKExGu4qt280U1e5ell3trROosKqnaYQ/Bf6FknWQswydbNNMlaa5BVLlC DeUVgw3w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxxhn-0007O1-K1; Fri, 08 Jan 2021 19:45:51 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 10E8D3003D8; Fri, 8 Jan 2021 20:45:45 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F2E0220167A86; Fri, 8 Jan 2021 20:45:44 +0100 (CET) Date: Fri, 8 Jan 2021 20:45:44 +0100 From: Peter Zijlstra To: Vincent Guittot Cc: Mel Gorman , "Li, Aubrey" , linux-kernel , Ingo Molnar , Juri Lelli , Valentin Schneider , Qais Yousef , Dietmar Eggemann , Steven Rostedt , Ben Segall , Tim Chen , Jiang Biao Subject: Re: [RFC][PATCH 1/5] sched/fair: Fix select_idle_cpu()s cost accounting Message-ID: References: <20201214164822.402812729@infradead.org> <20201214170017.877557652@infradead.org> <20201215075911.GA3040@hirez.programming.kicks-ass.net> <20210108102738.GB3592@techsingularity.net> <20210108144058.GD3592@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 08, 2021 at 04:10:51PM +0100, Vincent Guittot wrote: > Also, there is another problem (that I'm investigating) which is that > this_rq()->avg_idle is stalled when your cpu is busy. Which means that > this avg_idle can just be a very old and meaningless value. I think > that we should decay it periodically to reflect there is less and less https://lkml.kernel.org/r/20180530143105.977759909@infradead.org :-)