Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2314685pxb; Mon, 11 Jan 2021 06:43:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0rF7rlxFAppDgpKa8VMuJDNjT1o23nldBHaxDOJ3ahGJKDz9E9ep0/OEc0as/83TFXCGL X-Received: by 2002:a05:6402:490:: with SMTP id k16mr14053045edv.71.1610376189963; Mon, 11 Jan 2021 06:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610376189; cv=none; d=google.com; s=arc-20160816; b=eqGyap20bGf05DP5k8RM/e6ocOR3hA6rqTLBVNCvXfIuNRRW6gVQ5bp2xjR+302FHE YqEJUHSjbuMRjvsNaxK8wKlVwBj3+dfrREtZf4G6qOVVppUHhWlhj9tZ2WnnU3IUt9AI cNNELH+TUk3VNteahWMf2Z3rI4RU4CdVTdJukhXZedf+LBKC6bvJgyH7T1dmmG70TQ3/ cO5/QEVOHIbzKqArB8N3yBGOIKLUyKFPHXmAtApc06HqBrmSedB1gymL29a8ZGks6GAQ z/G+PmXycJ60JZ7QEynEOqi4HADIxAf4O4cxbFe0jJip7+PKumbPsG3kyu4AASDHyb+y ZT+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a+vkcHsiAqswgM9MUlspMKBKOzyC4WpGMlRs5sRsV94=; b=T0kgL4JumeevXsp9QWsrmxZoO2VmOlu7x9qvmBvmEm5XfvOXXysmaa/O6fcwl9h8bU FKh6SgWqJb3PMLlfLTlJMxM4dvPP4K/Yz0UWYDIoqEBSoFKcMjwuxEeiuDCtVIN8//UT Q0hGXKbLqG5kGxzblXqoQEYeaSwbmpvTrhh6Ls0SOC/koMm3T8ESA45W3woqZN6S/q36 GOHByZjd1rq+v+4jNigV+XBiyVgHfabsIXukSvL3XbPo8fripp552tpU0RYdR8z+5RX+ Egp1MufZxSSov/HpaZO0rUyuY22L4tQkd/3bScSRkdxqYZcsMiTEewoDP7TlxlNKlCrC rwjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gtfDv0DT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd18si4957521ejc.712.2021.01.11.06.42.45; Mon, 11 Jan 2021 06:43:09 -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=@linaro.org header.s=google header.b=gtfDv0DT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732016AbhAKOkX (ORCPT + 99 others); Mon, 11 Jan 2021 09:40:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729285AbhAKOkX (ORCPT ); Mon, 11 Jan 2021 09:40:23 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6BABC061794 for ; Mon, 11 Jan 2021 06:39:42 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id u21so3818268lja.0 for ; Mon, 11 Jan 2021 06:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a+vkcHsiAqswgM9MUlspMKBKOzyC4WpGMlRs5sRsV94=; b=gtfDv0DTmxcgQyGM5dFRLwMQ1L1sDYTjaAYhwgMBTRaKAVMZcno6eWHnO9cNrkSaae wi7zBfHEqacEAvTQKockZxaIu1bdRZ32ao8z3j1TYi05DGOKGBlTCpdJ6iYwpdEbwSn+ eV9uEXYLylQo19h0lNSDaYxupYbAD8HBK3mpactKaU4uFRlT4Srj3C0j0HJsKm7N/EMj NNTj9duGYmApdDNRq954LDNFEMoM6ZqU+r2spypaL2ku2ymBA2WQga/TRLL49oSnlNp/ Q99UQ/jlU/Mh8yOAJUBa2Kcu/r2YR6Je4/0Jlc6D5PODqKQstK6ID37UowpWKBoE/pKh T/aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a+vkcHsiAqswgM9MUlspMKBKOzyC4WpGMlRs5sRsV94=; b=OOY1eMTG9vmRhDN07y3DDoj7Qlo/4qR5r1mnJ/YJzUFEwuNMUC4Ote/IRuxGKqVibC akkPdA3Z7QiaRdBF/yMcH0ywFaiT4pk/phViKQcNRTYW+cOVzVta3iq9AnUsnpnZ0nbk byJuHF2PwsXZ1591mBdc+z7xOsMSDN5SbqqZYMK0mLrmCNLmzYu7+jyVwEVDruiKk9Zv Jgz/dfMf1bWTh6M4wj/9W2uvLDFS7uRDovBvsXksYOsxumCo4H5FUtCkzHzVqU4UZl/C aqSnUIt4dpKZPRPk1tw9bpdsuqGxvrznLsX4UsBl3De+aSrj0W1/ji0K8baBjhcYUlqv yatg== X-Gm-Message-State: AOAM532hlZusOy7baTifVYNIo9ccF/gvLN/p69yGWduE9zwloD3aPNGb WYYIXu0ov9tB95qRbsdGe6qTP3DSS1fMSnQq9+uCHA== X-Received: by 2002:a05:651c:20b:: with SMTP id y11mr7013834ljn.176.1610375981282; Mon, 11 Jan 2021 06:39:41 -0800 (PST) MIME-Version: 1.0 References: <20201214164822.402812729@infradead.org> <20201214170017.877557652@infradead.org> <20201215075911.GA3040@hirez.programming.kicks-ass.net> <20210108102738.GB3592@techsingularity.net> <20210108144058.GD3592@techsingularity.net> In-Reply-To: From: Vincent Guittot Date: Mon, 11 Jan 2021 15:39:29 +0100 Message-ID: Subject: Re: [RFC][PATCH 1/5] sched/fair: Fix select_idle_cpu()s cost accounting To: Peter Zijlstra 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Jan 2021 at 20:45, Peter Zijlstra wrote: > > 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 > > :-) :-) I was more thinking of something like decaying avg_idle during tick_fair but at leat we all agree that we can't stay with a stalled avg_idle value