Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp829907imu; Wed, 23 Jan 2019 06:27:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN4vXKxVY2twbSBUwM4b7jxI3aQdZePBt9Zbdxq9XG13KL3xf9mToeA80tnFsmm/awPbmyno X-Received: by 2002:a63:82c6:: with SMTP id w189mr2164375pgd.344.1548253668235; Wed, 23 Jan 2019 06:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548253668; cv=none; d=google.com; s=arc-20160816; b=nscoo/nQUnFLstypd/K3FKi5VA+p7AMaX+KtU2dXPPYtbe4NcWyYZgalI/dADjsmUp TTLsoys6It4S59Uf7pFgF4CHFwf2j2b+fjDPzqS6bb5qXpK4vv1jc65s39dOCgQynzux p/o3qyfTJRdMum6ld/ZyQ80DT0ADFG6AP0lVnHbPja4jgnltIqWaLvSl7jsmqel3HNRf aetNIezCVg6qhFwI0MLHHeAkTevRg/vwxu4vE7tjv8x8JiHPEEd5e4X5pJAcpwmbz3tT 9w9C9NH9qoyZ8WuA3/ECtCKWM0l+8clo2IBAh02JxIE12s1LD2EV/9UFiuO0KNTppp2A RSTg== 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=erlNNWWp+nqjRfjDt99N+KX29+QY8srwz6EIVmwn3Sg=; b=zY1F/bP1ZLUCpny9ndfdbxb+TTZNDHZOjoGRl/BxtCrmr97PsKEcHQkNbEGV09Ellt iBN+4n76BbWYjogYBM0r3EVjt9QQ06GYAykV5tdaGSVoucfqx1NQbf9qggzfvKjC29rI LFljniVuc8g6O+79XnHaTlzfDrE7S0B3mXN8Sd+YKCbbErOJRUK6nShdqlOOqVYWUWPy l46mYlVOGQd92f2VGSxYEbgAzK8qHIbLQdW9whoFVYjSVHkPRvxbZTam4kuZO8DGysnu XBrssoaCoE0obeKVXu3eY4W207aJOKrOCyjwi2AYVvE+P7+nRRjUWOl6IeZgPS5jhEgx fK3A== 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 w10si18318526pgj.214.2019.01.23.06.27.32; Wed, 23 Jan 2019 06:27:48 -0800 (PST) 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 S1726984AbfAWOZC (ORCPT + 99 others); Wed, 23 Jan 2019 09:25:02 -0500 Received: from foss.arm.com ([217.140.101.70]:41906 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbfAWOZB (ORCPT ); Wed, 23 Jan 2019 09:25:01 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6D969A78; Wed, 23 Jan 2019 06:25:01 -0800 (PST) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 78BE93F6A8; Wed, 23 Jan 2019 06:24:58 -0800 (PST) Date: Wed, 23 Jan 2019 14:24:55 +0000 From: Patrick Bellasi To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@vger.kernel.org, Ingo Molnar , Tejun Heo , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v6 08/16] sched/cpufreq: uclamp: Add utilization clamping for FAIR tasks Message-ID: <20190123142455.454u4w253xaxzar3@e110439-lin> References: <20190115101513.2822-1-patrick.bellasi@arm.com> <20190115101513.2822-9-patrick.bellasi@arm.com> <20190122171314.GS27931@hirez.programming.kicks-ass.net> <20190122181831.a4w65qcivx4hua6d@e110439-lin> <20190123095219.GV27931@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190123095219.GV27931@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-Jan 10:52, Peter Zijlstra wrote: > On Tue, Jan 22, 2019 at 06:18:31PM +0000, Patrick Bellasi wrote: > > On 22-Jan 18:13, Peter Zijlstra wrote: > > > On Tue, Jan 15, 2019 at 10:15:05AM +0000, Patrick Bellasi wrote: [...] > > If a task is not clamped we execute it at its required utilization or > > even max frequency in case of wakeup from IO. > > > > When a task is util_max clamped instead, we are saying that we don't > > care to run it above the specified clamp value and, if possible, we > > should run it below that capacity level. > > > > If that's the case, why this clamping hints should not be enforced on > > IO wakeups too? > > > > At the end it's still a user-space decision, we basically allow > > userspace to defined what's the max IO boost they like to get. > > Because it is the wrong knob for it. > > Ideally we'd extend the IO-wait state to include the device-busy state > at the time of sleep. At the very least double state io_schedule() state > space from 1 to 2 bits, where we not only indicate: yes this is an > IO-sleep, but also can indicate device saturation. When the device is > saturated, we don't need to boost further. > > (this binary state will ofcourse cause oscilations where we drop the > freq, drop device saturation, then ramp the freq, regain device > saturation etc..) > > However, doing this is going to require fairly massive surgery on our > whole IO stack. > > Also; how big of a problem is 'supriouos' boosting really? Joel tried to > introduce a boost_max tunable, but the grandual boosting thing was good > enough at the time. Ok then, I'll drop the clamp on IOBoost... you right and moreover we can always investigate for a better solution in the future with a real use-case on hand. Cheers. -- #include Patrick Bellasi