Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp611093pxj; Thu, 10 Jun 2021 08:31:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyirJATXSfW9Q3AHeSqm0zwGvu7gUstxJDR/vucTj7stF351Cgql3SwchGi6vBnmh93V1ng X-Received: by 2002:a17:906:4e91:: with SMTP id v17mr156179eju.119.1623339079072; Thu, 10 Jun 2021 08:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623339079; cv=none; d=google.com; s=arc-20160816; b=CjSi3Bs1GgecHW7zUshs65EoGpRfrj5gfahlzr809okb5GIbo/3krN9dYhUzBkXIJl 0GfrUMaYjFfoWNRLjH0NCVRLxG9DU9El3PxrCb1Uu8ZYpFbLsU7IAyX5kEpoInMqsHtO hxU8s9oKD//nViwBS5vGgX8z5eU0o5/7hnCRB7PozVdYY8p3KxP39AvpxGI9dht2GRYI Ld9H0cuXqzAqVbVjMsGD4qWLb3C6Lpp83hORRkuR7Iu/C5bPAJPyg+f4S2u9D/or7Fqd SiBwNCCvAFjtWiysq7rbzFC/4haS1PtF3WyLD3syyHA1lPz0teUe86/H1OyEvxDnG8PS MQGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+PUEmIM8N/JL+lS5wjLaxUSyU2quUv12BE1h2YO5UEg=; b=shlRB3/Dp6XkfRKG3cu165qw98s0eqS+anNZDP8wYO9WqFnyBLPUhwb5Et3GwdIWRb QJDoIHApdJf3JUF2ZfGxAtgP3RXxvVZmjq1SvC/7W8CJxI2i6fLXNcznWy1KZxh632do mMPxEEH6l0WaJi67Avt2o66xl93c+ab9Z5fSqUT5HEgn6ECrTgL0gWHgd9/UI91Vsc6z vARc4eUSriL13wQ8Rvbih0GMtIPvl7YiJzyPddIT7Q8zh/LCW56Tp3qPsagLAAZ9gOXc o+IHCSzXhEH8eBlx5Vk1TrhQJ55ZJVENfgRgPmpsL22F/imAx8HWdjFGFGdf4ISNLJc+ mZKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si2411034edt.551.2021.06.10.08.30.55; Thu, 10 Jun 2021 08:31:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbhFJPa6 (ORCPT + 99 others); Thu, 10 Jun 2021 11:30:58 -0400 Received: from foss.arm.com ([217.140.110.172]:34570 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbhFJPa5 (ORCPT ); Thu, 10 Jun 2021 11:30:57 -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 51706106F; Thu, 10 Jun 2021 08:29:01 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3449F3F719; Thu, 10 Jun 2021 08:29:00 -0700 (PDT) Date: Thu, 10 Jun 2021 16:28:57 +0100 From: Qais Yousef To: Quentin Perret Cc: Peter Zijlstra , Beata Michalska , Joel Fernandes , Valentin Schneider , LKML , Vincent Guittot , Viresh Kumar Subject: Re: iowait boost is broken Message-ID: <20210610152857.lqtu2xl3364l6fyh@e107158-lin.cambridge.arm.com> References: <20210607191031.GA12489@e120325.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/09/21 09:50, Quentin Perret wrote: > On Tuesday 08 Jun 2021 at 19:46:54 (+0200), Peter Zijlstra wrote: > > On Mon, Jun 07, 2021 at 08:10:32PM +0100, Beata Michalska wrote: > > > So back to the expectations. > > > The main problem, as I see it, is what do we actually want to achieve with > > > the I/O boosting? Is it supposed to compensate the time lost while waiting > > > for the I/O request to be completed or is is supposed to optimize the rate > > > at which I/O requests are being made. > > > > The latter, you want to increase the race of submission. > > > > > Do we want to boost I/O bound tasks by > > > default, no limits applied or should we care about balancing performance > > > vs power ? And unless those expectations are clearly stated, we might not > > > get too far with any changes, really. > > > > You want to not increase power beyond what is needed to match the rate > > of processing I suppose. > > Note that in some cases we also don't care about throughput, and would > prefer to keep the frequency for some unimportant IO bound tasks (e.g. > background logging deamons and such). Uclamp.max indicates this to some > extent. In theory, one can have a user space daemon that monitors IO (via BPF?) and auto boost via uclamp. You can have allow/disallow list per-app too to setup the limits. So I say rm -rf iowait_boost and let's make it a user space problem :) /me runs -- Qais Yousef