Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5011654pxj; Wed, 9 Jun 2021 07:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjOk3lgnHhrsd6FA1Axu5ZlScHhKgtANJx45iJtdbmDcclNMGD1V6XfHYbXwh6TP4nIyzH X-Received: by 2002:a17:906:b308:: with SMTP id n8mr87538ejz.93.1623248154238; Wed, 09 Jun 2021 07:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623248154; cv=none; d=google.com; s=arc-20160816; b=HxIMW2c4hASodkUBZ7OvDgteEDSyl/GISk7xDtsCp9hcqlDE+LgH+kSFgapC1gADg+ zNQI/zDoeO1YVzei1dqO8eUIG/Ss24HCrqvdpkN1ontk4nSlf23P4wct/4tTS0G3gBtV jfsPZtb98IEFtcB9kW3ZU4sU8+SMaB3YyYsqGS1Bi2LXgKQa3pC0ComMGrLMmJ0gslsl 4U3pLnhKBdmb3e1hVySgco2oskVRz5IBWFYXTXN5RZ7mcEHTYBRqIUnlM5y9uPoHOC8P lFkGtp29bEXLTaS7v+/ALK+TdV+aETYK5i+xtFxXt01MiQBADeraVd+LPu0NO72Pl5Zy lZPw== 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:dkim-signature; bh=mo2MpnwO+DP1xBqMB5A5oZXEQTDPzNqnBAMMCRHk0qU=; b=j84FSDb98Jx7HRaLQn6ZByYsJd2qGsdRBCaEMSOioMas/fc043eL88kglvKyDcUHol z2Kln4v8AJam5VT/QsxqHbLvef5wBvlb/WEPIZjdFZKAkDUro9voHu+5kQgfovES7uum luanx7iZ+Pb8comGDShMbIXYuaeabxw7jGi32bnwtQqdH6evcRLk2gI+dRbdx8+kGx7k uaNvSoc1CWwTsmxbJ94+mElnZvaQrPGV4qXPlCpsf23D+fS5D3x7mEaBflJCcl01W81j 8j0MxsG2jIosczOkOcRrghlE7ztaStDtxX/kGjMAXd/JbOrahWHbbZ8QulYil4hjaB33 VsUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aHVaB78Q; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn42si3063345ejc.47.2021.06.09.07.15.30; Wed, 09 Jun 2021 07:15:54 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=aHVaB78Q; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234835AbhFIJwB (ORCPT + 99 others); Wed, 9 Jun 2021 05:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233188AbhFIJwA (ORCPT ); Wed, 9 Jun 2021 05:52:00 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76853C061574 for ; Wed, 9 Jun 2021 02:50:05 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id m18so24766497wrv.2 for ; Wed, 09 Jun 2021 02:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mo2MpnwO+DP1xBqMB5A5oZXEQTDPzNqnBAMMCRHk0qU=; b=aHVaB78QW2al8xftgLHHNIwy+SLjjHsFX1lzf7byM3S40NtD1wBBnlX8Voni3IMR/y zdd8lKXSqZKsAzFY2Czkh5n3H6+6gP3pQXI5vOGMbza6QLQ0+/12SDv7PX0VGsrdYXl5 zsSkurW6FXjuYimj7xbJqW0GqnNPN0P9AcbslCbAaK3InPsHlgUHgmbQUdQAdu6xaX4F 5LDWAQFru4FkSUFXIr/5vgZxj1iZ350sAse9682bXTbg5WTiV6akRydgOstg546rjO9y RVLO2H0A9YqiQGQGD2bbTZoGVQ50VY+N+D0cJShMHZA1N/jTwk1NiQ+oG0eZbn6AZAxx zzHw== 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; bh=mo2MpnwO+DP1xBqMB5A5oZXEQTDPzNqnBAMMCRHk0qU=; b=KrySFDKQ8ULp/3Xrgr9SBynjJAmzP+bNAVqChroBJBcLvdRu7JaJPq3r8ZF0FgfI2w SwAjGOJsmbNNbhGB9/ajjh7mFOUNKZ+FiFf+vLsDHG6qufU29GcyFJ815OmNpeACEByb bIhyOg5KvnTHjhH+l/GJOq/PbvIhW1XlM6BeWZQF9QdpxLOiazLn+YwH1BnPnMjNKauU 7pxh50W2LY0pdemCGwPVCPn+nmBmTisRHbvIijNnSrU15sq57lfINMDthFXP3NMDUyhU dT0COXxpR2qJaljdhDtSzT1h7RtorI6bjCes8suYKisaqo7jePoipOGShPgOPK3Ieatw Cn1A== X-Gm-Message-State: AOAM530sdf6SrxVdYc5YTXnD9mmiE9VpSqYYRotvU1ixKNQfjYG1biRr uusMdg2mmWInE1WFys4d1qFdNg== X-Received: by 2002:a05:6000:1b8d:: with SMTP id r13mr27287328wru.207.1623232203913; Wed, 09 Jun 2021 02:50:03 -0700 (PDT) Received: from google.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id z12sm25372344wmc.5.2021.06.09.02.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 02:50:03 -0700 (PDT) Date: Wed, 9 Jun 2021 09:50:00 +0000 From: Quentin Perret To: Peter Zijlstra Cc: Beata Michalska , Joel Fernandes , Valentin Schneider , LKML , Qais Yousef , Vincent Guittot , Viresh Kumar Subject: Re: iowait boost is broken Message-ID: References: <20210607191031.GA12489@e120325.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Android for instance has a pretty good idea of the tasks it cares about, and it'd be good to have a way to enable IO wait boosting only for those. Thanks, Quentin