Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1118041pxb; Fri, 20 Nov 2020 01:21:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYu/e5ruMyxobyHJK0GOWd4Qgvf2MYCKUiCPEFeRUo5phV8bsGFY8BqdnDq9dsNqW56pSL X-Received: by 2002:a17:906:ad85:: with SMTP id la5mr34044043ejb.423.1605864070221; Fri, 20 Nov 2020 01:21:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605864070; cv=none; d=google.com; s=arc-20160816; b=CcZDnT5GHLau4iBpzswkhxCqkzYhpFsp2DqTcak4PvqKY54eX+vWqKaG3zW6HB5tnn lf2QATfQBk6Ob4aqCcI1LheiC4FlysJ2ki+uCf3z0x52EwCwHEJvuy235vCbpM2ksHIo xgypaRQ3vM1HrIZzi0uF8Y7CqjqoLjZCxlke07mWx8qh+0o5i6L9gkLzOpm7PyqjnREl XUdP+2qTWlwNjBLBf3kxwFy+61LgQ2Q6zgvez3ZHc3dyGe6h523aHqvLkh6Y6kyLxXfu TklPD6OaSOta+zv5qVbeMlActUG8asTIIUes5WijYkjRD65rjs+t9O0EfzvsHWhNrmG3 YXrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IygXYP7GoIR4IgC4uGQkuOXO7d8DopxXyT6+x9GrikY=; b=NRJNUHfCO1pe8+EAO4ruhw2TUU9rOXO1tjKn8RZIua6p+aTE/Rvmk6bnYidTnTjKmf ugDD4PiqpTo7F4vH6PagSijH9Z34v+n66HTFT3N37C2nihMuY8ZwGfu373dDXLQHNfN0 Vz6kMs10PrRIiy+yPtd6x9NUwevxOTB7ObUL0llTqBvv/HKpePjgTA64pUrYlGfcKPtq U75uCwLnRifx4M+pUhdqA6rn5jaG1pyOSwZjFa95XYSJ/sKBn+r69eiLG5pvELuEHrIT ANXCClFqtT61dvyIOjJ9PBsCq9gbcEiSTNyqNwfIhAqlxxdVjF9VgN5b5yB1/JVeDuqU hYfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OTdVN10F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si1584749ejd.193.2020.11.20.01.20.47; Fri, 20 Nov 2020 01:21:10 -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=@linaro.org header.s=google header.b=OTdVN10F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbgKTJTJ (ORCPT + 99 others); Fri, 20 Nov 2020 04:19:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727297AbgKTJTH (ORCPT ); Fri, 20 Nov 2020 04:19:07 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2163DC0613CF for ; Fri, 20 Nov 2020 01:19:07 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id c66so7286050pfa.4 for ; Fri, 20 Nov 2020 01:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IygXYP7GoIR4IgC4uGQkuOXO7d8DopxXyT6+x9GrikY=; b=OTdVN10FOYhL0/gJqBWg2CC2lNAb8Ofmz+oL4HxCgQCw7HultqxETm8stIfLHCTIR/ jZqep2nxW0vXOdEV2sRBQMzipd/4mZSBnbgUjVhFQjxwxfp9eSv/SKZ+Ff65XKra4XgA aJpehStWemRssTlaL4zSpGKxoFMRaPX6SrKdBC0+l+3kApvvsy96VWt5errqjcOSLS2+ 7JvdhhPqNDLxsco1aKn24NHVd6wNnFm+A4dfUX6En/xaG3VG3onZu1Y1OrdGFUx8pUQh lj5+uafktlJmEkOMDjI3Yt9Gh0U7A12fYveTIJMiLPgQHmyp41oGaaKaWkOgbOzII7l2 B/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IygXYP7GoIR4IgC4uGQkuOXO7d8DopxXyT6+x9GrikY=; b=VIuaBgt2Y3e6+a8S9NlnogUxQbOJax8oHOGq4s33rz1FQluyK3x+pZbT4BPzEYAXJ0 YAL4Ls63phMY1+NHoVCUy0hegyOKBnDi00WboAVNP0AAkKygjDhidk9tRzH+N1HJr171 hJkvjzX6qiqq89mBqqZnWmi+saYThjGWTy5y2YqijQOeiI6ums4z6DB9mlEA28e5m333 IfJ2iCJz0H6dguQkq/eAL39Cn1Xr7Lid43uUyegXrdGP3DoC/bT28kOJ8WtYoXjO4jUV JEMT6YcFdFDzvxSZAs/hnMVjAPWnoVSfvfhEllW48c2N7YVIrxjrP7rg8AGPeCrWJWPO PDtw== X-Gm-Message-State: AOAM531Y+sPi0ILu+X5/2ftpbv+OXGVXaekGkkRJAtoudbdE4YYp1aYO qe1yDTMg0hDAgEb8g0IouuRpeQ== X-Received: by 2002:a63:194d:: with SMTP id 13mr16807910pgz.317.1605863946567; Fri, 20 Nov 2020 01:19:06 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id w13sm2911340pfd.49.2020.11.20.01.19.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Nov 2020 01:19:05 -0800 (PST) Date: Fri, 20 Nov 2020 14:49:04 +0530 From: Viresh Kumar To: Quentin Perret Cc: Peter Zijlstra , "Rafael J. Wysocki" , Ingo Molnar , Thomas Gleixner , Vincent Guittot , Morten Rasmussen , dietmar.eggemann@arm.com, patrick.bellasi@matbug.net, lenb@kernel.org, linux-kernel@vger.kernel.org, valentin.schneider@arm.com, ionela.voinescu@arm.com Subject: Re: [RFC] Documentation/scheduler/schedutil.txt Message-ID: <20201120091904.6zvovj2yxjxtnq2x@vireshk-i7> References: <20201120075527.GB2414@hirez.programming.kicks-ass.net> <20201120085653.GA3092@hirez.programming.kicks-ass.net> <20201120091356.GA2653684@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201120091356.GA2653684@google.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-11-20, 09:13, Quentin Perret wrote: > On Friday 20 Nov 2020 at 09:56:53 (+0100), Peter Zijlstra wrote: > > On Fri, Nov 20, 2020 at 08:55:27AM +0100, Peter Zijlstra wrote: > > > - In saturated scenarios task movement will cause some transient dips, > > > suppose we have a CPU saturated with 4 tasks, then when we migrate a task > > > to an idle CPU, the old CPU will have a 'running' value of 0.75 while the > > > new CPU will gain 0.25. This is inevitable and time progression will > > > correct this. XXX do we still guarantee f_max due to no idle-time? > > The sugov_cpu_is_busy() logic should mitigate that, but looking at it > again I just realized we don't apply it to the 'shared' update path. I > can't recall why. Anybody? t b7eaf1aab9f8bd2e49fceed77ebc66c1b5800718 Author: Rafael J. Wysocki Date: Wed Mar 22 00:08:50 2017 +0100 cpufreq: schedutil: Avoid reducing frequency of busy CPUs prematurely [skip] This is unlikely to be an issue on systems where cpufreq policies are shared between multiple CPUs, because in those cases the policy utilization is computed as the maximum of the CPU utilization values over the whole policy and if that turns out to be low, reducing the frequency for the policy most likely is a good idea anyway. On systems with one CPU per policy, however, it may affect performance adversely and even lead to increased energy consumption in some cases. On those systems it may be addressed by taking another utilization metric into consideration, like whether or not the CPU whose frequency is about to be reduced has been idle recently, because if that's not the case, the CPU is likely to be busy in the near future and its frequency should not be reduced. -- viresh