Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp587296ybe; Wed, 11 Sep 2019 01:23:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwF1HJ827T5vJWexwOobvhLc/XQajsqHIOyIeXFpI6oHUAI3tBKNE7ONAEUC5qxGwpJthet X-Received: by 2002:a50:b885:: with SMTP id l5mr34061416ede.190.1568190206696; Wed, 11 Sep 2019 01:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568190206; cv=none; d=google.com; s=arc-20160816; b=r+L9lEvKuGarkV45ReItw8v9tgX76qzzxDfxa7hsN2yAzZkQbT7M1Nb/lQUG/M0C3p FzW06vb9t3G5YfiKG+suu5ENQ+UPnnaUYdmIOe/r7Jzb+WbCAhBwcHsOzml2Xy7TMQ9S /Zm28p8bTIBdQQbEFr8nDauaO1JqNrGuAX9JrZn2RsCL9P/pcEABewwe76XDwgGh1ZPU x5de3nJYWk/jCokU5OTGsCcROfD/nsS9HJt0oMPQdmIdZ+xTdIjL2vqohQQPCwm2YLTB DUJaYJ1BrDbxiQGvizoypfx4/fzdi8Y6jWx5/6XLMO6V9JLFb9fNijIRTpRL/Bzvb1bv sAiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=R6bNyRB3okcLgmMwzrbkbbFt8yg4QtbotOgZ2XtiVFQ=; b=LS4x63acraVGAjZms9OQ3IaL2ITdbFktiRKny2qDHABYwrz5oxoDkKNshq3oQdkeae /ig8KMIK+ZTiWAJihdJVA5m5mAoZm8UC5l1X8ks3FRQUNbWfKqP1FbTYi3L3rz9tEqhj IkLfl1dJDOUt03T5OPAPLYg+XonpDsrC68QqOOYaDpL6LJ0wu6WKx2P7msH6ifhCJqbG q2o/MgXTpU4R0dzbFTc91TYk8msjJdQkmAx+aNSKSzSHgri8+eGCPCv4prpJrpsuHmEh Hia01xC76XcYcwljfZjhz4dJyrNmrAEwYZji7lPQcRkmyF1KLgiSGnhivXZoPlUjcZML TQXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T10RJz72; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si8622599ejd.400.2019.09.11.01.23.02; Wed, 11 Sep 2019 01:23:26 -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=@linaro.org header.s=google header.b=T10RJz72; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727154AbfIKITC (ORCPT + 99 others); Wed, 11 Sep 2019 04:19:02 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34983 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbfIKITB (ORCPT ); Wed, 11 Sep 2019 04:19:01 -0400 Received: by mail-wr1-f67.google.com with SMTP id g7so23493560wrx.2 for ; Wed, 11 Sep 2019 01:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R6bNyRB3okcLgmMwzrbkbbFt8yg4QtbotOgZ2XtiVFQ=; b=T10RJz72P4bazLOmVQcxgR86fu6+qGr1JftyGJUuSDSuJccnd7vnWx7F+SNdOVW//i dOaN5N9S5adBx5TFmelByaEo4t5VgpA2m00JbgDiWz854afZSstaupDlHffRMzRX7BW2 ZVep8klfo0LjL8jDbGF9aBeqfc5LA2Gvq+MrL4GAcIk2e5Z6wy+EzBeW9rGl2x0GJFdL ENacUnjM+CLhVcMXW45xALoU7qPPovZHx4xK9O8WUkQgISEOMTordF9jLBmq07SbwTX1 IPhe76cE//tEyQNVvZ2aEZ2AgtdRegAuQFcgTKjoEz53rrrZUSW8mjDTQLaM34MgxpoN /dPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R6bNyRB3okcLgmMwzrbkbbFt8yg4QtbotOgZ2XtiVFQ=; b=duy2RPN6L4G8uSc3WvIgMPyQ3OvO+9yWGI5vZhGDmXAz/2Sl03aRgcFlblUF9KxTvm VnXDOlzI7CX6AIPoV56EjGAF3nZiyjcbxW1AJEQpow44/3YyxX57ruiqebSJvqw17NLq U3BzLNnVONjx0eF57dyFDoWDRie3ClUuEeFMnBpzgymfLPe3n1Lw3SZE/EmKAtEe0CVV DJqEqkH8cEx6Kk8I8MX7IYAyie7G86qlAoDdmwIoDRLMhtP0+jvdMjnpjMyHGXp82dbB ENp3AzPkS/zF5AGaTphvn0ydDKiPuwvlP5lDc1sV9fiyTRA1k5a+Vh3rNyRFE8wuUI8X lBaQ== X-Gm-Message-State: APjAAAVr/NiC69ZtENyePAyxHwkJM5qQp7EUe/Pyxj4UZZ+ZrRjpL/rM EXZVyOuipj7qTlQ7vtTiUXrfGg== X-Received: by 2002:adf:dec2:: with SMTP id i2mr13353996wrn.92.1568189937470; Wed, 11 Sep 2019 01:18:57 -0700 (PDT) Received: from wifi-122_dhcprange-167.wifi.unimo.it (wifi-122_dhcprange-167.wifi.unimo.it. [155.185.122.167]) by smtp.gmail.com with ESMTPSA id h125sm2539418wmf.31.2019.09.11.01.18.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Sep 2019 01:18:56 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCH 08/10] blkcg: implement blk-iocost From: Paolo Valente In-Reply-To: <20190910160855.GS2263813@devbig004.ftw2.facebook.com> Date: Wed, 11 Sep 2019 10:18:53 +0200 Cc: =?utf-8?Q?Michal_Koutn=C3=BD?= , Johannes Weiner , clm@fb.com, dennisz@fb.com, newella@fb.com, Li Zefan , Jens Axboe , Josef Bacik , Josef Bacik , kernel-team@fb.com, Rik van Riel , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190828220600.2527417-1-tj@kernel.org> <20190828220600.2527417-9-tj@kernel.org> <20190910125513.GA6399@blackbody.suse.cz> <20190910160855.GS2263813@devbig004.ftw2.facebook.com> To: Tejun Heo X-Mailer: Apple Mail (2.3445.104.8) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 10 set 2019, alle ore 18:08, Tejun Heo ha = scritto: >=20 > Hello, Michal. >=20 > On Tue, Sep 10, 2019 at 02:55:14PM +0200, Michal Koutn=C3=BD wrote: >> This adds the generic io.weight attribute. How will this compose with >> the weight from IO schedulers? (AFAIK, only BFQ allows proportional >> control as of now. +CC Paolo.) >=20 > The two being enabled at the same time doesn't make sense, so we can > just switch over to bfq when bfq is selected as the iosched. I asked > what Paolo wanted to do in terms of interface a couple times now but > didn't get an answer and he posted a patch which makes the two > controllers conflict, so.... Paolo, so it looks like you want to > rename all bfq files to drop the bfq prefix, right? Yep, mainly because ... this is the solution you voted and you yourself proposed [1] :) [1] https://patchwork.kernel.org/patch/10988261/ > I can implement > the switching if so. >=20 That would be perfect. Thanks, Paolo >> I see this attributes are effectively per-cgroup per-device. = Apparently, >> one device should have only one weight across hierarchy. Would it = make >> sense to have io.bfq.weight and io.cost.weight with disjunctive = devices? >=20 > It never makes sense to have both enabled, so I don't think that > interface makes sense. >=20 >>> + .name =3D "cost.qos", >>> + .flags =3D CFTYPE_ONLY_ON_ROOT, >>> [...] >>> + .name =3D "cost.model", >>> + .flags =3D CFTYPE_ONLY_ON_ROOT, >> I'm concerned that these aren't true cgroup attributes. The root = cgroup >> would act as container for global configuration options. Wouldn't = these >> values better fit as (configurable) attributes of the respective >> devices? >=20 > Initially, I put them under block device sysfs but it was too clumsy > with different config file formats and all. I think it's better to > have global controller configs at the root cgroup. >=20 >> Secondly, how is CFTYPE_ONLY_ON_ROOT supposed to be presented in = cgroup >> namespaces? >=20 > Not at all. These are system-wide configs. cgroup namespaces > shouldn't have anything which aren't in non-root cgroups. >=20 > Thanks. >=20 > --=20 > tejun