Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp261608pxy; Thu, 22 Apr 2021 01:17:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdI0/Ot+4ek9lgHmOF6bNeatYlIV7p74t2znqG7YbHe+AFNxRR9Sz1R6AUXEgn2Fv28x6B X-Received: by 2002:a63:e443:: with SMTP id i3mr2411482pgk.114.1619079446822; Thu, 22 Apr 2021 01:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619079446; cv=none; d=google.com; s=arc-20160816; b=eyVWlTYax6+CQCUM6oXcqRk525RFeAFDtoaUEDv58OyO7rSYtQftZOV4R8UYr3XJSs BM4UlWeB0sdPKiwrSBUB+xyeGFTvh6kIQWmsXT1h5N/26ZSUhRM/iSNNVUIMM2rTAjT5 p3JIQruG9+4LPZzGZCtv9JXdLPfIKJAe4ILcxkUBXuVclL7KU8iRH5pZ2KB0WcaWVxKz BzTnyEz1DuzZkLbdo/pK+E9uuVNUcCWQAbaEBcowdbKfVJ9Sl3VYF/dIW61CU5YljCvi GmTWwQOCbULMYCW3q94pE4T+bxjwKOD8GX0WrKYbHaGxcocJuAwd626wwuDMgKeHnGC9 ykdg== 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=PWr7R1dU9cuwPOC+nwH35454h9m94YSv8+YAHyiC65Q=; b=AaCVn7BD4qzSMRDAHc1rOTlB0Yu83hhLGkPN5IUtZ8OwxrkchWN2dvscSVVKd0AwaO xphrYNUeAUw2b9XLB+UFURpAY/WIzzcL36RlyGGIbZUlE+nJjyRrRLsvxTD/iCfkE7pa 10r5Qx+1a5bPx0vN9qH8Oxzu7OamdBnnswLC+hhCNrFDjHRNNb/M9WBjJPSCYFIQ6ZOR 22Pn8iWBJpwCTxsaeR6WPWbFP90HrXvpXet5skt4+YaP8Z4PCDMeVZG0Ms77Cj9BdAeS fq3b/c2aPLjfKjeL17sUDGiLWQKmNSfW0zErLneGyUBnFq6HoSUCDbKDw8GMLc87uUN4 QQBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=V+YlHuy8; 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 v12si2536706ple.68.2021.04.22.01.17.14; Thu, 22 Apr 2021 01:17:26 -0700 (PDT) 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=desiato.20200630 header.b=V+YlHuy8; 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 S235317AbhDVIQK (ORCPT + 99 others); Thu, 22 Apr 2021 04:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235316AbhDVIQJ (ORCPT ); Thu, 22 Apr 2021 04:16:09 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC284C06174A; Thu, 22 Apr 2021 01:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=PWr7R1dU9cuwPOC+nwH35454h9m94YSv8+YAHyiC65Q=; b=V+YlHuy8JS8dlfw5WsGflbrZD8 35lo6lNadOU7tQptPY7vYjaUfDwI6X8KwBN5MAXd+CwN93sicyEHiRX6cqnKyGzXEbIXYl1DzUSsO B32pGFzQi7JSVOHkIP5a5igROlJHAANLnVkhJKD4hM0h6/0XLS0buxcnBbFt+nWrqOKVarQg7FMkj Y3wQcTOJm0UdBBqNTzIqEqy/kdeErLZbefMhHjJYsbciAHiwJr+SQnOYlNTydebWhXCAt7uGlCYW1 JOYfV72Y/5g8m2kn4iNVNYuWAVz+XCKZPnoy0n/xf/YX9Dqi7ott3NOSBm1XkHye9MQSJMQf/SE0x 91j2NHJA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lZUUi-00GDuz-4o; Thu, 22 Apr 2021 08:15:28 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 029B93001E2; Thu, 22 Apr 2021 10:15:26 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D34932BE658B2; Thu, 22 Apr 2021 10:15:26 +0200 (CEST) Date: Thu, 22 Apr 2021 10:15:26 +0200 From: Peter Zijlstra To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Rik van Riel , x86@kernel.org, Vincent Guittot Subject: Re: [tip: sched/core] sched,fair: skip newidle_balance if a wakeup is pending Message-ID: References: <20210420120705.5c705d4b@imladris.surriel.com> <161907696062.29796.108437696048031441.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161907696062.29796.108437696048031441.tip-bot2@tip-bot2> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 07:36:00AM -0000, tip-bot2 for Rik van Riel wrote: > @@ -10684,7 +10693,12 @@ out: > if (time_after(this_rq->next_balance, next_balance)) > this_rq->next_balance = next_balance; > > - if (pulled_task) > + /* > + * If we are no longer idle, do not let the time spent here pull > + * down this_rq->avg_idle. That could lead to newidle_balance not > + * doing enough work, and the CPU actually going idle. > + */ > + if (pulled_task || this_rq->ttwu_pending) > this_rq->idle_stamp = 0; I've un-committed this patch, because vingu was reporting increased idle time because of this hunk. I had mistakenly assumed that was sorted with v3, sorry for not keeping better track of things. (also, now that I look again, please also fix the Subject to have a capital after the :)