Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp77945lqj; Wed, 10 Apr 2024 04:46:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeJoXa9/CAoGLDKNRUYnnzrL+vmpDITf/8fHdiqP0w9gGu4h0qc5v5eTAdnLuVtBX+6TrQjCKQzpfKnmcuQGKK0QNhMb+ZvaWFTo0NAg== X-Google-Smtp-Source: AGHT+IERqFYcpqsWVAskDq8QKGCdhObYsOD3u1h2D73VwbUX/44wJYhfhbYtbjPhfUubBAcqzxR5 X-Received: by 2002:a05:6a00:2d13:b0:6ed:2f0d:8d73 with SMTP id fa19-20020a056a002d1300b006ed2f0d8d73mr3328009pfb.3.1712749590475; Wed, 10 Apr 2024 04:46:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712749590; cv=pass; d=google.com; s=arc-20160816; b=yt6/M+0h6G+neHDxi0oVMpuSPhuE53gbZEr1Tnn4fdl7UGThAMbkpnm/Tzn2r3DPVv LUX3tfZGQZ0g7f0P91ckn8tY8dLyJbbgyHJoM5LehsNzsslV1hArH0SYzY3amFBUVI9m 2EbtlejD1wuyNNZ2omyIU9RuNIEmq4Kgqe1fUQA0AoQ42riPplRVMP3eJnhJbiVjhSi1 7TzylxoAFvdno8veiCDgYno2a+FGHYtwRLauMXLAd/tq+aP90zP4DHIwi/9MKnO4NqmZ hvyBaVjMA08aUX2FHAlcmYxFNKSXX9RozCEENrMzmMNCQEVTTXtkRhy42Hiqb7R7wgRn naYw== 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=CU+986Z11w4Ij4sQmxpqlfXUo1dZIJLGs3jAPqkZ2zc=; fh=4sx6YCW7Tm3OWTA0LmhhvgvRH+fVU2Y4mD/GQN3PFvo=; b=O5OHKI+kt6LEg1aGLYwF6zK5/K67HYzEI0vI/Sb3UvYVfWTFuuz9T75Ip1dltCsZFn xEwiYyRA5XjjONh6EBmuI2o00SrjE4egJzhCJZdRLjbFYc4dOiqD/rZiI4gKspyx0tey LjsaAKKpmH8pwnycS7w6HvVzre4bwSdfUbMtfimuNEmmdOoHexho3mNTglD6E/rb4fF8 ev3MWE8ilE+LSQRJV7Sf3BvO+1zNOTpA900RJ0VVZiqEMzTSoKlzYuEQhvefTrGI92Hp HqT3JodrEsLMikPWvm7wF0xlB7SpT8M2WPmOzYaUc34yaPPaVy2hUw5xbVoVmpiOntbC qUOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lxFQ+Jli; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-138430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138430-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n18-20020a638f12000000b005f07f35d484si10385423pgd.755.2024.04.10.04.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lxFQ+Jli; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-138430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138430-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 28761281F80 for ; Wed, 10 Apr 2024 11:46:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1828D15AAC8; Wed, 10 Apr 2024 11:46:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="lxFQ+Jli" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 A3CC21591F3; Wed, 10 Apr 2024 11:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749582; cv=none; b=bVsC0zU65VoyvovKRspscP33a7Do6WrqRQo2rWvwCWuamM/8wD2teMTVwWPNzeOuLLLW+YNuSq3xDGon8peNZ+fSEKarwB9AS3qNATX5/U9vDkLk63Xhv11t8zxMmr+HnjL/yq+OPcfd0TrZspTzwxsb6geld6JmEtJ7skD2org= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749582; c=relaxed/simple; bh=q4saJN2PRER/qiy0BEUip5pqKVwYn/d8JY/2VLWe7Js=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WVkx++fbvkj7UisXMfMQBAy0XXs3mNJxSeSeb3ZF/DmF1e+EZOtL8ft6WWFaZ21C2ZatygWycHNUI1wWsIeW59lHdjgU+QS/fns3QM5SxGzQThgHzyDNWrRx0OnPHwL8m48h0YwhIutiTrjbeHBaa3l0axTsNopCaRuKDRHUZmg= 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=lxFQ+Jli; arc=none smtp.client-ip=90.155.50.34 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=casper.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=CU+986Z11w4Ij4sQmxpqlfXUo1dZIJLGs3jAPqkZ2zc=; b=lxFQ+JlibqTHj/kNTPs93Fu9eP B09i1SNIvuDfU+GhSQL6AdlcTXAiNblA+/Dpdt1l7XHfrVhouFp+TT5QwEMRHdjuvlTwowAMaZ1nO T3rbqq9Y1yXahLmsVMhClmuHQ0zp0zi/EzC24jt9hTdCU2zUfAmQZfS7jEQwKor+x0rwYZcrdKPpN 3i/bP+Njz9xn2i9S0Ic9nmqniCbwY6DRJfOV3QUhsuGDYRkt5W4OtnBoqKhIzJ0nmT1oroVs22C5T RMAQiu+MmMpjTk4KL4L8IcVAOcmybCz3yQ71kTE0vcStgduzIxr7faS4LEkMgxsjNR+DbO9OwB83e SxflROWw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruWP3-00000004NOi-2SqU; Wed, 10 Apr 2024 11:46:09 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 397663004D5; Wed, 10 Apr 2024 13:46:09 +0200 (CEST) Date: Wed, 10 Apr 2024 13:46:09 +0200 From: Peter Zijlstra To: Atul Kumar Pant 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, rafael@kernel.org, daniel.lezcano@linaro.org, kernel@quicinc.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [RFC PATCH 0/2] Disable RT-throttling for idle-inject threads Message-ID: <20240410114609.GA40213@noisy.programming.kicks-ass.net> References: <20240410045417.3048209-1-quic_atulpant@quicinc.com> <20240410085441.GA21455@noisy.programming.kicks-ass.net> <20240410112933.GA3190796@hu-atulpant-hyd.qualcomm.com> 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: <20240410112933.GA3190796@hu-atulpant-hyd.qualcomm.com> On Wed, Apr 10, 2024 at 04:59:33PM +0530, Atul Kumar Pant wrote: > Hi Peter, > We are trying to add support for true 100% idle-injection ratio from > idle-injection framework. Yeah, I got that. I'm saying that is broken. Both from a requirement POV and an implementation POV. If your hardware needs 100% idle injection that means CPU availability is unreliable and everything that relies on CPU-masks will be broken. Furthermore, since idle-injection is build on top of FIFO, anything with a higher priority (DL, stop) will simply preempt it anyway. And, as already mentioned, hogging the system with FIFO will break things. So I would *very* strongly urge you to push back on whoever thought this is 'needed'. This is *bad* hardware. > It might happen that we want to run idle cycles for > slightly more time than permitted by RT-bandwidth control. The thing is configurable for a reason. > We understand the > concern about it hogging the cpu. Will it be better if we make it a choice for > the user who uses idle-inject framework, whether to have true 100% > idle-injection support or not? None of the above mentioned issues will magically go away. Run a 100% FIFO task for an indeterminate amount of time and you get to keep the pieces. Also, we'll be replacing the throttling code with DL servers 'soonish' at which point all this will stop working anyway, since DL will preempt anything FIFO, including your idle injection crud.