Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp138561lqj; Wed, 10 Apr 2024 06:31:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEPfwM+2u8ZAcf4/hUj4yurYTd4FP07PLEGUuCSxz6aZvlu1qinvsrkFgDMdaYy3yW/JpYvGpdi1TBa4U2xKv74K3o2RRaaNnPE0TBGQ== X-Google-Smtp-Source: AGHT+IG8gxWtQo/DNj+jgeRFZuSeQQMr6T7J3fnSSmTMRFWyyV3ksPRTHQCSm5FV73loThpeY5hF X-Received: by 2002:a17:902:7808:b0:1e4:2d43:a306 with SMTP id p8-20020a170902780800b001e42d43a306mr2121961pll.12.1712755912754; Wed, 10 Apr 2024 06:31:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712755912; cv=pass; d=google.com; s=arc-20160816; b=gk1tr80YmVOcHFrrKtsj9Rw8DHe0yE37bG0uUuK3aqMqeHY5eprsp4gXQTrD2eVIJi T5/ksgytKLp+IjSUvHd6koizXJgjYMf6EZE8xjrZfLVUCUvREaYmmr5A+rWrilxodD30 Xzt0n8lT1bzVLIa/1CR1JlpXj88pr0xbQ3HXd1gUon1/H8zIyfcdQwTdW0m4wiXmbMUw SALNo/XtlOw3nK+k9cOsYM+nf3jIClmH+rzXXKQN380s9aBQ9JQ1q0Krx30guJriAq1P u3qgn6fOxtGjbKs0rGUxfAogUN7UewtCjdBOm8EtkKhcp3mEbw8XspekVJbniioYcOaP icow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=Qle9jg7AFcbeBpGzgsmxKz+2isZX/7SnmUkrwuNJ5AU=; fh=SAxTtfi4LHzoqnspiGLL8AK0KdZ0dHKTfKljKmNfOtU=; b=t1hR4PtSzviODHZP+8MtbdM4qaBWpjots2tOVRirXuIyAMGz5jdGbFKDTO7B/LMbAC /3Fm58jGQ5CEpRp5DYZdzfOXg48nx82P/tk2NjsKzGft81er9bvK0XFc/uK4FQTBx5tU Plm4FjEYlqZytxZdVILHkAxqiPrtdr6SxjwSHpTnGjXzOz+gQwj90BB3AmOfJ7f28y8J tzP140ZQR2JtOh7ujAaNTxS7fHNqRZOwFUB6yn8sI5qRcbjqUXoTyKefgyfU7A08sY83 scUDyyLvVrIW1dHYI0Hq9wIGvzT8KMpq+uAjZzYuB5tnvYHrEgkSPYs7Ukge7PSzdT49 DQYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-138602-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138602-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w3-20020a170902c78300b001dd38bd5f72si10324298pla.614.2024.04.10.06.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 06:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138602-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-138602-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138602-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 B615728C835 for ; Wed, 10 Apr 2024 13:29:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F4FC15ECE2; Wed, 10 Apr 2024 13:28:53 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 23DAF15ADA2; Wed, 10 Apr 2024 13:28:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755733; cv=none; b=MaPK4UXADoF4xwzPeVsPPRK3mO/RMPjw1eh/hbZykdFgYGq13OdiovF3aTCB2ay/DOZUn9wJXTt7K+tGJWDsOCI61CA/clo71jIS513QEuQzJyrJC2tVk1PS17tU/DcysMtOtR/1OGkVy4pKggWpbD50lvpzSMMTf6D6vYWufKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755733; c=relaxed/simple; bh=50/9i2W7iSqDXVAobdGAJmhstPOEw6Q5CSVcHwfSkf8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F2YwhLhocU43fzvx03qLaolRWk9K9Z9DqyryyL4S9g0TMkwyQCPB7qvSJ496EQMJoXLmQkkawQa1UgXMllvOYDoFqXWO/ZzE+6KiarghC6neqnBFgO41YqWrohDmNMtgIyR3XqjAp4mA1v7EMM00hygjiap3VEsxZym7Z6IycFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45753C433F1; Wed, 10 Apr 2024 13:28:51 +0000 (UTC) Date: Wed, 10 Apr 2024 09:31:27 -0400 From: Steven Rostedt To: Atul Pant Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, 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: <20240410093127.29e81d9f@gandalf.local.home> In-Reply-To: <20240410045417.3048209-1-quic_atulpant@quicinc.com> References: <20240410045417.3048209-1-quic_atulpant@quicinc.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Wed, 10 Apr 2024 10:24:15 +0530 Atul Pant wrote: > We are trying to implement a solution for thermal mitigation by using > idle injection on CPUs. However we face some limitations with the > current idle-inject framework. As per our need, we want to start > injecting idle cycles on a cpu for indefinite time (until the > temperature/power of the CPU falls below a threshold). This will allow > to keep the hot CPUs in the sleep state until we see improvement in > temperature/power. If we set idle duration to a large value or have an > idle-injection ratio of 100%, then the idle-inject RT thread suffers > from RT throttling. This results in the CPU exiting from the sleep state > and consume some power. > > To solve this limitation, we propose a solution to disable RT-throttling > whenever idle-inject threads run. We achieve this by not accounting the > runtime for the idle-inject threads. I'm going to assume that when dl-server is finally accepted, this will no longer be an issue for you? https://lore.kernel.org/all/cover.1699095159.git.bristot@kernel.org/ -- Steve