Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3127317rwb; Mon, 16 Jan 2023 04:10:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXtPG3udWccZkOQ3h2VpiwWcSHpBf3MrHZsaSpmo7jWqVXnt1bKtGqxD0sYewSfzrRUfGwZe X-Received: by 2002:a05:6402:371b:b0:48e:c0c3:796f with SMTP id ek27-20020a056402371b00b0048ec0c3796fmr42876003edb.28.1673871050472; Mon, 16 Jan 2023 04:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673871050; cv=none; d=google.com; s=arc-20160816; b=0BH/HlFANyCeay5W33T6szTCNtZ9qYOjV/P2Y0uqsQrHoY+BZmjP/ssNDGovLkMwYN 5pVb0gI3kCe2CFoFUPJ1aXerdqgk+p+pTrtfbJLFGxY6dUmoqGyX94sERY8p+KOVkfVw ZQfMi5gYP/dElLyr8xuK9NHZRLKlR9HPg3WcGMyCezJvD6xrSwl0Ln5wtoFLMR05zUdI josuFNLF5plYuusVNi8Wdc5Pfs9ATcSwuIyT+ADPcpDUnaOX98vpomGpxr/4nmZCz8dT 9ajl0mlAAePw8ppLRGPBBMBz6hWi6KrvcD/nMfJn7yHeLcdEb5rM3n6Pa2CO74qi3TcT hK6g== 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:dkim-signature; bh=eGsHU6sqmbFVl1zRgn6gOMLKxH6DWZk5x5LomRvhTac=; b=aEvrNqigi5esov4Zl0TTDvPbmAQrQnC+QuJ2cnn+qpiSLxh9HzWkiL9JxTcJQDGjfT yFeI0C/3+2CJYqnNTo8fez0tEsPJoXxsMvJoeGK8f2QivyrQrpa6HD2csrxt0fqD8HaP JedI1fz2m8Es/BIk0I+v7ciUdlaVmTQeQV2PVHgDNFurGm2MrhR11gKnTZOTAp9rnnrD RVI7MvRqkz1wdSDoxk8tHdvFbowaHdVBn9JcyhpLVcvkd5HzBRvL8rMc3elpAx7jlORg d8yuts8ME0FN2vKBEHi3eSrcd6eMbbZYhvFaHTzxsiDRjyJ9yW5udt04vQ00tJUydBae SASQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=pYUkq5eI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ey7-20020a0564022a0700b0049216736fd2si15115029edb.542.2023.01.16.04.10.37; Mon, 16 Jan 2023 04:10:50 -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=@infradead.org header.s=desiato.20200630 header.b=pYUkq5eI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbjAPLyz (ORCPT + 51 others); Mon, 16 Jan 2023 06:54:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbjAPLyw (ORCPT ); Mon, 16 Jan 2023 06:54:52 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7FE1BAED for ; Mon, 16 Jan 2023 03:54:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eGsHU6sqmbFVl1zRgn6gOMLKxH6DWZk5x5LomRvhTac=; b=pYUkq5eI33A3JlBvQrD3bokhWw BLMKa0qV2+13JNErCWcDDUtPsBk9HfX/T7waxIlXTnfdXy3609+K30M8BJnkxj0kH4V4IdWCI/P32 +UZPi0IwFiPHWQMmmaLfftewKmOfg+LCpktWO+jNbo0y3OWnlzj9iQMkW+VYv/tUf6wetJw22UoqG MTw+NY95lMl7K8Qk7pobBixsZRoLuAxci97xYJ6wxEwYCiMEkCqCj6mZdIuHP6mYhly0NOLmRbZjM lZPA/NnIULZnSi7M9OkcPeuRJ4e/R3aWMpkgFrRERq6QOQXeKy0Ry+OslyKEPClvUTR1+yUnoEl+I Wi1oo2Rg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pHO4D-005aGT-2r; Mon, 16 Jan 2023 11:54:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 77264300642; Mon, 16 Jan 2023 12:54:29 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 543E320EF0A1A; Mon, 16 Jan 2023 12:54:29 +0100 (CET) Date: Mon, 16 Jan 2023 12:54:29 +0100 From: Peter Zijlstra To: Ingo Molnar 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Mon, Jan 16, 2023 at 10:28:20AM +0100, 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. Bah, so while you can set a cpufreq gov (say performance) per cpu, you can't do the same with cpuidle.