Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2871509ybh; Mon, 5 Aug 2019 08:10:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyzDD1Ls2gTLnPsrwWt5l331a0iKlcImWXHu4Vnt/dcgaC9GNggaVM3Z9OQSmlkFgRtIeX X-Received: by 2002:a17:902:f213:: with SMTP id gn19mr148818889plb.35.1565017806853; Mon, 05 Aug 2019 08:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565017806; cv=none; d=google.com; s=arc-20160816; b=DzCop09YEHxkl2UQCpyunKy6v2iYJZWL/SaOG6zt6PLSSjoAnuYYkaAqVR71O9KYzS LXZXU0V1ne9MNha6KMFnIMePUwnmBsKsgNsHds/I8iJr2xba/Uj68VO3YWF7VU/0igKK 96nFxkYeRkLnqPScj2cZ9nSug07QENDG3t8SmTzDZ+Ds2WqSJghIjdohcS0tDfI4ghv9 gL/HAIIpveIfK7MisOC4kBkw4WwE1IiJeVd529GadpPhGGUNOUHzzO59/Uy/lF5UbrNV WfycCWfdC6kptQF4DNt6PJ8j2UON/+VubkiERR5+A1WBGIU6rAKCXlQhDswe7JNH8+AF GFjg== 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=CfGlMJlJq1yx6eSWof1+4yQXKTkrtm+XZNLVyiuuYPc=; b=YdKJiIbdX2JEyU+VM/nxtK1CyMzeo58lZytKbK692PrpIDF4Jz7w1j2CnW4sbYJsWl fRpf4msrV+w+9sdrfi0wm08yO4h4c49r4S7Ud3Hw2aMH/mqW/fQR78qyuYaLO/lUfEZP VZ66CS5mmUXXN9t0E4gt3EVuHpkt8fAzbd3qgc2RxKZ1Xd50Y/tmKIGX4lc7njRsvKmH p8crtkFD8nkZFlOj220tlGqT5CmUa5Avv/FT9j9rUQy5w9AAvG4twF6Emetr6WvZ3ql8 hF1utBWu6D8xv5temfFX9+UX6A9VV+SLwf/MiNsG+uHzO15WKv949b15oam5ocx3Palj jLtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jbxxzFHH; 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 s18si40649822plp.128.2019.08.05.08.09.50; Mon, 05 Aug 2019 08:10:06 -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=jbxxzFHH; 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 S1729658AbfHEPIm (ORCPT + 99 others); Mon, 5 Aug 2019 11:08:42 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35216 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728952AbfHEPIl (ORCPT ); Mon, 5 Aug 2019 11:08:41 -0400 Received: by mail-wm1-f66.google.com with SMTP id l2so73332820wmg.0 for ; Mon, 05 Aug 2019 08:08:40 -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=CfGlMJlJq1yx6eSWof1+4yQXKTkrtm+XZNLVyiuuYPc=; b=jbxxzFHHvusryD5w8vzHeuPeqU/d3yLi9SHaw+kphMYUNZbQHKRDzd0wOyUR/cmUgM iMB55vlb/E8GPsyr5ucRPmimQH23RpGgdFiQBLzrxFXoq1sqDkFlGV+7etEF2y6fKRcg mc5VTGedBcNbRLHK58Op9xwxSGRqTW4NNy2ZXqz4/zNBv9SNY0VBWz5gJVC1blrGH3jF vNnmQ7gxzsoLn1ExYyoQuw5LWo9CH554+vbq0kfDJVdyCK4eq5LocjSQ4KunVUAkwDaG 7q2NuNsw16RVT8AZxS87xuORXknHwk+nYviQ763BWAYD5i9CYfsX2MjrExgAgGrwLfWf gQXA== 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=CfGlMJlJq1yx6eSWof1+4yQXKTkrtm+XZNLVyiuuYPc=; b=QYVYRkKWtDuGApHQqxcXLoid45h/S+VKu6YHUrJ76zLeVqRcN4buiKTpTzTaHNAdas 306VhM5RpqyMbH1JkdVQLcPD4//jVDCItEgnvTrqT6NjJAtjFuGw5H203vyxmYfZLzah Gm072tUUub2pAE9u9yQdg2h/jSXe3YLH0i7x1diS6az3VCnTAh+cp/KV0TBJuwRaJGvs 7nhKD1IOnl6EemL5L+PFuXd3oXc1W33igHK4rjXvlMDu3wy5Ub7TS/UbrZQMId60L6tR hBJ+/y2oh3gy35ymW4espWfF+rYvDZlqAgQ2oBm3mwHlOJEysFdniLZwJN9r89HmKLxT jYBQ== X-Gm-Message-State: APjAAAXa9j8Y86w7aHvxI49DDA7Rq3ujdpVRUXw0fe1iHJZVXhCP0/+d PU99/3gH2tlxUUHFuNk81VxveA== X-Received: by 2002:a1c:1a87:: with SMTP id a129mr18849472wma.21.1565017719279; Mon, 05 Aug 2019 08:08:39 -0700 (PDT) Received: from [192.168.0.100] (88-147-69-71.dyn.eolo.it. [88.147.69.71]) by smtp.gmail.com with ESMTPSA id c3sm87272983wrx.19.2019.08.05.08.08.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 08:08:38 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCH v2 0/3] Implement BFQ per-device weight interface From: Paolo Valente In-Reply-To: <20190805063807.9494-1-zhengfeiran@bytedance.com> Date: Mon, 5 Aug 2019 17:08:36 +0200 Cc: kernel list , Jens Axboe , Fam Zheng , duanxiongchun@bytedance.com, linux-block , tj@kernel.org, cgroups@vger.kernel.org, zhangjiachen.jc@bytedance.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190805063807.9494-1-zhengfeiran@bytedance.com> To: Fam Zheng 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 Thank you very much, Fam, for this extension. Reviewed-by: Paolo Valente > Il giorno 5 ago 2019, alle ore 08:38, Fam Zheng = ha scritto: >=20 > (Revision starting from v2 since v1 was used off-list) >=20 > Hi Paolo and others, >=20 > This adds to BFQ the missing per-device weight interfaces: > blkio.bfq.weight_device on legacy and io.bfq.weight on unified. The > implementation pretty closely resembles what we had in CFQ and the = parsing code > is basically reused. >=20 > Tests > =3D=3D=3D=3D=3D >=20 > Using two cgroups and three block devices, having weights setup as: >=20 > Cgroup test1 test2 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > default 100 500 > sda 500 100 > sdb default default > sdc 200 200 >=20 > cgroup v1 runs > -------------- >=20 > sda.test1.out: READ: bw=3D913MiB/s > sda.test2.out: READ: bw=3D183MiB/s >=20 > sdb.test1.out: READ: bw=3D213MiB/s > sdb.test2.out: READ: bw=3D1054MiB/s >=20 > sdc.test1.out: READ: bw=3D650MiB/s > sdc.test2.out: READ: bw=3D650MiB/s >=20 > cgroup v2 runs > -------------- >=20 > sda.test1.out: READ: bw=3D915MiB/s > sda.test2.out: READ: bw=3D184MiB/s >=20 > sdb.test1.out: READ: bw=3D216MiB/s > sdb.test2.out: READ: bw=3D1069MiB/s >=20 > sdc.test1.out: READ: bw=3D621MiB/s > sdc.test2.out: READ: bw=3D622MiB/s >=20 > Fam Zheng (3): > bfq: Fix the missing barrier in __bfq_entity_update_weight_prio > bfq: Extract bfq_group_set_weight from bfq_io_set_weight_legacy > bfq: Add per-device weight >=20 > block/bfq-cgroup.c | 151 = +++++++++++++++++++++++++++++++++++++++------------- > block/bfq-iosched.h | 3 ++ > block/bfq-wf2q.c | 2 + > 3 files changed, 119 insertions(+), 37 deletions(-) >=20 > --=20 > 2.11.0 >=20