Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4203489imu; Tue, 18 Dec 2018 10:41:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XxqyVNcO0t8kK9AKEg6nMjBidp4+/nEenpw0fZd8rZ4F7fcs+f0Q/bCNW16X/pCJgIoTKX X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr17396972plq.139.1545158482186; Tue, 18 Dec 2018 10:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545158482; cv=none; d=google.com; s=arc-20160816; b=q9/qoL46xf5NsnK7do+2XBiA9Tl/Rp016YB/sTlmHBn4jmMfac6S8E1lMjY41xImdI zf2/gmNYFzGUErZc+Lm+OBZ3M3kb5hLJwtsWzC1Lkkwbu+loRVdKI+1bC9/tqdtwKWRG Q6nonn4rNIu5D/6L/byes8edb5w7ySyAVW0F/e951UQB6No16bPr31hGjQDzGej+uzQS lRL8tC1WlWG5Sht7et4eOZAqtAeg4AXWU1WET7fR2Ve1dUmW0FKqh8yjvGtyl25Uz1o6 pZNqHm8OVvRXBfyYcGFzwUfNDi9DBS127JKy5V4DJ3w2bRwwEomeIQDlEFjWd7mIo+Ex dPog== 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=6lEfEC1lHx7ice2Le/HKQJGJ1GtmYuRqhVayCgxWRhY=; b=Fng7m8NjiWNm/xaBV4+UiD22X/TYeLyM7dEqsPlXE8O0tVriffKX6VbvWnwRZ7/hsm J6OczhGBKcfKhidLKmg1EqqR+A7/dzPiIvHYRAc4G3OPa/Rtg7WP4kKMjeq/DkDOyf6r SyOHdoqmSFm24aVdUABgsLS8J5XGZYdD1/JbZgvsMZ0CDA3R239pP7vQu4ZE3BZXYn/3 Pmnh4jXrYAvdorQMxcZkll73Y7nDwSYnDVte1UUlB2WvA5DrEW5VR8D9rXS7LPyK+0sh cQLgLNpu3qYMULRCxDTs+Dl6MHCBdiulx2haMtzncBA8cd2tFdgFSCikzdCwbu5VAwm5 VgrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4NhPEvv; 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 1si13941635ply.409.2018.12.18.10.41.06; Tue, 18 Dec 2018 10:41:22 -0800 (PST) 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=X4NhPEvv; 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 S1727524AbeLRSFr (ORCPT + 99 others); Tue, 18 Dec 2018 13:05:47 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35912 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727465AbeLRSFr (ORCPT ); Tue, 18 Dec 2018 13:05:47 -0500 Received: by mail-wm1-f68.google.com with SMTP id p6so3476265wmc.1 for ; Tue, 18 Dec 2018 10:05:45 -0800 (PST) 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=6lEfEC1lHx7ice2Le/HKQJGJ1GtmYuRqhVayCgxWRhY=; b=X4NhPEvvQIRX7udARiL0IrXceTbHRgn4yeGsIf0NAv5+fanbfYkF8e72S+/3RrMvY1 Zt5O1SOYcocxeEBMtuaPV6i58TpJToRHnelhtLHhbSUcRsxSg71MWH5QLC6xaZwQDH03 yZsnvi7qBhnpRX2CWL3N4I0JyVHGMVCCXgGbA= 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=6lEfEC1lHx7ice2Le/HKQJGJ1GtmYuRqhVayCgxWRhY=; b=iPoV2ZZXtionxZSBKduR+ULSMaW/FPjkPDkJHK2Hli20l7gSaRVsAqO3TOVMztYsUZ d/eqE1LL3Q88ihoRO8GGcVGpQgTJ5gtzeZPg3HfFlJkp+itwCuMCky5Qw+NPNxCA8sIQ C08sx92YQMDZpCt42nvedIUR80bgPP7FKB3he9tlYZjtbSMZScy2jTw6STJ31rLC6VJL WPMlt/Toqf0EC7EzEiFk+ox7cMw5tUGX7IRfXBHMfOr8sr6EGwyiUWAGRjPUkQfixyCR s360gVm4kpnpnheNC8CX6oGes+BS0OHsVXIVOjyxURk0VqZHJxbWQmiZsJCJHRKmbWx1 jUhA== X-Gm-Message-State: AA+aEWbOVwQg9VH5Yy6lL/TnPUzPizvdZvZvY/dUq7n0SRyX8AyKe2tW 8aoeMt8VGdyCM5gwxswWfu9ioQ== X-Received: by 2002:a1c:1741:: with SMTP id 62mr3954903wmx.25.1545156344847; Tue, 18 Dec 2018 10:05:44 -0800 (PST) Received: from [192.168.0.100] ([84.33.66.6]) by smtp.gmail.com with ESMTPSA id y185sm1943751wmg.34.2018.12.18.10.05.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 10:05:44 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io From: Paolo Valente In-Reply-To: Date: Tue, 18 Dec 2018 19:05:42 +0100 Cc: Tejun Heo , Angelo Ruocco , Jens Axboe , Greg Kroah-Hartman , Li Zefan , Angelo Ruocco , Dennis Zhou , Josef Bacik , Liu Bo , Bart Van Assche , Johannes Weiner , linux-block , linux-kernel , Ulf Hansson , Linus Walleij , broonie@kernel.org, oleksandr@natalenko.name, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet Content-Transfer-Encoding: quoted-printable Message-Id: References: <20181119103424.3853-1-paolo.valente@linaro.org> <20181120162816.GV2509588@devbig004.ftw2.facebook.com> <25296DAE-73EC-46CC-9A98-A8B7E9017BB7@linaro.org> <7D7FAB43-5F62-4402-A9B3-E7C2E30AE680@linaro.org> <20181130184256.GI2509588@devbig004.ftw2.facebook.com> <5534B7D4-A5D9-4F44-9620-970A7F9EC140@linaro.org> <874A0232-2103-4364-BD88-F33B85D6A764@linaro.org> <20181218164126.GX2509588@devbig004.ftw2.facebook.com> To: bfq-iosched@googlegroups.com X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 18 dic 2018, alle ore 18:22, Paolo Valente = ha scritto: >=20 >=20 >=20 >> Il giorno 18 dic 2018, alle ore 17:41, Tejun Heo ha = scritto: >>=20 >> Hello, Paolo. >>=20 >> On Tue, Dec 18, 2018 at 08:48:10AM +0100, Paolo Valente wrote: >>> If Tejun cannot see any solution to his concern, then can we just >>> switch to this extension, considering that >>> - for non-shared names the interface is *identical* to the current >>> one; >>> - by using this new interface, and getting feedback we could >>> understand how to better handle Tejun's concern? >>> A lot of systems do use weights, and people don't even know that = these >>> systems don't work correctly in blk-mq. And they won't work = correctly >>> in any available configuration from 4.21, if we don't fix this = problem. >>=20 >> So, when seen from userland, how it should behave isn't vague or >> complicated. For a given device and policy type, there can be only >> one implementation active. >=20 > Yes, but the problem is the opposite. You may have > - two different policies, with the same interface parameter,=20 > - one active on one device > - the other one active on another device >=20 > In that case, statistics from one policy necessarily differ from > statistics from the other policy. >=20 > In this respect, in a system with more than one drive it already > happens that the same policy is active on different devices. When > printing a statistics interface file for the policy, the output will > be a list of separate statistics, with a bunch of statistics *for > each* drive (plus a grand total in some cases). >=20 > So, our proposal simply extends this scheme in the most natural way: > if, now, also two or more policies share the same statistics file, > then the output will be a list of separate statistics, one for each > policy. The statistics for each policy will be tagged with the policy > name, and will have the same identical form as above. It seems the > most natural hierarchical extension of the same scheme. >=20 > At any rate, if you don't like it, just tell us how you prefer it > done. Do you prefer the sharing of statistics file to be simply > forbidden? (If this can be done.) I think such an incomplete solution > would preserve part of the current mess; but, if this allows us to > exit from this impasse, then it is ok for me. >=20 > *Any* feasible option is ok for me. Just pick one. >=20 >> It doesn't make sense to have two weight >> mechanisms active on one device, right? >=20 > (Un)fortunately, the problem are not weights. There won't be two > weights for two policies expiring a weight parameter. The problems s/expiring/sharing sorry