Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1164769lqd; Thu, 25 Apr 2024 07:44:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1/CsgFx2pzVOSM91ahUjTE5R/FSUxIEvTA1/U0Fd+cGxTNQxqqcelCNWoVLziWgi+qUFoBjYULXea7j2XzJLNpvplm5FTZV2chWFPfA== X-Google-Smtp-Source: AGHT+IEivVFjM3lwFSQH8T0aEvCWK5niKOWcHBmhTe2cE3cLDFg0wHTzjc/e+M8AC7dU4hMExSjB X-Received: by 2002:a17:90a:5e49:b0:2a2:c40a:1a5 with SMTP id u9-20020a17090a5e4900b002a2c40a01a5mr4806640pji.12.1714056264436; Thu, 25 Apr 2024 07:44:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714056264; cv=pass; d=google.com; s=arc-20160816; b=Dlj1yFuV4StFmvotNUfguXzWSv+98/cn87CRje73IDVVtbhvVz/oQNlF9KDNduAtiZ /mcSjJmjnXVCeCJYJ0C9xcb1MYqpkKgXo4R7L0GVzvKKhtZ3imBq2pT8RvugyLwqySVO QL+hsJN9vA3dSM3y/t6vt5Se6NqZgEYg/qkEvVtY2MW38PzOMyZLexZ725WBZspnDLIC 7p+mNaYoqO5ki6Rnw8bXei4wwtg3PH/nyN3yFqDx2A7H/HW8UepEgJvJQFbaRPBHPMQ9 RNRGe+1nzrqMD3XPxM32A/pORzDlE598qgG6abtQlJWN5AjG8I4N6ookkVRtiFncOIL9 IyTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Oifw9qpN855aTC4DmsgN7sJLcbfvYepEMTuQVWv2urU=; fh=Ouq9qUjiHjuvPwH2PH5oLM6jJKZWOQ4HSeMj69kFe8U=; b=nYw1xZktW3M3V97kH30dz4cy9roFet6AoY9+R/S23ngZdFvI4hSU1swT1H22pWssoT QlpyUq5+OqHO+S7u6u1ie3mL/ieNbB8jguDsuDJUk2zUE6NlF10ogcgPfrN/Z2zwpmDp zg6dGJAI/l8uNl/AhJqNHWOV96XVlfAFJCF+0AVccsl22AZGBcC0k6SStH/xJUMK/EDB JvrbL6cOwoeSIzAShY1XbtbtIqSFRSkkhcklfhg710kZX+lSApRRkdLa5DrMa+VoHCUf hFiV5NA4SHZPZ1dw3y2bJcqp0BZ92ahz1EHWgaDIleE9/wlqEqUVQC2tCPp5UlRXmJyy yIwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=XRFkJtJW; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-158480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158480-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v21-20020a17090a899500b002ae56a2b3c8si6079752pjn.65.2024.04.25.07.44.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 07:44:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=XRFkJtJW; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-158480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158480-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 43795B25D9F for ; Thu, 25 Apr 2024 11:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B44512BEB7; Thu, 25 Apr 2024 11:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="XRFkJtJW" Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48C4612BE89 for ; Thu, 25 Apr 2024 11:49:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714045800; cv=none; b=gDsLfxwBBmeKvooEYvq2Ei+rDe2qM5UCu8wJIVi6hr8AxCZmx5ODWI3bDQN7M4gKJ2lPqhhX3J7T2GKAtRpgMIcI+b3qmrwsvDhRgxf7kRiR0OY5WDzMCfd8/nPv0b1XX/CcQS0MvVgxOUhe7dtY3C7WNtTDGztH/iSPnfV08wU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714045800; c=relaxed/simple; bh=P8V7MCi9hduS/hZkRXSgoYkKYCb9Aj7iqmWztCrkDM4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Hk4hVYA1IkLEdEFXYEclNlangfh+C/LpNMbGBKy4w3Puyf0mDwcBW7+XoMgtMEJVo6ApdLUDLEa9s7+XIgIKh9Siwa0RLob1JZ5pGfdVxpEXN2MJS0XLux6K+maSL3CwZbeVxyEhaS/kX1D/DB1/n8bkQ1brQyigK7zyjy6sNWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=XRFkJtJW; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=Oifw9qpN855aTC4DmsgN7sJLcbfvYepEMTuQVWv2urU=; b=XRFkJtJWZj5kAwdOO6wmYxN4wd UwxVp5cVEbLRnswZP16F810uwmr2MZwOo5ksRiuMLd/eRnvXCEpiU5DQsF8FAk3KveUsv7JiFguLb DNhbHxWiAodeawjNXlEX0fB5vWCCCsgP5PgxwbRBoklQXy0UraPF6/pZHUZ9RuOHsna/qukGHX+s4 qMd2e9GVZQRrjTXRPo4Uehh8+6WB2g96wt7sOoafXC5qqngz5jPXu6fwJJPM7wAQLezuFxoU+RF3h +aiKc6+raTVCSG0K0n0rA8bsaxaUDcP3AUF7gjW9OGv9upPCRCmm+7SjqGRjTiSpsN9elEEdpiZ1t gkimiX0Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzxbp-0000000ErD3-2v8o; Thu, 25 Apr 2024 11:49:50 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 575D6300439; Thu, 25 Apr 2024 13:49:49 +0200 (CEST) Date: Thu, 25 Apr 2024 13:49:49 +0200 From: Peter Zijlstra To: Luis Machado Cc: mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, kprateek.nayak@amd.com, wuyun.abel@bytedance.com, tglx@linutronix.de, efault@gmx.de, nd , John Stultz Subject: Re: [RFC][PATCH 08/10] sched/fair: Implement delayed dequeue Message-ID: <20240425114949.GH12673@noisy.programming.kicks-ass.net> References: <20240405102754.435410987@infradead.org> <20240405110010.631664251@infradead.org> <3888d7c8-660e-479c-8c10-8295204e5f36@arm.com> <1461277e-af68-41e7-947c-9178b55810b1@arm.com> <20240425104220.GE21980@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240425104220.GE21980@noisy.programming.kicks-ass.net> On Thu, Apr 25, 2024 at 12:42:20PM +0200, Peter Zijlstra wrote: > > I wonder if the delayed dequeue logic is having an unwanted effect on the calculation of > > utilization/load of the runqueue and, as a consequence, we're scheduling things to run on > > higher OPP's in the big cores, leading to poor decisions for energy efficiency. > > Notably util_est_update() gets delayed. Given we don't actually do an > enqueue when a delayed task gets woken, it didn't seem to make sense to > update that sooner. The PELT runnable values will be inflated because of delayed dequeue. cpu_util() uses those in the @boost case, and as such this can indeed affect things. This can also slightly affect the cgroup case, but since the delay goes away as contention goes away, and the cgroup case must already assume worst case overlap, this seems limited. /me goes ponder things moar.