Received: by 10.192.165.148 with SMTP id m20csp1710928imm; Sat, 21 Apr 2018 14:09:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx49PmjXjYpE1Ax/mLq3bPr5gQ0Z/JNDewwIDmOql3s0+mAAAuixqVAKJD6Q5sfSZ9VR7T7K9 X-Received: by 10.99.50.134 with SMTP id y128mr12518854pgy.419.1524344994332; Sat, 21 Apr 2018 14:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524344994; cv=none; d=google.com; s=arc-20160816; b=A8lVx8aOnr+Qz8H9mRBc0xJCn1RNqLDQaVv5NMAYj9mtjs1AdEMZASAEhTWBnQjw6V /YtZGT8O6IhSPmXXk0kmPP+aS+hQqk4JJEIPiYovu9JTHDLbZqanHNvFVqO2EXChrhlB WJ3V4mKDbZ5wu8o9vSzwCh6ZHikMAmU5rl80UJNt8HDOcHEYTyk4Zs7YT3JZ0UeVJ1NQ uC9+ZGZk1iN7qQk8QazVoeBi7E6mgk0OqWh161UzGE79OJYkRMgsy6b3r5kf/keBCI5D LJx/5TtkPm+UTQWdnw+bXUp/SxuUyRZAmhiHvZe+NpzYew8H2/RVaGpfebE3DEzfeOqn 6vRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=gRT1y97ZJYYFFgyFpP81Hq0/9pnslIQFUKrLruSQujM=; b=fqIaW/wIm1AXC91KJpLLfT5WSYz/8NRZh9hF4P83pUlRWVS1q9qjkLmrTju8iO3Dct 4hVPp+obNfn/KKMrdOZSgjuhUN1txIV4ALGGJgWZVwjppxSM1cYDjuBkKMaKKau2cLmf D74lX7INQdwl0UptGZhXn/y/jFsLRp+j/wRVO3UQcP70kESgLwxQ1u592w88zyTMbFjJ bwQ5X2TPvfCSiRPr5QHZ2pVbi6Xs1fGrLL2leIZfLA03o90UjMvZdqg1qSv5aOSHaN0M zxIO+rQ/bPwIYXMGoXjcH98PivGZbmczRhyORwEdACXz6wTfi/EE8xLofUbEcSD5/Peh HdGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dbPDqQQk; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t129si8060882pfb.98.2018.04.21.14.09.39; Sat, 21 Apr 2018 14:09:54 -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=pass header.i=@gmail.com header.s=20161025 header.b=dbPDqQQk; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753319AbeDUVIf (ORCPT + 99 others); Sat, 21 Apr 2018 17:08:35 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:37832 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbeDUVId (ORCPT ); Sat, 21 Apr 2018 17:08:33 -0400 Received: by mail-wr0-f170.google.com with SMTP id f14-v6so31233529wre.4; Sat, 21 Apr 2018 14:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gRT1y97ZJYYFFgyFpP81Hq0/9pnslIQFUKrLruSQujM=; b=dbPDqQQkGvRXEc8snPm6YfqJF2o/mnxzgpY04xTnlsd34RE1xU6gJ/9OgqAm2y0sCg 54I2jjBdNewEbAgOeyUTP861dj5f1wDgxo6ZdQ0VwdKgwrNJgh59gwKsYg5TlZZbrk/+ mr4Ieit9WYiXVJDSpFKuaqw9EwKThQKP1dW5zxtA7odGxa621Bp7fmWq1Zr8XrQgtqLW 5tbj+Q0DENByk7Fz3iPFnfgV9NPR1ITaCLDd5XwbY3bC/BYzK6OgZIxh+FzqQu/H/Nrk BOGtLCwqxEu/fU42Qr8Fb3yVq04jskJO2i+xt6HUsvH33qQs8N+1LKjq+bSTD3XxqSET xiSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gRT1y97ZJYYFFgyFpP81Hq0/9pnslIQFUKrLruSQujM=; b=kVhpQT63U7c3D4oZuueNg54W88hQ0DVuR/EaD42JuxRL6AWZkv0XnpPH089ipPpLxK zKaJi7HMuSWtYSKeAivTA8//TXMexn0voRreJg+BFwjlb1cL3FQANk2Yz+Srj3kacV/k iL+d6EhPV4bTCQrRfm2DrPswjnOphn/WKxIdn4bS1AVxwTbi/LU38HbiiLsXs/xiDhyy fwZ6gSe4ll2/dQfr2DvD4+WYorVb5mu4hxzjUm3bhNI0iyFRu5c1Cyjsc4yG0pVCYBu5 c3yR85sYZUeSyK+RLDkLshFyRYkupkFISH3NI1unvenp6Ej+3BvRc3nbSIOtLp1N2nWF L60A== X-Gm-Message-State: ALQs6tCPg9krt+akzhvJ83v0im15otv9AiPsfRTwKHEQEVYJq2zy+UUl 2ilZq7N1JI/OWS5/qodf+J+HGKGQcUrtzJEteBA= X-Received: by 10.80.214.15 with SMTP id x15mr20578534edi.16.1524344911445; Sat, 21 Apr 2018 14:08:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.145.91 with HTTP; Sat, 21 Apr 2018 14:08:30 -0700 (PDT) In-Reply-To: <20180410200514.GA793541@devbig577.frc2.facebook.com> References: <20180409165615.2326-1-patrick.bellasi@arm.com> <20180409165615.2326-5-patrick.bellasi@arm.com> <20180409222417.GK3126663@devbig577.frc2.facebook.com> <20180410171612.GJ14248@e110439-lin> <20180410200514.GA793541@devbig577.frc2.facebook.com> From: Joel Fernandes Date: Sat, 21 Apr 2018 14:08:30 -0700 Message-ID: Subject: Re: [PATCH 4/7] sched/core: uclamp: add utilization clamping to the CPU controller To: Tejun Heo Cc: Patrick Bellasi , Linux Kernel Mailing List , Linux PM , Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Joel Fernandes , Steve Muckle , Todd Kjos Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun, On Tue, Apr 10, 2018 at 1:05 PM, Tejun Heo wrote: > Hello, > > On Tue, Apr 10, 2018 at 06:16:12PM +0100, Patrick Bellasi wrote: >> > I'm not too enthusiastic about util_min/max given that it can easily >> > be read as actual utilization based bandwidth control when what's >> > actually implemented, IIUC, is affecting CPU frequency selection. >> >> Right now we are basically affecting the frequency selection. >> However, the next step is to use this same interface to possibly bias >> task placement. >> >> The idea is that: >> >> - the util_min value can be used to possibly avoid CPUs which have >> a (maybe temporarily) limited capacity, for example, due to thermal >> pressure. >> >> - a util_max value can use used to possibly identify tasks which can >> be co-scheduled together in a (maybe) limited capacity CPU since >> they are more likely "less important" tasks. >> >> Thus, since this is a new user-space API, we would like to find a >> concept which is generic enough to express the current requirement but >> also easily accommodate future extensions. > > I'm not sure we can overload the meanings like that on the same > interface. Right now, it doesn't say anything about bandwidth (or > utilization) allocation. It just limits the frequency range the > particular cpu that the task ended up on can be in and what you're > describing above is the third different thing. It doesn't seem clear > that they're something which can be overloaded onto the same > interface. Actually no, its not about overloading them. What's Patrick is defining here is a property/attribute. What that attribute is used for (the algorithms that use it) are a different topic. Like, it can be used by the frequency selection algorithms or the task placement algorithm. There are multiple algorithms that can use the property. To me, this part of the patch makes sense. Maybe it should really be called "task_size" or something, since that's what it really is. [...] >> > > Tasks on a subgroup can only be more boosted and/or capped, which is >> > >> > Less boosted. .low at a parent level must set the upper bound of .low >> > that all its descendants can have. >> >> Is that a mandatory requirement? Or based on a proper justification >> you can also accept what I'm proposing? >> >> I've always been more of the idea that what I'm proposing could make >> more sense for a general case but perhaps I just need to go back and >> better check the use-cases we have on hand to see if it's really >> required or not. > > Yeah, I think we want to stick to that semantics. That's what memory > controller does and it'd be really confusing to flip the directions on > different controllers. > What about the .high ? I think there was some confusion about how to define that for subgroups. It could perhaps be such that the .high of parent is the lower bound of the .high on child but then I'm not sure if that fits well with the delegation policies... thanks, - Joel