From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796223362; b=h7b2pHQVLfHyt/4hWIdBka0nQVMwQC+kbYkjNRQOziTRxzOg2XTODwdkaXmKvIRg7AI3 Y+3TyQOW4vLfZqL5Bex9rrWyPgDk0mVMGu4ZNVSsPbqv9SMpXyJF28oLLEnccdB0/29TV +CJxvRlFQY8TioSIsMEd8IbuaF0hfu8BG2WXvOMD/nx0S8Z3ESVj4tSfAosG2obIoWyWJ pRJ7K0WP159Dd87YodQ4/PVUDLYiaYwnomCkQdcWm2UYj21izWd1EdxiPGDbT6vmJW9IP QBG1UMmo+NX5qhXocRJgRWFyPIga0qpDU4qai2yDxu2LO/rRL/MA4H4rk8Wt/c8V95g== 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=U/4Nto3biP5blii9hnmOPRtgEqE5SjIpoDyv0PQp7ZK1W6zIee6daSs4UmfAm9bvF1Lw CziHvQCxG2/AcYA7nEejwZawgXlqu2kHt8wfsTufSxZ4UBVc31Q25jsVgqMMhyU8VS4u6 WbHqY0gI2DKLuaTv07JbHkC7oSolgO4WJWvGGu+jY7kGa0RlVJyIfz42auWkpZH9nZwiW NLQivyHHW1X81yFSO2GfpE9sC8FKeswj/8byJmBwCRGEUNvbPglAPANv/FmEix/qrKfDG kpSQZNXPJRmr6MeWj5/1AuWFUWkzmovj8XKO4T9lM1CqWVBF2z1nWhkj17N5+4r2/ng== 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.180 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 62735606A33A for ; Wed, 2 Dec 2026 14:56:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 62735606A33A 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-f180.google.com with SMTP id d9443c01a7336-2f1713db53aso1649725ad.1 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=T2L9ftKiug6sELQOPLgBBXpq+SM/XRsQFBILlO/2J+C3ftN8x6XST6q5T5P55+a7TL 1KNZfPDu2PuCxRCVfYvq80S63M4/YiW27vGJ4FVNieoC51mI2f8Lui2z/XZu+utPkq2t xkNxa3h9j1WWjFYHjqHv7O7bRufhws2+8uNSIiAWbOR0+aJjYVZK4GAUgfJvb8fbECRr ISEyus+nITwurybDA0xApgoinY/v/sSaW+ICYwRAuemLzAVP6ArPsjugWHxkGi/PLYEH GqfoTgw+35OpDxJqp12tfVFAOh4m5z7c52t9lR7jhRi9pLKqlNyYb0bFnLkB4K8IPdWk N9XQ== X-Forwarded-Encrypted: i=1; AL+hErG9B5nEm6MQSOPrWzmxztf9wmlAk7fKaascC5lGl0REpW12h3rNbi/I0FIm9XKCWO31BRsvUbLWPQlN3XY=@vger.kernel.org X-Gm-Message-State: APuU4Z9KBysv+4xYDkLi8wj69ZuZrgT3Wu35aEqAgn0gJd2H9EVWC4sE mcPJJY6mKyQnevh27UC2BhEo2B0a7FijkEfQ4Qrn4wao8Noi2malfTby X-Gm-Gg: AZFdTZePXTB8CRugfBTbDOpAr1TFr3Dk3N2kr9+l5ZGJ2mQXbaHjv+Vwyo/gTpPPjmc OwGSrEL+0hYcp1XZcE0nFv56hvTBI8INoaPmUSr9Vn8w+4qePl0PNyC0xQR5/J00LUei0oHwkhK EGMTHLZ+tn/Z3f1kdRPDKxgxwbx6gHcgARn15M8PYAkzmidRyDT5qFY8KG31dvN86llpnV+e2LK MDFdZPsonV4voh5/Xfc6j4D2rK2bDN7Q4OkZVHtD3rNn16s9AFTh1eshcLJdxjWa7Ddwo7LjjEE UXOtxRY3rTV+z6L81sR47PTlwUTO8N6/9oCn9YYbUXTy6M3pox2VwgeHTIZFNdelZ045qP+Y+lW wueHGnnLf2gLN6L8crKluZ5K6Ow/zujQ4qKtdXkci6Kv/WIHQsN00JkRs0+wmDZ7ZWLknT3s5AL 3LYAIO2mZ0NWj4pbvEkc/vDn3Y0aoYp0+IKxSu9U42eZBR25yD037THg1mMrEd3QCfW9GKjUOUp AvhFAT8fkcAIe4X5tg420OdAPfssmctPy5bhWAkj3uxuRdLMJO8NlkFQLOoGNFc7IEqrA9HbDZf n85s0mE5IpE6626u85fGASCToRjctXNkgSs33Tk+AL473RyGsbiF8Wf5vSpqgfxh76SffC7Enys jgtUscb/NbQmaSKiQ+768ndvutUlp3cLsLD3CmLaIf8ROASzWGt9DHzJvFESg1Xl6i7ASDys1Jm B93v38blK+yhIYAavh2gv6mgg8BZZJofcHGyBOuOb5/n2tcYQpvFvW5+cxLR8gUM0LgRxkqun5k w== 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-kernel@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