Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2817145rdb; Tue, 12 Sep 2023 13:03:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmOpE0dBwp60EhoO1LKCYrqe2aenqxa45KiTbboqUvroqtX05mAlPFkUHhZSdgoefSTByF X-Received: by 2002:a17:90b:3ecd:b0:271:9e59:df28 with SMTP id rm13-20020a17090b3ecd00b002719e59df28mr286203pjb.29.1694548987474; Tue, 12 Sep 2023 13:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694548987; cv=none; d=google.com; s=arc-20160816; b=uetwKOERA/df9g8l3EwYg/6YYwf3xBJLcqaD1UjdATUhEZE1L+4dinWVmdBd0ikRN1 hgnm30eSAGBRqu5EelAKAjLP5k/oeyPxqzultjM43LOIwlINqymrRIJo8HUBSBDwiXG2 iN8mIUFLil3S4uD1wYAWCHt4rnCm3eXt4fz7e2PXqUq6oaObYOPrNLKAn9hJn6kZgvR/ qSKZt9LdPEdJiCZ0zuDQx2411e91tZ535lCea+v8WbaM077J2sDRIOQURg4HLPUJWm45 RcjBTHVijpUHi5wxbqWpy1AuYpC8i6bGtA+cR8KzlSNIokShtl3fvPmiwPHlvR7nj8Ur oPLA== 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=gk/9rYB7/an+iLUFV0aLbLxXVYBQ+i5HvJgnM5j31Ck=; fh=czAU7MPqfIa2ZWJpFGdSe73GF7cszowCekO7vaHvf/o=; b=l+cugQo8W3N1hM1GhXTglfOMhvQz2fcND0smdUfU9vX/ON9B3Cl0AMmKwfews0+UI9 UlI5f0Y5opxOPPz0tlAUObojqOfg6aJqSnzb0C6fRNUYX4oD7b0l5+qpRGR4iQOOll8T zrQcrpmlVjnGybnRFlPiyoKrUAg7t8M1aDtu33zlLpiz7BPKonJ2sD16jbKtedVwCqXQ 2ECyiG4+pFs4YdnaCMYFHMkjs2ZrTNyQan4XMMvh9qWCDzYxEEM8fnvQUChwW2+oZIIQ UFRLekMIXbYIgoIOPKXlguEV4fEBvIHrsaqVAn5EAPaW/Vttxryj1ReNG54KUP/HHvw8 K85w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Fyh3eDhp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id rm12-20020a17090b3ecc00b00273e22de340si11569pjb.0.2023.09.12.13.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Fyh3eDhp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2BE1B807C7C7; Tue, 12 Sep 2023 07:28:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235596AbjILO2c (ORCPT + 99 others); Tue, 12 Sep 2023 10:28:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbjILO2b (ORCPT ); Tue, 12 Sep 2023 10:28:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63CE7110; Tue, 12 Sep 2023 07:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=gk/9rYB7/an+iLUFV0aLbLxXVYBQ+i5HvJgnM5j31Ck=; b=Fyh3eDhp+bMke+9/vqft1ssk0u K26AKRckbeIkVO6fwlvCUaguX+jW9DTHl9KN5PvnMoIW9yRNl/+OK2496aleokV1T5ZtsU5fmOD0B Zr2J0fVLnb+oRoid8vba39T9Xl8js/gtSTQeRLLb0gP8wJD1PaLIem9aVMy6WsjczwtvzH1XOwkBh HaiXrQeJU9uJ23G1TlqWDBj7Oby5rpqQa88e6Xky/nossK7i99FUhKhypBj6Y6rHinDvXThtPGEDM Z6I0/uG8zv54kLWPtxSnWM90o2+NxHtkqvkwY4mXAy99Jp+6c3T3Z95JkirS6H8FidEmfn7y8LLpr mLiMrZuQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qg4NJ-00843H-Ki; Tue, 12 Sep 2023 14:28:21 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 47E57300348; Tue, 12 Sep 2023 16:28:21 +0200 (CEST) Date: Tue, 12 Sep 2023 16:28:21 +0200 From: Peter Zijlstra To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Ingo Molnar , Dietmar Eggemann , Vincent Guittot , Viresh Kumar , Qais Yousef , Chris Redpath Subject: Re: [RFC PATCH 0/7] sched: cpufreq: Remove magic margins Message-ID: <20230912142821.GA22166@noisy.programming.kicks-ass.net> References: <20230827233203.1315953-1-qyousef@layalina.io> <20230906211850.zyvk6qtt6fvpxaf3@airbuntu> <20230907132631.GF10955@noisy.programming.kicks-ass.net> <8919ed14-8d19-d964-2278-3303a5bda8ee@arm.com> <20230907142923.GJ10955@noisy.programming.kicks-ass.net> <20230907201609.GC14243@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 07:28:33 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Tue, Sep 12, 2023 at 12:51:52PM +0100, Lukasz Luba wrote: > You can see the util signal of that 'CrRendererMain' task and those > utilization drops in time, which I was referring to. When the util > drops below some threshold, the task might 'fit' into smaller CPU, > which could be prevented automatically byt maintaining the util est > for longer (but not for all). Right, so right at those util_est dips it has some small activations. It's like a poll loop or something instead of a full block waiting for things to happen. And yeah, that'll destroy util_est in a hurry :/ > I do like your idea that Util EST might be per-task. I'm going to > check this, because that might help to get rid of the overutilized state > which is probably because small tasks are also 'bigger' for longer. > > If this util est have chance to fly upstream, I could send an RFC if > you don't mind. The biggest stumbling block I see is the user interface; some generic QoS hints based thing that allows us to do random things -- like tune the above might do, dunno.