Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8927144ybi; Thu, 6 Jun 2019 23:59:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvsKq1igowRe4WWdufjlZh9hG7xeaE+Cj11rxg5NdDWbdI5RK06j/pNEa6BMVNsHXap6+A X-Received: by 2002:a63:27c7:: with SMTP id n190mr1468958pgn.250.1559890761378; Thu, 06 Jun 2019 23:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559890761; cv=none; d=google.com; s=arc-20160816; b=oXqsEUAtGAmQ3f2F+IJ2TnEmLverdW4z5Caw0QshYPXahmETdRmwizAaXnU42xMtX4 VrazbClB5w7WaRQXH8WPsxpjUhFSurz0wIIKBhcdB5sE+1/9BQlR4dk54+t0t9Xs29qV uFJZdklF3P7WtIguWZ21jfRE2ItqgzPlA1EdUjcwRRcL8g6oV57v1+7yosUoLl491bF4 7/c0Ey0KcCkJnVZ1d51Ll3rmDN8c/x6O2alGnDn13zHOGOSiOh+xV4mKxXKRSEJh1QjW NZgk0oFdYL5pVxLuH8wT3ydcs5gRvL+MWB0eeatwaIcHdJOG5dmlbGzya+Mm9ILt/FcU MHbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=H1hK/RDmUIiwsn0IMBWePbb6aZ41gT1eJ3R/H52wOko=; b=s/TnwDntoTP6KeRa7AQykUtE57nP50F3cHf1Eh4tI1FgGj6FHxyssGN8nW5HkcN0iT Vzk8NKPZ+bej3YeZiY8f4uWaDA/Dmr6DygYt84A7T9NuSnYLIVxg+e01D4/exIMR5IRQ yI+FDjoc91Qsd4im2CEz4FEy+xLffxEyxqJdIs4ZSxEkvMR4A3420TNRVa35c+vtKA/v aiz2ZgdRrkwV07My8/xjJiwne2oBs9/NjOi6FPP5rumnmOsufmxVAiWO0JeVFfvDarhL zCVf/eO7v5yGjPRCVIKKpLtCKC7Cu3xu13MCOi5blZnBw0QkvQrNKlFEvJlEV4Eb2eP+ 5DiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N6XwBdMD; 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 v4si1047998plp.404.2019.06.06.23.59.02; Thu, 06 Jun 2019 23:59:21 -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=N6XwBdMD; 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 S1727221AbfFGGU0 (ORCPT + 99 others); Fri, 7 Jun 2019 02:20:26 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34217 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727150AbfFGGUZ (ORCPT ); Fri, 7 Jun 2019 02:20:25 -0400 Received: by mail-wm1-f65.google.com with SMTP id w9so3306385wmd.1 for ; Thu, 06 Jun 2019 23:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=H1hK/RDmUIiwsn0IMBWePbb6aZ41gT1eJ3R/H52wOko=; b=N6XwBdMD9YQ2xRZnlb9SE5vj7v6ei/Ro0wdZZzuxmm59Zhc1TAX22hZvlfqMrIQtaK xk3lehdM/w/e4u4RlfHyqhXxtE/AgsgY/nURSB1kdbSrq3EOUZaX1KRszVmf9hry4xBs 8yxzPWhB/X7DEfXmBIz5si1Y9UtNrgfXk+HomYhX0kwna/q2SQrQayMqWKmvy6CQlGLj 9xY1M7A6Zbwa8wsV+RjYuELSWQmHh7iEu1Zj4+0lBAeDTecEZIUBdH/DDaiMpzp4iUlQ YpAQL/503w5yEz6Kw1FuTnpJIwW+NW/yIH+Xw+NUjSedbbPP8Cbd42f7jsi4ZZCOlUZg JZhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=H1hK/RDmUIiwsn0IMBWePbb6aZ41gT1eJ3R/H52wOko=; b=VvGuh3OsNOtyA/QY6Rg7XG+jSY+eS8T5ep++Xo6Y++E5BwD+kjwHh2rrswwuxBOhKt khjM03NEyo6LKyJVwWjV5KcwdkYsYDM2tP4802qKxhYOEhfayB7VRN762xI1Q8V2sj7k bXw90pYiXdEpUIbjdGzHinCD6zIE+/TXBGYnRnF+q6hY+qiM8GlXZHdv/Ip7Bgp+q4Xm NLxM2r0tXZExorWeuZpkP7GAMDtmj/uSytzqBw67wv0l01RKBxbsMcQZggsySy3BpTCZ szQtVsJDRUj2Va1vb/VafRWTHS2qYG0GitHRBU37qCP/InV0TxtA29S5/Cj4otSy3BFK GSlA== X-Gm-Message-State: APjAAAW5SEra+TyNKk1ISz/VCv4qUtuFA3QT0UDNQgcCXNxGYDSlwBCL oAi0ld84w1fUuH2Idg43vYTByw== X-Received: by 2002:a7b:cd84:: with SMTP id y4mr2422869wmj.41.1559888423707; Thu, 06 Jun 2019 23:20:23 -0700 (PDT) Received: from [192.168.0.102] (88-147-34-172.dyn.eolo.it. [88.147.34.172]) by smtp.gmail.com with ESMTPSA id n7sm804018wrw.64.2019.06.06.23.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 23:20:22 -0700 (PDT) From: Paolo Valente Message-Id: <38971C09-E691-4129-BE6A-E21337EAE884@linaro.org> Content-Type: multipart/signed; boundary="Apple-Mail=_7DA8BBC8-3D3F-41ED-B7DD-4265FA89D2CE"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCH 0/2] block, bfq: add weight symlink to the bfq.weight cgroup parameter Date: Fri, 7 Jun 2019 08:20:21 +0200 In-Reply-To: <406CC451-A318-4EC5-942D-4CCFABFBC402@linaro.org> Cc: linux-block , kernel list , Ulf Hansson , Linus Walleij , Mark Brown , noreply-spamdigest via bfq-iosched , Oleksandr Natalenko , Angelo Ruocco , Fam Zheng To: Jens Axboe References: <20190521080155.36178-1-paolo.valente@linaro.org> <406CC451-A318-4EC5-942D-4CCFABFBC402@linaro.org> 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 --Apple-Mail=_7DA8BBC8-3D3F-41ED-B7DD-4265FA89D2CE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii ping > Il giorno 30 mag 2019, alle ore 17:02, Paolo Valente = ha scritto: >=20 > Hi Jens, > have you had time to look into this? >=20 > Thanks, > Paolo >=20 >> Il giorno 21 mag 2019, alle ore 10:01, Paolo Valente = ha scritto: >>=20 >> Many userspace tools and services use the proportional-share policy = of >> the blkio/io cgroups controller. The CFQ I/O scheduler implemented >> this policy for the legacy block layer. To modify the weight of a >> group in case CFQ was in charge, the 'weight' parameter of the group >> must be modified. On the other hand, the BFQ I/O scheduler implements >> the same policy in blk-mq, but, with BFQ, the parameter to modify has >> a different name: bfq.weight (forced choice until legacy block was >> present, because two different policies cannot share a common = parameter >> in cgroups). >>=20 >> Due to CFQ legacy, most if not all userspace configurations still use >> the parameter 'weight', and for the moment do not seem likely to be >> changed. But, when CFQ went away with legacy block, such a parameter >> ceased to exist. >>=20 >> So, a simple workaround has been proposed by Johannes [1] to make all >> configurations work: add a symlink, named weight, to bfq.weight. This >> pair of patches adds: >> 1) the possibility to create a symlink to a cgroup file; >> 2) the above 'weight' symlink. >>=20 >> Thanks, >> Paolo >>=20 >> [1] https://lkml.org/lkml/2019/4/8/555 >>=20 >> Angelo Ruocco (2): >> cgroup: let a symlink too be created with a cftype file >> block, bfq: add weight symlink to the bfq.weight cgroup parameter >>=20 >> block/bfq-cgroup.c | 6 ++++-- >> include/linux/cgroup-defs.h | 3 +++ >> kernel/cgroup/cgroup.c | 33 +++++++++++++++++++++++++++++---- >> 3 files changed, 36 insertions(+), 6 deletions(-) >>=20 >> -- >> 2.20.1 >=20 --Apple-Mail=_7DA8BBC8-3D3F-41ED-B7DD-4265FA89D2CE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEpYoduex+OneZyvO8OAkCLQGo9oMFAlz6AiUACgkQOAkCLQGo 9oNu6Q/9Hkd8DyVaH7dQ59vEgRtqcgg1iU6GP+VNGUTxNLZ09Ods6bqmZrcGke9K phBaiKyrkzh3ozmIpgZItaVcQ7XcIQjt7c22ZzEZyXHb9WB3LSDePOyM+rwpG0qX PlHlzjU8IZuOmzYrFJcwblxFsbMD0+Qsje0/d43nEbRd6UP49woSROPDgzYdFGJM YctiEH9StBuyWze/jjTiUqffRRsHgacfLIlnGX9hy0vtzQgwK72RnVNbqsMDQvUA /fZapznTAQ65g5PbdhMd9EngLNmHUQecbcZL2f/CFMWeA0J3DsEJfdTi6rA2dD9T EgMSRlRAOzt7ruMtN7S9pWaVVQr6SyymNmnEMwhe5X6Lg4v+W65762g8A7aAIKDa EiNMQ6tSquvY8k1CO4NSRGkeyyHgsyLHxL0GRTenbkCIxkf8aNOLStetIIbh3q33 aDGWVUPzaEawo0BLCJbafoBDm/JXfIElNZfY9Hk73Xq+UghIjUSAwmeHxtei4t6k iLKItx4eU7CLY5l82JAYNBz6Q+h8ZtX6FsAZjT6XJ8Y0cWo8t8bpZ+HDxsh8TVRX txH+gujqQ6lH3arNmGFrZsUhbDUrRzMsAABbOyS3hsT5dqWvoeWYIi12+C6imK91 OkTgvztoDswDelvgkTbbZ/ZmkniTpIR6lerb1EbLZ1ot3Un8A64= =A1RR -----END PGP SIGNATURE----- --Apple-Mail=_7DA8BBC8-3D3F-41ED-B7DD-4265FA89D2CE--