Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2928772pxb; Mon, 25 Jan 2021 02:21:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6Rju5+YqZso5xhlAhD5kFQWA2ukNqhUydQk3+C4erDUIbnEt8+gL/ScT/hXkC9jdTzqtW X-Received: by 2002:a17:906:b219:: with SMTP id p25mr1466521ejz.430.1611570109441; Mon, 25 Jan 2021 02:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611570109; cv=none; d=google.com; s=arc-20160816; b=n0ny0NwpjIYR+Sy1bO+20KX8R4olNXLRbtSxmc+x5Y8XbGBDljGZ6u0rTFcloko4to BAm9DqkLXe+1meSAgt2+mMNcCxTOYwaFf/ngU7Pz6Ihl42vec5hiF9Pn67H9GRRdxIjO hfIg3P87JxVYad5yMs0zb1Mtef/0tcwNcnbZBPdjJZvVh1r4DnNSVSxzj3om4/67sQ6S 5EfMhps7Xbzp+usfhjrNedJpz/haXu1RvvH6am8o5RgfMHj/LgjRcYIPTVHpdZ0XYa/Z o2GzPVR2NHbaaPasAxNmGmh7skwa50joEtS2LNv1QX5otnOgvDxSVCtmaC0cNUh/SXrF 5STg== 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=GtW+rqjBxkqPAgL+lYKMDvLoZJFjuWlfCcBAqCEjP5s=; b=XKtYXuRd1ytNxkB+fsKv5RMer1TzlMObqRQry4KKyu1emUBDhJIcFbv3OZoLtSdtKf A5nEFAQXDaYYDw0GXxBBaU7cj1AbYMr9Aeua8AmUmirdtBuUvvqqqEvaoCfwfdVq7Wib TBljr0pViEp9nSOfZRI5qZddFaMOTVDFibadgB2bkJtvOAU2h/baHG+Dv/17LlGThy5o 0uG3JjlXX4hvsUkoSL/S+MmIbqDoSZhwJrV9XPG8Wj7cwZadF9zE2cSanDtpn/NHaTUu NsJu3nqh2uQ9/DX8jkMrC862U5peJUrFNE/C+yCPqujLhb2jIyPOFvdTQGCEoV/NhmB3 2Gmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=WJyw0nG2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si5956255ejb.630.2021.01.25.02.21.23; Mon, 25 Jan 2021 02:21:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=WJyw0nG2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727372AbhAYKOe (ORCPT + 99 others); Mon, 25 Jan 2021 05:14:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbhAYKIH (ORCPT ); Mon, 25 Jan 2021 05:08:07 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE00AC06178B; Mon, 25 Jan 2021 02:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=GtW+rqjBxkqPAgL+lYKMDvLoZJFjuWlfCcBAqCEjP5s=; b=WJyw0nG2FuUQR4LFIN4hKSNWnv CtcoSv8B8UtYxJHi5AKG1FYYZNVorPAQ6nXBtosCtNuF62XaAMoRda/QWD7slH2EZA+wsT++O4H4Q dYbn8ohRzsYbDseZb0piXlX6IdhjnxsxM1a0sziELEA14GdW5zIH91RwEQyV/ATy2Tnsq8XwPsLYT yI9U083MD98OAwroK9WLJoKNcwaTDr15rP/83+dcj9Sc4uPEQOaZR3xYlEz3eqlQLt7ZI4AIihVNK AJfgltRW7BifG+3DPWv9ppPlklIHMthgGqWWr3LbHrhWU8OrdMpDRvY+PcccMIqC3nC86VtJLEU3x FzfvsCjg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3yl8-0005Gq-L3; Mon, 25 Jan 2021 10:06:10 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id DB4003010C8; Mon, 25 Jan 2021 11:06:08 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BA1AD28B66D18; Mon, 25 Jan 2021 11:06:08 +0100 (CET) Date: Mon, 25 Jan 2021 11:06:08 +0100 From: Peter Zijlstra To: Giovanni Gherdovich Cc: Borislav Petkov , Ingo Molnar , "Rafael J . Wysocki" , Viresh Kumar , Jon Grimm , Nathan Fontenot , Yazen Ghannam , Thomas Lendacky , Suthikulpanit Suravee , Mel Gorman , Pu Wen , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Michael Larabel , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 1/1] x86,sched: On AMD EPYC set freq_max = max_boost in schedutil invariant formula Message-ID: References: <20210122204038.3238-1-ggherdovich@suse.cz> <20210122204038.3238-2-ggherdovich@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210122204038.3238-2-ggherdovich@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 09:40:38PM +0100, Giovanni Gherdovich wrote: > 1. PROBLEM DESCRIPTION (over-utilization and schedutil) > > The problem happens on CPU-bound workloads spanning a large number of cores. > In this case schedutil won't select the maximum P-State. Actually, it's > likely that it will select the minimum one. > > A CPU-bound workload puts the machine in a state generally called > "over-utilization": an increase in CPU speed doesn't result in an increase of > capacity. The fraction of time tasks spend on CPU becomes constant regardless > of clock frequency (the tasks eat whatever we throw at them), and the PELT > invariant util goes up and down with the frequency (i.e. it's not invariant > anymore). > v5.10 v5.11-rc4 > ~~~~~~~~~~~~~~~~~~~~~~~~ > CPU activity (mpstat) 80-90% 80-90% > schedutil requests (tracepoint) always P0 mostly P2 > CPU frequency (HW feedback) ~2.2 GHz ~1.5 GHz > PELT root rq util (tracepoint) ~825 ~450 > > mpstat shows that the workload is CPU-bound and usage doesn't change with So I'm having trouble with calling a 80%-90% workload CPU bound, because clearly there's a ton of idle time.