Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3652151imu; Mon, 10 Dec 2018 05:49:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VOc9P8HrhPTPp36e+gLsUriz8+PBSHgu57CJMWzyLZ9i6M/+aG9+xG1D/fdq2LcZtGqOxt X-Received: by 2002:a62:8d4f:: with SMTP id z76mr12860123pfd.2.1544449787801; Mon, 10 Dec 2018 05:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544449787; cv=none; d=google.com; s=arc-20160816; b=Eo3JtfXuqx8RPQoq6b79k+hlHLVpuy+JuKf2mU/lUKBBiYYI3ccpEGVWZm6iK+EpFW SDf3VuvPQAjWVw/Ckh3HY+uSyhGigIj0n0YMkkHGMb2+qcoecvDjA+SXgo4KbH7CRCv0 4/lLdd9l+Kw35/CXVSMYRJx/N/a5f1ccx7p4zoKZQXjLtRYBUGQjaLglgqR1VxwecHd4 ZMsFMDEgS3CDJQAuS5N5Q0FugXqsV8fCMK42E5xoceY+He9qqVsstEBl9obDEWyyRXJp o1UpNlBG6Sbamk2OQZVApfkS2l/GkDwfU+QaQKRgpkJIGiH71JDHOVLOaOdSxve7juF1 F8RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=zZyLLUhZXcYJ2LtJLGESHBqFDN04cjKgYPLf3lUGB3w=; b=HijCr7HfpbTg8UGR2RahGeThN29VsHpmtitgmN/eOB25D2O8vlIogrMlu5abATqd76 OHtaPBTH58HZa/Vh0TyGKb0SAnsSfavn5lCXasF88LZjIlnGoBnNzPb/BM3owyF9tZCL QAQbZrSOaHHOB6FK4g1Rs3ky3AnkPPX6bVhjZdgwQezKYBP381eIEdQgFoDTv990OmIc rhLtvx9QEuPLwb5G/VkgorLr8rXOCwr58ZHMvIPHJBZO0233roHMwdS/0PcEO2LmXuvj IcqiHA9OcNbetro30n1fDLfJqhx0uHPULyH7dhQBt5kDZ8wy+oYYlPwueERZ04kGnMk/ exFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NzDeZ9Ku; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36si9999382pld.46.2018.12.10.05.49.32; Mon, 10 Dec 2018 05:49:47 -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=@gmail.com header.s=20161025 header.b=NzDeZ9Ku; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727545AbeLJNpu (ORCPT + 99 others); Mon, 10 Dec 2018 08:45:50 -0500 Received: from mail-oi1-f179.google.com ([209.85.167.179]:39253 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbeLJNpu (ORCPT ); Mon, 10 Dec 2018 08:45:50 -0500 Received: by mail-oi1-f179.google.com with SMTP id i6so8969281oia.6; Mon, 10 Dec 2018 05:45:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zZyLLUhZXcYJ2LtJLGESHBqFDN04cjKgYPLf3lUGB3w=; b=NzDeZ9KudDpiXL9cdONJSrPvKBsw5xsCqlcR36gRoKo7fa3HU8xHnR7sDtDApmo7By 78Yv7t8uaY0AVR2yAs/0NOq4fHbkiF3cdlS/NVfLC2XBKdJPs03wvHz5oGiEs1j2NgFa ZiZzDJh8lx/Y5U9BgFARDcjBu4wBhz9MSTOOQxK/Y4vw9OfRfHLzcyGO/98wx+cMjptz eiVzZ1tQ57KZFCyNkcugCAZL/+lB5o8wdR8V23hYlxMKJ082ob2+P3ZGL/ru9U7HQI75 bXuBZahoJqwzfmM+IpO9vCHnKTNjeR7KLlTPBc2xt0KMkckofr/Et8CT3giTkJ5Yjwtt q27g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zZyLLUhZXcYJ2LtJLGESHBqFDN04cjKgYPLf3lUGB3w=; b=MhMBgMcajl9W3GeB4Scx1xcWUnhjBHdWX52fzgwWWZ3KfuN8boa45YyTD0p2wum7kH 6+Qwm7YCpzSsPxxnyXTBMlA+0WkOPsZpyUy3x6c6s1vGo7MBxgqcm5KfGs5Y68YVzprj zl5ZsnffrQkFMx5cHagp6pF36h56F5lP/v/Z5e8ieafVnIGgoVrGS/yLwyJJUYD7rq8H q31c28gaCMutwuxS7Ed2ks1kJvpdiWCoQjm2AS5me2SHQUQZ12Ul2JGQK6pDLm3b76bN zstcVaY3KKS6Eh4JVdQkxgJNTHFV76on+AFJ9F02Jqd+NoUU6zVMhEVUCqaHQM9ScqnW aQWw== X-Gm-Message-State: AA+aEWbg7J+XXTPNgg2tn1Nw6apta7y+18X9xF91dpnZxy+4ZIo0FZkd ABeZbEmmMWmA4Dy+YULW3rQ06d7ObDULvXABUoI= X-Received: by 2002:aca:ad14:: with SMTP id w20mr7145422oie.3.1544449548608; Mon, 10 Dec 2018 05:45:48 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a4a:2819:0:0:0:0:0 with HTTP; Mon, 10 Dec 2018 05:45:47 -0800 (PST) In-Reply-To: <5534B7D4-A5D9-4F44-9620-970A7F9EC140@linaro.org> 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> From: Angelo Ruocco Date: Mon, 10 Dec 2018 14:45:47 +0100 Message-ID: Subject: Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io To: Paolo Valente Cc: "'Paolo Valente' via bfq-iosched" , Jens Axboe , Greg Kroah-Hartman , Li Zefan , Angelo Ruocco , Dennis Zhou , Josef Bacik , Liu Bo , Bart Van Assche , Johannes Weiner , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, broonie@kernel.org, oleksandr@natalenko.name, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-11-30 19:53 GMT+01:00, Paolo Valente : > > >> Il giorno 30 nov 2018, alle ore 19:42, Tejun Heo ha >> scritto: >> >> Hello, Paolo. >> >> On Fri, Nov 30, 2018 at 07:23:24PM +0100, Paolo Valente wrote: >>>> Then we understood that exactly the same happens with throttling, in >>>> case the latter is activated on different devices w.r.t. bfq. >>>> >>>> In addition, the same may happen, in the near future, with the >>>> bandwidth controller Josef is working on. If the controller can be >>>> configured per device, as with throttling, then statistics may differ, >>>> for the same interface files, between bfq, throttling and that >>>> controller. >> >> So, regardless of how all these are implemented, what's presented to >> user should be consistent and clear. There's no other way around it. >> Only what's relevant should be visible to userspace. >> >>> have you had time to look into this? Any improvement to this >>> interface is ok for us. We are only interested in finally solving this >>> interface issue, as, for what concerns us directly, it has been >>> preventing legacy code to use bfq for years. >> >> Unfortunately, I don't have any implementation proposal, but we can't >> show things this way to userspace. >> > > Well, this is not very helpful to move forward :) > > Let me try to repeat the problem, to try to help you help us unblock > the situation. > > If we have multiple entities attached to the same interface output > file, you don't find it clear that each entity shows the number it > wants to show. But you have no idea either of how that differentiated > information should be shown. Is this the situation, or is the problem > somewhere 'above' this level? > > If the problem is as I described it, here are some proposal attempts: > 1) Do you want file sharing to be allowed only if all entities will > output the same number? (this seems excessive, but maybe it makes > sense) > 2) Do you want only one number to be shown, equal to the sum of the > numbers of each entity? (in some cases, this may make sense) > 3) Do you prefer an average? > 4) Do you have any other idea, even if just germinal? To further add to what Paolo said and better expose the problem, I'd like to say that all those proposals have issues. If we only allow "same output" cftypes to be shared then we lose all the flexibility of this solution, and we need a way for an entity to know other entities internal variables beforehand, which sounds at least very hard, and maybe is not even an acceptable thing to do. To put the average, sum or some other mathematical function in the file only makes sense for certain cftypes, so also doesn't sound like a good idea. In fact I can think of scenarios where only seeing the different values of the entities makes sense for a user. I understand that the problem is inconsistency: having a file that behaves differently depending on the situation, and the only way to prevent this I can think of is to *always* show the entity owner of a certain file (or part of the output), even when the output would be the same among entities or when the file is not currently shared but could be. Can this be an acceptable solution? Angelo > > Looking forward to your feedback, > Paolo > > >> Thanks. >> >> -- >> tejun >> >> -- >> You received this message because you are subscribed to the Google Groups >> "bfq-iosched" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to bfq-iosched+unsubscribe@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > >