Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1215006rdb; Fri, 9 Feb 2024 14:11:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhOmEfoCGk0E7ysYJhh2rRWfM1rIX+WiGjAdEJzIeAPFZ4PyoGDBm1VINnjBtPjmpyE+8iFE2Fv2U9RoqWzzwT5nztp8g5Ci8oNj2VaA== X-Google-Smtp-Source: AGHT+IHRpVsUNvHpquhCiH4udok1ra2p8UVL1ny2HaUBhC0kTLIbO0ukC9YVQAbsaMcPKqjVpKBv X-Received: by 2002:a05:6102:3bc6:b0:46d:3a99:7f0 with SMTP id a6-20020a0561023bc600b0046d3a9907f0mr673159vsv.2.1707516681972; Fri, 09 Feb 2024 14:11:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707516681; cv=pass; d=google.com; s=arc-20160816; b=N+bfo1szCe7ve/WYCB/y1gMdAoJPOiyTlrIFyMc/D+CmJQzXr/EA0NrJvK4nXRcVO/ uzDjc0yfuKLelxSzU3H/1N6sxHm7wbCq/IdUUT3WOOislDtBOjrX1reZbghd3QO63jg4 PoCMYXQpBIXPbJhWqob5c0KVrCHjaL3/oCW6wNgUyQX5OomnaOVdVHYbbKqqG4M++OcM tTg8Gh/HMsDU5XoJU5dB02VAWEMmG4+XBN3GzNvcNdL+sgUn17F/xNbTJgq6wycrDpg/ yljlEwr+0Ioe7p0Uyp53glH+/i7nWrO2qL2YiZDXbdVNmRMo9Ka9tsfsVQu9Cl1J6C+U 23nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=3268oKGsBgJrtUhQbj/DpUrS5yqVV5gSrp5rNb8j/5Y=; fh=tk5vUnSJ3KgfWRipnDymHgfqzZoZWxmvnfrN17jpbto=; b=hvmq9shiOVQ3rGrGBcE/AyGgPJV2IZZJ2If9ad/LRhYI+uTISkKtSGLVVSTxSrb2So m6VX5leroizVX65hp0PYe9amc0qcj8AeJPaXoNo+mHKGl8gKT9lA6/q9G5ubIN96R45/ 2c9fe78h35z651kmba1OKWdTLa4Ns8obBMT2A5Fgcu16JBZprH/WYI/LXWXNOLWwSQMD TgT9Jg9b5dhxnjdluG9l2T8fA5ZQa3gtaoH8opK/qNsAO4I0LAS/xpvi+YGeNaqAeXOQ CEYNqxZGnC4povsz1DyZRFPRu6LZtw57+YCb8AKozsoor6yVZf2Q+xUcuKw9rnsaxFQl Vc9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t7/5usPD"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-60068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWb6OYbvaVMlxnXBT2SkgmQTxUyQATqdoKI0NOYXLIZjQOnMTtYLA9/EI3Y5vRf7Dk+hOqwbA2vW5YjviL/4YAOTyHdhwPtGzDj0kYKrA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a6-20020a056214062600b0068cbb666daesi2904279qvx.472.2024.02.09.14.11.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 14:11:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t7/5usPD"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-60068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 70A261C23AB7 for ; Fri, 9 Feb 2024 22:11:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E2D525610; Fri, 9 Feb 2024 22:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="t7/5usPD" Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07AB723B1 for ; Fri, 9 Feb 2024 22:10:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707516654; cv=none; b=p/U8hriIVWFqqLe4HH8vtUg4Qg3X1sdwYWpIeBytyvCdDXmO6F6NjXfVQvsgki/qZzlBTSuMOeuCSsBhv1sGCUhl5NDKyMwqNBfX+R78KieJVJWUmRcrSFXpLVsA15uPEysULzXAjb43jjHVK/0+4JSYtUIHSrPqjA7x6DEQmLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707516654; c=relaxed/simple; bh=n2ZCswoigTORXv5QKqqqOOgLyFjY4RM6hrHLeJlO/aU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MdV0SqjQ00Bw6Xoe9gn7l0xWV0xEhqcUFhyQQABrTeM5II2YdhRznfXdA1YeS0bVAIplqC+9T/IRgP0T+KVlBQ9NwYoAOhsZJBf4cZ4DEU46mPDaonnMEvwebHH4NjlP30PQQh478HZx+urhPQxP0T0rF1qKkNd+pZ02/oW2R1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=t7/5usPD; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2970f940b7cso525579a91.2 for ; Fri, 09 Feb 2024 14:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707516652; x=1708121452; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3268oKGsBgJrtUhQbj/DpUrS5yqVV5gSrp5rNb8j/5Y=; b=t7/5usPDkNBzwAodiU06QFo+HRs9U0eFkVkDpG8NVXLL5ejSGPZJCokAwiLNangV1V gI9EnETFnDeIHz0N3JnlvKFm8sHjWX3/YiNo8HyXn7mPNarYdd2NMw1/4jZ5h4n1tE9H Ghray1p4GYC29hxV/k+SjO9JQICNbRg1CLGg+x7T55j2AAgj+pTuRzGNSpYeWLICoGTR vOEV8M/h6fJtAnB2rFYuNwaUNnEoEnNxUNec+hTJ0yVybfR3wXmbH+8W96mexvNb9XnT EW4gC2NG/SMJ5OTDP5Jc/bxkFCHlaObjyoarHqTEIvG4C+MA9wI/PpHVAJ4UuJrn0Yhj cYPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707516652; x=1708121452; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3268oKGsBgJrtUhQbj/DpUrS5yqVV5gSrp5rNb8j/5Y=; b=guCOU1kZqtKke02ojIiw4etHnSBruwjm/R7eQxvQoJQehMwNbI2ai9gyJvpBD1mEuT tul4taBmFM+1Z1o/oGTx7nVrm6ZeYCBChuBmY5ZnNxPEiEL6N6mXLX6FUxswm/uRSGN3 p2/p7aboCsaqmWhfu5JtwEM4U3Omn7c5JT2hibX7Ko5AyAWpnTePl8U+n3ssTT4lkEcP K7HYRiD0rK2eYBB1EEODxdO291rJ9redtvL7HKcWU2eCm0LyQY7JJTe8pAF2qwXA9vz7 LIqbU3uvKtmNtbB0bwLsfvZUO47J5/W3VIXjA+JFi5nxxhIMlxOWxOrUH1L5bAZ2OCJ+ JUTg== X-Forwarded-Encrypted: i=1; AJvYcCXsCa8Nkhcqh17QwV5gauNKgnZ22dcnB24WuxicDFRKK46NFMhLxb9xl/EME2Ke6yh1HHdACNSdIybiu272uK254owNUNjnJQdbKpZM X-Gm-Message-State: AOJu0Yz61vRm9lFLjeAwB4x3/C1TXLfo920kHB4VIE3cNXxCS7BuBIm6 6W2B0bHmFstjsEhESiuez26Sme1EbRj7iL6hA4CxX23XIo1quVEyPj6trmAxeVPLjVpmWXJgs9/ YnMxWj/kIgWr6tKaxO7G8TeHs6BolvLT2NU0zvw== X-Received: by 2002:a17:90a:d498:b0:297:410:4b54 with SMTP id s24-20020a17090ad49800b0029704104b54mr316720pju.45.1707516652316; Fri, 09 Feb 2024 14:10:52 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <002f01da5ba0$49cbf810$dd63e830$@telus.net> In-Reply-To: <002f01da5ba0$49cbf810$dd63e830$@telus.net> From: Vincent Guittot Date: Fri, 9 Feb 2024 23:10:40 +0100 Message-ID: Subject: Re: sched/cpufreq: Rework schedutil governor performance estimation - Regression bisected To: Doug Smythies Cc: Ingo Molnar , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Fri, 9 Feb 2024 at 22:38, Doug Smythies wrote: > > Hi, > > I noticed a regression in the 6.8rc series kernels. Bisecting the kernel pointed to: > > # first bad commit: [9c0b4bb7f6303c9c4e2e34984c46f5a86478f84d] > sched/cpufreq: Rework schedutil governor performance estimation > > There was previous bisection and suggestion of reversion, > but I guess it wasn't done in the end. [1] This has been fixed with https://lore.kernel.org/all/170539970061.398.16662091173685476681.tip-bot2@tip-bot2/ > > The regression: reduced maximum CPU frequency is ignored. This seems to be something new. schedutil doesn't impact the max_freq and it's up to cpufreq driver select the final freq which should stay within the limits > > Conditions: > CPU frequency scaling driver: intel_cpufreq (a.k.a intel_pstate in passive mode) > CPU frequency scaling governor: schedutil > HWP (HardWare Pstate) control (a.k.a. Intel_speedshift): Enabled > Processor: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz > > I did not check any other conditions, i.e. HWP disabled or the acpi-cpufreq driver. > > Example: A 100% load on CPU 5. > > sudo turbostat --quiet --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,CorWatt --interval 15 > Busy% Bzy_MHz IRQ PkgTmp PkgWatt CorWatt GFXWatt RAMWatt > 8.42 4636 21823 67 28.40 27.56 0.00 2.59 > 8.40 4577 17724 66 27.57 26.73 0.00 2.59 > 8.35 4637 19535 66 28.65 27.81 0.00 2.60 > 8.41 4578 20723 66 27.73 26.89 0.00 2.59 > 8.40 4558 19156 67 27.39 26.55 0.00 2.58 > 8.34 4502 18127 67 26.79 25.96 0.00 2.57 > > grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu10/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu11/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu8/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq:2400000 > > grep . /sys/devices/system/cpu/cpu5/cpufreq/* > /sys/devices/system/cpu/cpu5/cpufreq/affected_cpus:5 > /sys/devices/system/cpu/cpu5/cpufreq/base_frequency:4100000 > /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_max_freq:4800000 > /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_min_freq:800000 > /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_transition_latency:20000 > /sys/devices/system/cpu/cpu5/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power > power > /sys/devices/system/cpu/cpu5/cpufreq/energy_performance_preference:balance_performance > /sys/devices/system/cpu/cpu5/cpufreq/related_cpus:5 > /sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil > /sys/devices/system/cpu/cpu5/cpufreq/scaling_cur_freq:4799998 > /sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_cpufreq > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor:schedutil > /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:2400000 > /sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq:800000 > /sys/devices/system/cpu/cpu5/cpufreq/scaling_setspeed: > > [1] https://lore.kernel.org/all/CAKfTPtDCQuJjpi6=zjeWPcLeP+ZY5Dw7XDrZ-LpXqEAAUbXLhA@mail.gmail.com/ > >