Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2167848imm; Thu, 9 Aug 2018 08:22:12 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwyOWfJERm/vW3slh33BzdCqxmwBQXzGBESd9wkZyN6LoxjJYqOfcVD9uraQcInm0aEfsrb X-Received: by 2002:a63:a5c:: with SMTP id z28-v6mr2562263pgk.209.1533828132579; Thu, 09 Aug 2018 08:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533828132; cv=none; d=google.com; s=arc-20160816; b=GArYeXPnP1WL9f3y/MZEYDMUlZkNUbd2BSGwwmQLmrCAZGuKj+Ql7+hZL8Jj0UgC2K n0con9OcWjMwfB84/JDs3lwiXipaWESuG3kX0QohfV9a1s3TU+ph7VArzg49HDKQw/N2 AKH7o1PxjTFbBl5utnb9GG6lOpsVAkxkxUGEcvXfcZyVCK1wOe6U/WKg9hpVpYfdti6P ab0txQDlyycY6lQWcaGwL6aOuTycYaRPfczlhehKiH5cewgVENxIqZiggt2BbNrwyJ/D Z1ZXjtuyDHvP485f5gvFF/kL6x3pJTGS7DzDm9QGorno3yKBwlEIUvYHmktUlTy/MhBR zU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=BquiGe2ZrY5aCQ8zAeCFycoqVTzhPdTfoobhJiBLfeA=; b=Q+c1Aip00GoyjJgJVpJ/GPoHV6CtP+HgqZaoHPcGh093euQDK9AQRAFZJ1ZLjpb4ou 9ij/fscZDDvUa6f64d2mrMtzyXsyev6i6gkmzY9Gwt05K5J82/wUreCTTvE/M+ZqIMSq Ly+IR8sJOHNzMF02gqs2W5hqmtGcU99Cve7YUfV/aX2aXT8OBQAdz5TYpR8324dNj3ZD JsVVH6d+esaDJX86IrKY/m0qajV4XYljOJUhT+BXpnf8l7Lue91H3HBtH8CfTUTzhRzl zoBXcjzKudlHpM0HOtQojXA8Xica39SJcJKnaOpphy91qBFT3/YCRk2FFC0uVmqwcSQJ swZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HBhiiiiX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14-v6si5883608pgv.462.2018.08.09.08.21.57; Thu, 09 Aug 2018 08:22:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HBhiiiiX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732458AbeHIRp7 (ORCPT + 99 others); Thu, 9 Aug 2018 13:45:59 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57684 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732154AbeHIRp6 (ORCPT ); Thu, 9 Aug 2018 13:45:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BquiGe2ZrY5aCQ8zAeCFycoqVTzhPdTfoobhJiBLfeA=; b=HBhiiiiX4/g/Wg1sFFx3hqiJ2A +7q380AOmWn+BHSynAnREucUW2ay4hKBoETBL+wHIxu8jYIrz5/mBCCrPqX+pSskz2ce9GFPNsvwm m97PT4AujyDWqDNjWSoH9BvyeCsxSD9Bhw1Ao4gZxUci5hwo6ikX5w+oIlSE0pagFmxudZcYqd1kz /cf9ubiFoW3yabVbbMuOHhVVuaiqxA9yo3wfABOg/j/ODbPaBycEdxQ+amss4+4wz8W8Q06cnceU+ 0WOk9M53xDjl+E6o/KS6qx7+YvL7uRrFR3sUJyWcEUuoBgJeX0dLNIIQ+WH/wuF6XDVZgPZ8F8DRD kONjP43A==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnmjf-0004Ca-UK; Thu, 09 Aug 2018 15:20:24 +0000 Subject: Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan References: <20180806163946.28380-1-patrick.bellasi@arm.com> <20180806163946.28380-2-patrick.bellasi@arm.com> <20180809083947.2ogkudkpg6d52roc@darkstar> From: Randy Dunlap Message-ID: <87897157-0b49-a0be-f66c-81cc2942b4dd@infradead.org> Date: Thu, 9 Aug 2018 08:20:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180809083947.2ogkudkpg6d52roc@darkstar> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/09/2018 01:39 AM, Patrick Bellasi wrote: > On 06-Aug 09:50, Randy Dunlap wrote: >> Hi, > > Hi Randy, > >> On 08/06/2018 09:39 AM, Patrick Bellasi wrote: >>> diff --git a/init/Kconfig b/init/Kconfig >>> index 041f3a022122..1d45a6877d6f 100644 >>> --- a/init/Kconfig >>> +++ b/init/Kconfig >>> @@ -583,6 +583,25 @@ config HAVE_UNSTABLE_SCHED_CLOCK >>> config GENERIC_SCHED_CLOCK >>> bool >>> >>> +menu "Scheduler features" >>> + >>> +config UCLAMP_TASK >>> + bool "Enable utilization clamping for RT/FAIR tasks" >>> + depends on CPU_FREQ_GOV_SCHEDUTIL >>> + default false >> >> default n >> but just omit the line completely since "n" is already the default. > > > Right, will update for next posting! > Is there a strict rule to omit this line when it's already the > default? It's not documented AFAIK, but it's commonly repeated on LKML. >>> + help >>> + This feature enables the scheduler to track the clamped utilization >>> + of each CPU based on RUNNABLE tasks currently scheduled on that CPU. >>> + >>> + When this option is enabled, the user can specify a min and max CPU >>> + bandwidth which is allowed for a task. >>> + The max bandwidth allows to clamp the maximum frequency a task can >>> + use, while the min bandwidth allows to define a minimum frequency a >>> + task will always use. >> >> Please clean up the indentation above to use one tab + 2 spaces on all lines. > > Sure, my bad I did not notice it... although I'm quite sure the patch > passed a checkpatch... will check better next time. Thanks. >>> + >>> + If in doubt, say N. >>> + >>> +endmenu -- ~Randy