Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3057600rwb; Mon, 16 Jan 2023 03:11:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXv2rR103PaJsA/gxNHjpNwFjXCb5BLVcitCag1xFMjHXl0M75ZXtMXyYFdS07j8gzEKlcOF X-Received: by 2002:a05:6a20:d705:b0:b6:a9f3:4f8c with SMTP id iz5-20020a056a20d70500b000b6a9f34f8cmr12394485pzb.13.1673867492034; Mon, 16 Jan 2023 03:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673867492; cv=none; d=google.com; s=arc-20160816; b=Y+QFbIrxvdZ3EBotw3CRjSLw9/XWqZ6f0WtQ2RlbvQnZYxdM0aDTYwE/uIslN1qNH+ Zsap0qt1nzRniIq0FXkJlhMiqeOLI2NQLrA52A5MjzSxxuWIl7EeFjQwYjZubphpaeZ3 ggHXxgNQtwDvCxwa2RHbysCjKNNzZru1XfcWxHDVshBb/Ej3rr1aAGvy0Ayb/S7t85cy 4Tl3FQ8FnrtL3gxzim5qg4mzsWjBmJIIIn9+JrESetdebRl3izViswofZm2KKTbxcEuQ trNskUN7iGf9ZXHFKT4xiHIY6cepRR+beUaObURXqUcSVwZgfIeyJ57EnizAMHbiC9JU vDmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=utBEhwz3I4xTt4VIWSQ2Wq24W/wWfrsA+dG2HY8SvPQ=; b=Ds+WjqHMj1ernZFsP8/37U/UmH/p6CDMnew5/L4FjlrnDF4o5ZgdPramQwYyfszdEu uDckT64SsEDf+rtbE48Igop3aFJV8MIOUXp8V/Qxd1XFrTTKKTb86/OZlzX2L7/p/Ybu LU8Ahi3B1KzpYg+q92tnaHqREs/C9KqhZx/M0jlAEw3S4PuHEydm96F87cvP6i176ri/ Mszee4b+V8OJw1TsR6kAK2kt4DpeA1RdKajrZ/wrtsdJ5OMhywnu55hhVHtzGQGFnm3f 2+17zu2+/2UJiRxXipUu9WPfCfJwrXbo/Bzl1UhvXesm7E2+OEqukZBEYyt2XNj2t82X 1b+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EhhufsTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h132-20020a636c8a000000b00478bf137d96si28692719pgc.462.2023.01.16.03.11.25; Mon, 16 Jan 2023 03:11:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EhhufsTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbjAPKIn (ORCPT + 51 others); Mon, 16 Jan 2023 05:08:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbjAPKH6 (ORCPT ); Mon, 16 Jan 2023 05:07:58 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45BF21A949 for ; Mon, 16 Jan 2023 02:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673863615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=utBEhwz3I4xTt4VIWSQ2Wq24W/wWfrsA+dG2HY8SvPQ=; b=EhhufsTqZI2ikEcJXAT7YoA52+wt9DMgfzuZgUCRDEUbnE3NNLpTgMbmNaKPOr/fYvTl9P 89/yZ6qTcwzim/P3Rrpdjtz5/udLAIjBOHN2eU4Zkjec3Iji4MgIO1kNTlEw41Ku/5S/cX mdpVwY+H4iH/r9t1Enac1vE22YjGg9k= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-247-FvWTvvOGNIu9JqzoZDfNdQ-1; Mon, 16 Jan 2023 05:06:53 -0500 X-MC-Unique: FvWTvvOGNIu9JqzoZDfNdQ-1 Received: by mail-ej1-f72.google.com with SMTP id hq7-20020a1709073f0700b0086fe36ed3d0so2031810ejc.3 for ; Mon, 16 Jan 2023 02:06:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=utBEhwz3I4xTt4VIWSQ2Wq24W/wWfrsA+dG2HY8SvPQ=; b=CAgiS7v7xIKm0320mMuoXDfLf9dKLUPSSKNl58p//UemhCjwOdb00FGrstcF1PdFtZ ew6ePf8ABVsoJjsSSfGc7XvKYIBEkLf+uBb7cLQpAUz25zqxjVmu75Y8ika7Yml+I9yo BVWsjNDqUv2UadPQ9CbyrbiP0Muun0xIE8FQrtes8tbfNZeJlobmyzV5vEAkPGO1TXIO mYLMMTOGmM4yYK6zv5pMkx28gPhdmVSA9MjjhdPV+EktQFCVL3polp/rC6Rx3vSiQbbX SPnp/r8Rz4SwkiPfiwvY14bIxhcVNs7+eo4MOnY23eZqPUuXFVdGB3iHklKefhZ5+Q5q UPLQ== X-Gm-Message-State: AFqh2koxLS5F1V2iJkHQz795CkW29G0a1e9/0PBFYcX8sFv4vx5HlA/M Lss6jtTL2D2yS1GASswbzk7ETiyh+ZJ92iYIyP8HJc9i0XfXL626eGWmKXrWlcKEDdz/tJoM/VF KlS1azaPie4bMd+2ktPnB2f41 X-Received: by 2002:a17:906:30d3:b0:7c1:1e5a:ed10 with SMTP id b19-20020a17090630d300b007c11e5aed10mr92086928ejb.8.1673863612297; Mon, 16 Jan 2023 02:06:52 -0800 (PST) X-Received: by 2002:a17:906:30d3:b0:7c1:1e5a:ed10 with SMTP id b19-20020a17090630d300b007c11e5aed10mr92086904ejb.8.1673863612011; Mon, 16 Jan 2023 02:06:52 -0800 (PST) Received: from [192.168.0.198] (host-79-52-203-188.retail.telecomitalia.it. [79.52.203.188]) by smtp.gmail.com with ESMTPSA id u1-20020a1709061da100b0086b7ffb3b92sm3363494ejh.205.2023.01.16.02.06.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 02:06:51 -0800 (PST) Message-ID: <3cd68923-660b-42d9-2fce-4cf5f9369d18@redhat.com> Date: Mon, 16 Jan 2023 11:06:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] sched/idle: Make idle poll dynamic per-cpu Content-Language: en-US To: Ingo Molnar , Peter Zijlstra Cc: Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Joe Mario , "Rafael J. Wysocki" References: <20230112162426.217522-1-bristot@kernel.org> From: Daniel Bristot de Oliveira In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/16/23 10:28, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >>> Urgh, can we please make this a cpuidle governor thing or so? So that >>> we don't need to invent new interfaces and such. >> >> I think the desired property here would be to make this interface on top >> of pretty much any governor. Ie. have a governor, but also a way to drop >> any CPU into idle-poll, overriding that. > > ... with the goal of having the best governor for power efficiency by > default - but also the ability to drop a handful of CPUs into the highest > performance / lowest latency idle mode. > > It's a special kind of nested policy, for workload exceptions. Yep, it is for the (extreme, but existing) case in which the user wants to skip idle driver machinery (and overheads involved). People use idle poll on high-frequency trading or to avoid scheduling out a vCPU, but as the systems are becoming more dynamic (and shared), having this option dynamic and per-cpu is useful... -- Daniel > Thanks, > > Ingo >