Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp804680ybe; Thu, 5 Sep 2019 06:16:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq2KSDiMIo+Jlkw+YyspiGOjYApq4uwd7g78EaBKiyriIS91bXOyhqdd+9pmz6A2sh9NzT X-Received: by 2002:a17:902:8f90:: with SMTP id z16mr3359948plo.138.1567689391420; Thu, 05 Sep 2019 06:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567689391; cv=none; d=google.com; s=arc-20160816; b=iGDOEEsHQBECr2MpdJT/lm/hpzWpseBmYyGhkP91QU2Y5qJJ7WGd/Tq1gqnY7xGDsZ w8Y1jBt4nQ/lFzGkRMUAkPja6E4ZjDGxVy+i84rB/9HjT/uE19njNaJBUEZe41s0ejH1 NZvbqo2CW1tT0DnFMO4e0G7uXb0Oio0/nsSTmbfVetr7YfqZgCvd7dOKlFZzNKwdYzWa KhHqSHmUy9GhpfZ5AT9MhxBEKHMXfY2CIwu5CUUhVmp9v+DBagr4DBQeguTt98IHe4Uv 4Qj6ZGQuk3MPNWjr/XbQraZsilIv/7OrdvxEDmuKFD2C8QTiIlQ2/18GkupG/ZS37F9N ubuw== 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; bh=UioTZ5L/1kB94TKv8SQsqwjUfH/rzhTssYJ1pBBWqUo=; b=s/tXpkqISjcggN1eMmsP9wFzvvUKEd5P8+3aYmmOqr0QVbO/FlQnmsFd1D5PupvYaL OMqc0yCMtpsaSl1pltk4vEcb+VveV2sR8QuORpXYabHdlyBVmVy7UB8taw2uPh63eRxu jMyvuzTjPbMzgTcrOqO5ICZukSUzZVWJMx1pCygd8XJWroO2fYhQtb4909cBi1Km7wpI qhuFZjIR72yfMErrh/Q14k8u8Djy8Ju0iFJOHisPYBbWkS5y3NcMCicbMI96fkUVjMd5 V6nE4qcS76Z46UbNEDS+PC3xXtWUPbeBlwfE2JxpJL6QQCziezYOxdGGT+aROp/85iql fLmw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si1864972pln.322.2019.09.05.06.16.16; Thu, 05 Sep 2019 06:16:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387424AbfIELrb (ORCPT + 99 others); Thu, 5 Sep 2019 07:47:31 -0400 Received: from foss.arm.com ([217.140.110.172]:43282 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731660AbfIELrb (ORCPT ); Thu, 5 Sep 2019 07:47:31 -0400 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 40605344; Thu, 5 Sep 2019 04:47:30 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.194.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 74FF13F718; Thu, 5 Sep 2019 04:47:28 -0700 (PDT) Date: Thu, 5 Sep 2019 12:47:26 +0100 From: Qais Yousef To: Peter Zijlstra Cc: Patrick Bellasi , Subhra Mazumdar , linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, steven.sistare@oracle.com, dhaval.giani@oracle.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, viresh.kumar@linaro.org, tim.c.chen@linux.intel.com, mgorman@techsingularity.net, parth@linux.ibm.com Subject: Re: [RFC PATCH 1/9] sched,cgroup: Add interface for latency-nice Message-ID: <20190905114725.ehi5ea6qg3rychlz@e107158-lin.cambridge.arm.com> References: <20190830174944.21741-1-subhra.mazumdar@oracle.com> <20190830174944.21741-2-subhra.mazumdar@oracle.com> <20190905083127.GA2332@hirez.programming.kicks-ass.net> <87r24v2i14.fsf@arm.com> <20190905104616.GD2332@hirez.programming.kicks-ass.net> <20190905111346.2w6kuqrdvaqvgilu@e107158-lin.cambridge.arm.com> <20190905113002.GK2349@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190905113002.GK2349@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/05/19 13:30, Peter Zijlstra wrote: > On Thu, Sep 05, 2019 at 12:13:47PM +0100, Qais Yousef wrote: > > On 09/05/19 12:46, Peter Zijlstra wrote: > > > > This is important because we want to be able to bias towards less > > > importance to (tail) latency as well as more importantance to (tail) > > > latency. > > > > > > Specifically, Oracle wants to sacrifice (some) latency for throughput. > > > Facebook OTOH seems to want to sacrifice (some) throughput for latency. > > > > Another use case I'm considering is using latency-nice to prefer an idle CPU if > > latency-nice is set otherwise go for the most energy efficient CPU. > > > > Ie: sacrifice (some) energy for latency. > > > > The way I see interpreting latency-nice here as a binary switch. But > > maybe we can use the range to select what (some) energy to sacrifice > > mean here. Hmmm. > > It cannot be binary, per definition is must be ternary, that is, <0, ==0 > and >0 (or middle value if you're of that persuasion). I meant I want to use it as a binary. > > In your case, I'm thinking you mean >0, we want to lower the latency. Yes. As long as there's an easy way to say: does this task care about latency or not I'm good. > > Anyway; there were a number of things mentioned at OSPM that we could > tie into this thing and finding sensible mappings is going to be a bit > of trial and error I suppose. > > But as patrick said; we're very much exporting a BIAS knob, not a set of > behaviours. Agreed. I just wanted to say that the way this range is going to be interpreted will differ from path to path and we need to consider that in the final mapping. Especially from the final user's perspective of what setting this value ultimately means to them. -- Qais Yousef