Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4523764imm; Tue, 7 Aug 2018 03:03:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcqWYyumVDMGBKvekGgAaaPhKKJigH6Od0eV+e4/wt/lSCWT8NjAw7VG0R2IpJe5dzFcW8I X-Received: by 2002:a63:7252:: with SMTP id c18-v6mr17564527pgn.186.1533636231024; Tue, 07 Aug 2018 03:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533636230; cv=none; d=google.com; s=arc-20160816; b=S0BJ7DJAeZBqt/7gRLT/7RNvMvn+kPdtkemqAiCDIqoNIxGKT3uUCEJg1KOzVpqDkg FFl1YYZUolDwbrgGF7T2hzUulzA/r/H1NVP1UYfSRULU0e6UHdEw1V4LkX8yjLv1yQmS lRDbfqw9kMgC00wyAY+ZAOja2kCQIGm/kxte2CWa1rvx6/aw9pZoVRlfpVvcH74bfCg3 DjBV1IJX8DThLlgadT7iIG/oAkA4xzo4X5nTjXmnHbpovfompWunbGa7m3M2rWvn0uNU +x46LtQIOIqR+Ua1MBCneqTEXPyG4bWOZHq35GoCCdF1RuppR9plh2woFn99DbDlhmdB MpMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=XwF+xHIkAm9SFeKz/1GdpcxcnMrkIhh2EnDc3zL0aO0=; b=FHcu8H6mYXsd+LgfXzXYXP2WapBCJ87FD0VrLjY2RgNm8/26TpKisyGmGEBC4yp9CA OWysz5WxFaDqHpY+9eOoGG3YhT/VgBEMK/CknfhlvdLD99vPntnXBAiOQnrdsE06oSBn aGugFl4aiIcfpoaHnkEyBXa2NyGPPbg9DFaXi7SP5EajeakX31IJU00aE0aKULGHTDDe wvozUnQrMAt0pyXbHkne/0KXIODrjJ48l006p/Dbmuqu3YQ4SiDSuGXuPyG4z+C62ydk S8SbRJDp5LdXU1ony7LLEo5e4lL2XyaUxYmZcTLMg9Eg7XCw+TRN+65aXRidzAz/vUNX 2fqg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e132-v6si1026106pfg.171.2018.08.07.03.03.12; Tue, 07 Aug 2018 03:03:50 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388152AbeHGMMo (ORCPT + 99 others); Tue, 7 Aug 2018 08:12:44 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40009 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729922AbeHGMMo (ORCPT ); Tue, 7 Aug 2018 08:12:44 -0400 Received: by mail-wm0-f68.google.com with SMTP id y9-v6so17497832wma.5 for ; Tue, 07 Aug 2018 02:59:09 -0700 (PDT) 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=XwF+xHIkAm9SFeKz/1GdpcxcnMrkIhh2EnDc3zL0aO0=; b=IZuNKAcJxYifojD5UGNFVW2YaFlSu4mj4rp2LA/VPut1flMuJvqCzhWgTXMFXCF6D3 5kd4fyc2sKeIIEWdXttVVtKmNzMX9hSBDuOePMHC6OglFEH5OrqusOXqYlzXTYHaoE1N FHMwRpUO9UZonpV3bP+h7onFpcU9kO4D4Gr21fX6VRyqMLneiLjywvZkBxGeRYBoH6Fb 87jz/g7BFG0bfIPDKfQ+Bcvs5dutNum1+QQmvqioDjqsva7yGgXSRbHmYCilZix1Vzqx vmO8mTAC8dptQEdnyaR3ld8Ntp+62wU73zD6Qq/zO/Nckd/piiRJY3p8VpwDlp5BREUJ jNzg== X-Gm-Message-State: AOUpUlEbXFwTXZyiAGjXXQybjBU9aDsYUj6y7Mn4mYMbNw0F4vpxl8hS HoRZc+BbzgMXjX9XuK45W56L3A== X-Received: by 2002:a1c:30c3:: with SMTP id w186-v6mr1125980wmw.153.1533635948642; Tue, 07 Aug 2018 02:59:08 -0700 (PDT) Received: from localhost.localdomain (p200300EF2BD31703FE367972448AED7A.dip0.t-ipconnect.de. [2003:ef:2bd3:1703:fe36:7972:448a:ed7a]) by smtp.gmail.com with ESMTPSA id n12-v6sm659244wrm.62.2018.08.07.02.59.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Aug 2018 02:59:07 -0700 (PDT) Date: Tue, 7 Aug 2018 11:59:05 +0200 From: Juri Lelli 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 , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping Message-ID: <20180807095905.GB2288@localhost.localdomain> References: <20180806163946.28380-1-patrick.bellasi@arm.com> <20180806163946.28380-2-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180806163946.28380-2-patrick.bellasi@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Minor comments below. On 06/08/18 17:39, Patrick Bellasi wrote: [...] > + * > + * Task Utilization Attributes > + * =========================== > + * > + * A subset of sched_attr attributes allows to specify the utilization which > + * should be expected by a task. These attributes allows to inform the ^ allow > + * scheduler about the utilization boundaries within which is safe to schedule Isn't all this more about providing hints than safety? > + * the task. These utilization boundaries are valuable information to support > + * scheduler decisions on both task placement and frequencies selection. > + * > + * @sched_util_min represents the minimum utilization > + * @sched_util_max represents the maximum utilization > + * > + * Utilization is a value in the range [0..SCHED_CAPACITY_SCALE] which > + * represents the percentage of CPU time used by a task when running at the > + * maximum frequency on the highest capacity CPU of the system. Thus, for > + * example, a 20% utilization task is a task running for 2ms every 10ms. > + * > + * A task with a min utilization value bigger then 0 is more likely to be > + * scheduled on a CPU which can provide that bandwidth. > + * A task with a max utilization value smaller then 1024 is more likely to be > + * scheduled on a CPU which do not provide more then the required bandwidth. Isn't s/bandwidth/capacity/ here, above, and in general where you use the term "bandwidth" more appropriate? I wonder if overloading this term (w.r.t. how is used with DEADLINE) might create confusion. In this case we are not providing any sort of guarantees, it's a hint. Best, - Juri