Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2982935rwb; Mon, 16 Jan 2023 02:01:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXu145gFHaL/hf9etcUvtOXmvZG3LezZIuZ8LQi4zxWMyuztjVaKumIPNh3AskTBLghHPWnB X-Received: by 2002:a17:90a:e656:b0:226:b783:674 with SMTP id ep22-20020a17090ae65600b00226b7830674mr42365025pjb.37.1673863295586; Mon, 16 Jan 2023 02:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673863295; cv=none; d=google.com; s=arc-20160816; b=u8bcVasISyKVedaqnLGjG+3GCG5J0Z0R+qS1sl9nF7rAAeKLrGKA3iTH464VI0M8DO xUbOtzcAQ2gBdVDWGf7bBfcHtKt1G+HxNCiy3bxnpuS3vQLhemCDGXHY62nedpCgGW9W O/6b9HlJ/8PXMjxhnO9eqpD0+y5UpRXcYUV0uKIW3a5yPk+ffkT/Ldnk4Gp/3NdGNvwl vR6ZeGBCLyC2taajyqoqQ85EWY2mxr1VNRXMIU5GGx7KzWMY8VnmqAjb0PiuMrR5cW7Z 2BS1Qg33WAh1irYPzY0phTz9k0fFiaWUENikxZC0G9Xa9LDy1CE+x9CY0uVTtPEgUe6b a7Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=SvuIIJoTaEmioZM0Oq5YMtye6VNYwwl3cY6WJRPbs+4=; b=xQz+KUWaTHNzyvl7Rcjd42aFBoqDU5kk31fqAc0g8OnVQDWAe7/zHo/xh0VruiPTxR NrAwg3jERVS2qJxNL62D7pNUh0tJCxiRaJuallt9G3hhZJUdSib7ANlo06WbfePG6rDL Zwa2nbVtHjxBxrE6Hi094zmnAV2r7U9cPB2r2g+fKm8L84koFqq9LUMT77Zgvqy1Iupf baughdGtZTjkI2pCbImY8OwkRkceiSOFs6K+Smxv9SHWETXtKEvAfr+PjO7j6RU6x9Ao DZwg3rG36fXLz1ojSXT5Y/UWYWkGa0ZQqpF8pFtlyZep3JN61z9KqJXtH3FVFIw5HRq5 v2Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q3QEjzwa; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls3-20020a17090b350300b00225c475b3d2si36013421pjb.55.2023.01.16.02.01.29; Mon, 16 Jan 2023 02:01:35 -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=@gmail.com header.s=20210112 header.b=Q3QEjzwa; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232231AbjAPJ32 (ORCPT + 51 others); Mon, 16 Jan 2023 04:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbjAPJ2v (ORCPT ); Mon, 16 Jan 2023 04:28:51 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45D4F166E2 for ; Mon, 16 Jan 2023 01:28:24 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id vm8so66593867ejc.2 for ; Mon, 16 Jan 2023 01:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=SvuIIJoTaEmioZM0Oq5YMtye6VNYwwl3cY6WJRPbs+4=; b=Q3QEjzwaHrozikaD4TW4sHAF4Q4tnjBZNWSKpIL1yo2qR94movpmPQskX3okbmcOlt +pGwtKEtpc657RfY6FB3TcTiKSLeOZgH31+cOUGamtceXx9PQPBu+HpJSIg+emghQ5Vw u8lfksilBLNEyUTrfh0tFTe38z3mms0mcLv2YvrCUEQGAV7s3C/eXqxFwJVy8DeMT7Fz 4TUhgoNNOwwWbyRkgYVMwGRlXdjeZdqicL+jkNfxvlXkMiHATsgnaucC/FNgV1HWHniv /yEBSpmHPP+QE9btpw+D4jjRjaVcyx1yijC5qWTxPrfstIx0UjeXWd0NL5G2HySkB6Kn 5qUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SvuIIJoTaEmioZM0Oq5YMtye6VNYwwl3cY6WJRPbs+4=; b=C8WJqTEszPEZaMi5HM64qHPFQS3GmCkG8fHddVWbIdg3rn0NcwOmPJDkWCmy09T8vK 1p1+IpYjWWQ/BCcXycnEPjwE7vuE4c5rIt73jZaLP7MLv8ZHgVwe5oQ8PjU6vu+34Fxs 4Jf+5FZ9dQjrQHZImCRCQTmOBAKKlUAU/XqAJNvpSCbMRNplgrUWyuRLYaWm/5wuz9HE Doe1/I7dCxGEX/Q7Op/7yVRI9lEwAqNJQLu3V+QY5Mw8/QiZ01Z9AJ+fix9akOcH4Uqj QGQpUVgJzvkrKVvvYdrGoY9WUlf2Ag2rjFvwQGRxHAwJDubMU7BA1Ldvuv4meTVx2+GI h50Q== X-Gm-Message-State: AFqh2koCijaiIBzL/0oyRzm3JAcfGkqRAPbOwJjU2N72Yug744IXjEEh 4iznOVfPSJKz8YLDKGWbeVE= X-Received: by 2002:a17:906:2245:b0:844:436f:8c24 with SMTP id 5-20020a170906224500b00844436f8c24mr71366261ejr.10.1673861302873; Mon, 16 Jan 2023 01:28:22 -0800 (PST) Received: from gmail.com (1F2EF7EB.nat.pool.telekom.hu. [31.46.247.235]) by smtp.gmail.com with ESMTPSA id o3-20020a170906288300b007ae693cd265sm11488238ejd.150.2023.01.16.01.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 01:28:22 -0800 (PST) Sender: Ingo Molnar Date: Mon, 16 Jan 2023 10:28:20 +0100 From: Ingo Molnar To: 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 , Daniel Bristot de Oliveira , Valentin Schneider , Joe Mario , "Rafael J. Wysocki" Subject: Re: [PATCH] sched/idle: Make idle poll dynamic per-cpu Message-ID: References: <20230112162426.217522-1-bristot@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 * 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. Thanks, Ingo