Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2137134pxu; Fri, 18 Dec 2020 06:27:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHnpxhwiUnnkhsQ0K7JFKGw+neke8W1XfEi2dhQlwi4DshtL+50Vmcmdm6sg050j/935Sp X-Received: by 2002:a05:6402:22e1:: with SMTP id dn1mr4675567edb.347.1608301640259; Fri, 18 Dec 2020 06:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608301640; cv=none; d=google.com; s=arc-20160816; b=eruW/vVqfUIJCJ8/KxOQhx/Pcky36NuB33RIIV3ATBF2o3u6/MNO40yOb0oPuN+r3b ApXxQmHNf9vg6Njof4MszJrgGws3YC1vA9Ig3NoyTNQBZnfgVe6yERKUoLsxX/9AqUe3 FAjb639CWMFe8gSp9Vx2I2xNZAPfj42gB9D9H43PXyqJ9yh1c7LF3UngtcuvFMGG5afj 1DSM/y0xwJiJJ/bxn8scef5MxKY270ZXAyoP3jN4ZJAOFotFIkMhPIfmaTfdFWsXl+G1 1MlAzSTqVP8N9KH9Aj7/QjeFkrooe3iIDQHaQ/V19OZhRqCVy0WaTT6K90zx4wNitLT2 UGmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references; bh=n9Zk1wJ1khMg3/pkADUFKvSNRU13WO05ncMzogPNm60=; b=o5ZyQdQX35gyd1HwMkVk6U9FOPP3ugIQqsImS5kkax1JWUukYy0pLypBkq/tRTDT1s NOFnx2JdgMk7jhehuTCRwnNC8BGriqjZbehZimCJMV+N3MWiidW4UU38lpjhLMnMZSIJ Ob++/CrGFlN+IRrTJ/3EmbVk76W91FIIwrub02k6WDVxmu4QIW3STs+UuzYhc8/Wyjml rKSDahSLvYtTamaW5wAq02dNuPibBJiMVm2LGMj95Lo6bDTunOgmf9mtyNSrSTSvIwYe NpjdGSJvOh/SKCpfv0pPME+zWvmMo36m5c/C3LtWlFyrAOIe0nQTxhEEF76u10f4JH3/ /uRA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si6450153edf.599.2020.12.18.06.26.57; Fri, 18 Dec 2020 06:27:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727479AbgLRO00 (ORCPT + 99 others); Fri, 18 Dec 2020 09:26:26 -0500 Received: from foss.arm.com ([217.140.110.172]:36412 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbgLRO0Z (ORCPT ); Fri, 18 Dec 2020 09:26:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 071E41FB; Fri, 18 Dec 2020 06:25:40 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2A6EE3F66B; Fri, 18 Dec 2020 06:25:38 -0800 (PST) References: <20201218103258.GA3040@hirez.programming.kicks-ass.net> <20201218133655.GA10123@e123083-lin> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Morten Rasmussen Cc: Peter Zijlstra , "Rafael J. Wysocki" , Ingo Molnar , Thomas Gleixner , Vincent Guittot , dietmar.eggemann@arm.com, patrick.bellasi@matbug.net, lenb@kernel.org, linux-kernel@vger.kernel.org, ionela.voinescu@arm.com, qperret@google.com, viresh.kumar@linaro.org Subject: Re: [PATCH] sched: Add schedutil overview In-reply-to: <20201218133655.GA10123@e123083-lin> Date: Fri, 18 Dec 2020 14:25:33 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/12/20 13:40, Morten Rasmussen wrote: > On Fri, Dec 18, 2020 at 11:33:09AM +0000, Valentin Schneider wrote: >> (also, does this need a word about runnable rt tasks => goto max?) > > What is actually the intended policy there? I thought it was goto max > unless rt was clamped, but if I read the code correctly in > schedutil_cpu_util() the current policy is only goto max if uclamp isn't > in use at all, including cfs. > Right, so the policy pretty much is: by default, if there are runnable rt tasks, goto max freq. When uclamp isn't used, that's hardcoded. When uclamp is in use, the default RT uclamp.min is 1024, so it "naturally" drives frequency selection to the max when there are runnable RT tasks (rq-aggregated uclamp.min == 1024). That default (uclamp_util_min_rt_default) can be tweaked. > The write-up looks good to me. > > Reviewed-by: Morten Rasmussen > > Morten