From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796223362; b=VkBVrSrhkeLrf0KER+UTK2fc8XTv3QQq2qQpwvReGNy0tbYIvPEQM/UDHcciujl6TyUC NTPHeneOs79nZM8erhzVj+is4SpKdK3Cf6OJ8LK4dwfX5vbc8Z7OYCUNxKW5fcI2jTzyb UVYICSwKEto4MMtjI2/YBeA3+e/dXjGCIPP8V1QRmDWJzpRNoiu9J6rWifGQMQXpUqTut kXrJA29YAUtRe9iKmBx1weJFR7AdcWk0zAeD9vRNgo63/2tSGS3LeihC0aIm1lL3d9sxA ZG1o/Ey0oMK5FNMB+EOtzANfa/dxEde8JfvoYS7kxtyRW7luSGyVUbx/CGFvrhAAeiA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796223362; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=/AjsvfSoIAcI+oxzvGlaDXg8V0CI240JTvO64vxYZHQ=; b=xcYFeoqqsDBG4okkyCegd+hhuDnhlGo7K0e1rKoB/Xrj5RAah1JNwLeFlaf9tjsbU0Gl 7ocE10rOMVsYPVN8TnCXQURMscYmZ5/jjrao2dHlqXF/te9t5yoR8yGJu5cdSD2DHo5rN wHYdvWUUPBVDpKJnI2N2+NVK3Blr0xtj1Ef7E4YkkvUNl9g13NggerJKf74ouEdIj71/u 6jqM2JDJo6voebUYNQmYGABSbVmjdpqtYT6UhnG0aXaksLXzL57hy7iBohEDmuWYj6AKp JtWI3dMfKCJKBO+xKNhBTZaN9qiwUBacWy4Z1Bl9loZg2nkrwprJuF+CaGgy1mdktzw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=k769iEzJ; arc=none smtp.remote-ip=209.85.214.181 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B951606A337 for ; Wed, 2 Dec 2026 14:56:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5B951606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=k769iEzJ Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2f0d23553b1so9925395ad.2 for ; Wed, 02 Dec 2026 06:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796223362; x=1796828162; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/AjsvfSoIAcI+oxzvGlaDXg8V0CI240JTvO64vxYZHQ=; b=k769iEzJRK2aeOa+4iSHkBe8Ke1udAMFLgElV2ix4M/nZE74geb5wdhFY9yApagzOq 8T5jJOU8cDA8mFKxeiRqiBEmg5PkUc7uFKv6uOgk0Uze62CrWg9LaNcObxIgXKBznT9W 65plKQf5EQqQDkkXG8CJexRskN/COrPvZKV11XcX5r6z5qGon1qVH+DSuiUaUHXQqdpj XKMclV7QWu8e2v+aaY4UCRzt81Wz9WaKZbTRzGQbCOCYBpRhaa4+jsyL/idYRreopUIX emXD1PWMncFCLGOgS6DfX71zTaOV5xXo63Y815cyfayLV5mREitpfdHY9vUveJmAAYTS JP2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796223362; x=1796828162; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=/AjsvfSoIAcI+oxzvGlaDXg8V0CI240JTvO64vxYZHQ=; b=LtZVctbYRu4wHHDZLZ1pcEPcCHBEg+2oTryWBzvrC+RWa5/oOdKQKUubu31pQWWXEM Zt40PbAHLxp4y3GFP3yYGdwvTQPLESSXo3TMi3DKgdwFSRplQq+lHQxhU/GX0IflChn8 w9RohJ8xSOCkFHnBa+sxneSGE5E/Wbisf8Y+ZNVPUW9Q2GRHmFouZeLhvYIxXfVNQJ+t Y0Ugg6l0AbBNmfJy/RKfFdZ7PLJIBx7jaf1WBQrUcdcjG0gSoGzoeiz1PEvJK29HVqUl 1wN00CCgDDDeoPMUceoCXpv9ucga7kAGxk4zS/6dtkrDR4435S/sAtoSft2pfj7PI8pC Zs3A== X-Forwarded-Encrypted: i=1; AL+hErF8yi6TCd5yhC3SI6zIE/tY1Uyof5qnqGOOSBsMNAzIXWSEBOulME1iRwzfIGeNf6JoNADiC9AzhQ==@vger.kernel.org X-Gm-Message-State: APuU4Z9QuKq5bueypvVc1Joqq8xis5AxbS0QA32ifXT6fiZ+AztXFzqp cJv20nBw9Zk+dZGfQRUVTfWaNZ5OG7MJogToxFFApHKL0RTmxX9RMjPO1bJ2mug+c5T4Zg== X-Gm-Gg: AZFdTZdVI880nwx0u383S52qVmZajmlKEMziO/32vmv4bqzrm0WA6Lp8Iq2HGbRvMBR e3rBq5ygTe2S9YepSjCjsptdZL3sD6OgX8DHz5hZ22jowwU04wl+vcKF3+7xC9u4lVZ67UeaIqF ddh/9rPma15uRssA04E09B7XBBaCjW3fIZCAD4UBnce/Fe+oyOcj8R2Y4+n+5Q3rSjZ67C7OFQx y+zVC9OmPjXhVCBWQn+7e+p15h12ol22G3A7AgF6B0yGwi2vgHwh2fpxOvFtHyfsNxWOwv/UtrU KNV+vVNyzWeLFnbQvN5YbDofV99kklogPoH7YZTsWTSVxw9nLj+MTWiZb+ydiEJMvVBnadeSs/5 /8PwPJ8MJLChCP/R+MLlEh0oOO3WJ+zFb6qdarIF/KNT3/zb2hPOR+wYFeQXnYpSHuOr8PJAea4 TuITDmTQyEkvWO8gabBFZa7tuBVSO1QhLz0v4LaW8nGbkO6xNg7tyHathI3+KTHwSPFhY4mbKwg 1YIkfBVVlbkaFu8gyFLD6YF83SOFVAiYVs6c6IrkwTDY7yEyLU7uNLD1fdJ4NCcY/gzJA/DUg8/ u1Vi5dM1QGqds9qGEK11pRlRV4Mp1TviCquB4QKf0+FS1Io6yV+/oJqmeasgvbQFswZygcML2E9 b8TM1fq3aLiQif4v5onoI+s3qL2SkoN+kk9Z2o3JxUuiPRh8fJqKDmVYQ/vGwjCRPR26bq9VVXZ fpeokJFyrkvXeG/4yVAYajKjTE9Rw3ikOPOCpWS0w/676GGIgXKNIqug3wmw+b1KyTThcieRCY5 A== X-Received: by 2002:a17:902:e847:b0:2e9:6468:2005 with SMTP id d9443c01a7336-2f03f117acfmr655214035ad.2.1796223361526; Wed, 02 Dec 2026 06:56:01 -0800 (PST) Received: from cachyos-aura ([2409:40f3:1401:f75f:3f:38d6:378a:6978]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f14fc8csm200323295ad.74.2026.12.02.06.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 06:56:01 -0800 (PST) From: Navon John Lukose To: Christian Loehle Cc: "Rafael J. Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpuidle: teo: Keep the tick when intercepts predict a short idle period Date: Wed, 2 Dec 2026 20:25:53 +0530 Message-ID: <20261202145553.33595-1-navonjohnlukose@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <6d47fcee-f243-419e-9326-788cc90eeb2c@arm.com> References: <20261202082511.1475746-1-navonjohnlukose@gmail.com> <6d47fcee-f243-419e-9326-788cc90eeb2c@arm.com> X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 2 Dec 2026 12:37:32 +0000, Christian Loehle wrote: > thanks for the patch, I think it makes sense. > Do you mind just dumping the state counts / duration deltas, IMO that > would be more readable. Sure. Stock -> patched, summed over all 16 CPUs per second of wall time. Residency is the share of total CPU time spent in the state. above counts stays shorter than the state's own target residency, below counts stays long enough for the next deeper state's (381 us for C1, 3144 us for C2). The machine has 16 CPUs without SMT: 6 P-cores, 8 E-cores and 2 LP E-cores. The pipe and timer loads ran on the cores named below; all other CPUs, the LP E-cores included, only saw background activity. Idle, display off, 7 stock / 8 patched interleaved rounds of 100 s (one noisy stock round was dropped), the same runs as the changelog numbers: entries/s residency % above/s below/s POLL 0.3 -> 0.3 0.00 -> 0.00 0.0 -> 0.0 0.2 -> 0.2 C1 139.6 -> 110.8 3.06 -> 0.21 0.3 -> 0.3 43.1 -> 30.6 C2 121.5 -> 104.8 3.27 -> 2.57 11.4 -> 7.8 12.8 -> 8.6 C3 472.2 -> 501.8 92.99 -> 96.59 115.4 -> 118.2 0.0 -> 0.0 Periodic loads, 6 interleaved rounds of 45 s each. Pipe wakeups every 1.5 ms, writer and reader on E-cores 7 and 9: entries/s residency % above/s below/s POLL 2.8 -> 5.0 0.00 -> 0.00 0.0 -> 0.0 2.2 -> 4.2 C1 117.3 -> 303.9 2.24 -> 0.88 3.0 -> 4.5 34.9 -> 140.3 C2 1490.2 -> 1452.4 13.52 -> 12.79 36.3 -> 60.7 2.7 -> 2.7 C3 286.2 -> 292.5 83.90 -> 85.98 57.0 -> 57.3 0.0 -> 0.0 Pipe wakeups every 2 ms, writer and reader on E-cores 7 and 9: entries/s residency % above/s below/s POLL 2.3 -> 3.3 0.00 -> 0.00 0.0 -> 0.0 2.0 -> 2.8 C1 81.4 -> 196.1 1.57 -> 0.59 2.1 -> 4.4 28.4 -> 108.3 C2 1060.7 -> 1041.9 13.14 -> 13.01 10.1 -> 10.1 2.1 -> 2.4 C3 285.4 -> 263.6 85.00 -> 86.11 59.5 -> 51.6 0.0 -> 0.0 Pipe wakeups every 2.5 ms, writer and reader on E-cores 7 and 9: entries/s residency % above/s below/s POLL 3.3 -> 3.9 0.00 -> 0.00 0.0 -> 0.0 3.1 -> 3.6 C1 90.6 -> 145.6 1.71 -> 0.41 3.2 -> 4.0 29.0 -> 66.2 C2 874.0 -> 871.8 13.32 -> 13.29 12.2 -> 11.4 2.5 -> 2.9 C3 303.9 -> 291.5 84.69 -> 86.02 62.7 -> 63.9 0.0 -> 0.0 Pipe wakeups every 3 ms, writer and reader on P-cores 2 and 4: entries/s residency % above/s below/s POLL 4.8 -> 3.3 0.00 -> 0.00 0.0 -> 0.0 3.6 -> 2.7 C1 93.0 -> 148.5 1.86 -> 0.48 3.7 -> 2.8 30.7 -> 80.2 C2 749.1 -> 731.3 13.31 -> 13.19 12.1 -> 8.8 3.0 -> 3.1 C3 293.1 -> 282.6 84.50 -> 86.01 63.6 -> 60.4 0.0 -> 0.0 Timer wakeups every 2 ms on P-core 3: entries/s residency % above/s below/s POLL 3.5 -> 10.5 0.00 -> 0.00 0.0 -> 0.0 2.8 -> 10.2 C1 87.2 -> 146.4 2.05 -> 0.45 4.0 -> 2.9 31.1 -> 70.4 C2 568.5 -> 550.2 7.42 -> 7.20 6.3 -> 7.4 3.5 -> 3.3 C3 295.0 -> 294.2 90.14 -> 91.95 61.3 -> 58.1 0.0 -> 0.0 Under the periodic loads C1 is entered more often and its below count rises because a wrong C1 pick now ends at the next tick and teo selects again, instead of lasting until the next timer. below counts stays rather than time, and about half of the C1 stays reach C2's 381 us, so the count goes up while C1 residency drops by a factor of 2.5 to 4.5 (mean C1 stay 3.0-3.8 ms -> 0.45-0.52 ms). If any other measurements would help, I can run them. Navon