Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp887716lqt; Fri, 7 Jun 2024 01:22:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbv1kaBewEPXk4oWcqOvzcbon4Lz98h3taTH1AgwDAReiOS4Q0QQYPORIMx8fwLjzKiQYrm+RY+u8AyCE0W1eWGzZlkrwIP2ZkIt+new== X-Google-Smtp-Source: AGHT+IEG+sO6dHpqqBBSuZ4Wm2zxA9gD0CaFFMs2j/sswVWeSURU5PIY6rzg+tJ/i89YSqGxyTI3 X-Received: by 2002:a17:90a:fc83:b0:2c2:97c2:a765 with SMTP id 98e67ed59e1d1-2c2b8998024mr2923238a91.10.1717748551464; Fri, 07 Jun 2024 01:22:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717748551; cv=pass; d=google.com; s=arc-20160816; b=e47Hv0W9/CCKyDyMdJZpKtq7TwYuCIX+AILSXnA4erS4fnamokVKviLUm9vXJKozOW +VWvr7dCWQsw6x9fnRKHzTbbYZJwTN4sxlOOmKf46g8CtiAH6efQZoHNCmSRYDZa0lWr rDvKN2PyWrsLVMFFk1RX14e2K8MceYv8TXUW8cvwOBnKI79t/bIwoppQYp1NMRKX+pBx 7JPFzeE515seLVo2jbDSTBC/m+fkjkIuy+WMYl4NxdLZ+sS3LXVa6DcRdkxjucg73R8U n/V0gUHbAHJ5QTx4mHPm76xq3+sgxrlc7ulF8f5LNW8OcZfsFeZJ8aQ/xhZZkhLO6sNI nhHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=qfO5B+ddYaxpzHvaEPVjfRrfPkXTjGkIeqggJGx9Ymk=; fh=0tgznX1k3x8A5jfXUePdir7iJw9zjUOLDDhEw/TcVtk=; b=upeY0jqANgyFMVFB1SfKttTW1+SjqgPQ2nkM6OXPPQ+9B2xh89AMPk5Zfph/o6OyEL k1JXPAxAnYQ+/cVkCBOZsk/ps4nU/HzKB06ngJoxA1R9jXkN3WGHjiE3MTv1exqMDKX/ d3MeaYLM1QGj+w+CJbvHEvhm3XL0eSNkT6SvEr++WpKRnyJMbiW1xDh+8tqvdILlfUnT BRF74U0JmQIIVw/4YVlkyweCJf3YzKFqecYo0GFhML+yNZjL92eRzybhRHTSRAsbN4Ma w0/UUq83pRZqkGCt4rmF8wR5OAboSfRwmJc2rUc0gdrMTFf+vPqR1s94qQfpS4JIKZaV En2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-205581-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c29c4a077fsi2279543a91.169.2024.06.07.01.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205581-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 spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-205581-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 A3F43283BD4 for ; Fri, 7 Jun 2024 08:01:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D83E815AD86; Fri, 7 Jun 2024 08:01:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2EF715AAC7; Fri, 7 Jun 2024 08:01:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717747301; cv=none; b=fMO13MWTqqsLUdAwft89rCKy0AR27upqw9jd+/WRTa3qx7Awktg98ozuVo16F1JmFqr+OicPyXYuy32/3sDOFyFSWC8y3gzVGi7z21RjpDTdFHLtOVi1lk4xUzNhKW11a7KkkKF2Z0RugBI7pq4GXddEMV84PF81GvzsMrhXvwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717747301; c=relaxed/simple; bh=qfO5B+ddYaxpzHvaEPVjfRrfPkXTjGkIeqggJGx9Ymk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oCUu0OsDzyVoRVK/LEGMLHuwv6KI+qrKP7VY83fYPmlvMTlmvmsagMqFb/a0SJKfybcHdeo8J3g52hhm44e2pHF10bVbBffpXiz1oQ3yyWVj6s2xr7fm2Sv+p81NWnKIVrMy3AsGM/8+sOwnu2d7oPbxwkpNW655uAMgzQgCzko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 438E32F4; Fri, 7 Jun 2024 01:02:03 -0700 (PDT) Received: from [192.168.2.88] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 204FB3F64C; Fri, 7 Jun 2024 01:01:36 -0700 (PDT) Message-ID: <19d87e24-7c2b-4396-9514-74150b896cf3@arm.com> Date: Fri, 7 Jun 2024 10:01:35 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] cpuidle: teo: Increase util-threshold To: Christian Loehle , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org Cc: vincent.guittot@linaro.org, qyousef@layalina.io, peterz@infradead.org, daniel.lezcano@linaro.org, anna-maria@linutronix.de, kajetan.puchalski@arm.com, lukasz.luba@arm.com References: <20240606090050.327614-1-christian.loehle@arm.com> <20240606090050.327614-2-christian.loehle@arm.com> Content-Language: en-US From: Dietmar Eggemann In-Reply-To: <20240606090050.327614-2-christian.loehle@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 06/06/2024 11:00, Christian Loehle wrote: > Increase the util-threshold by a lot as it was low enough for some > minor load to always be active, especially on smaller CPUs. We see the blocked part of the CPU utilization as something telling the task scheduler that the corresponding tasks might be runnable soon again on this CPU. This model seems to be used here as well. I guess folks are still debating whether the amount of blocked utilization is a good enough indicator for the length of idle time. > For small cap CPUs (Pixel6) the util threshold is as low as 1. > For CPUs of capacity <64 it is 0. So ensure it is at a minimum, too. So before this threshold was 16 on a 1024 CPU, now it's 256? A <= 200 CPU has now a threshold of 50. Where do those numbers come from? Just from running another workload on a specific device? [...]