Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4179134ybl; Tue, 20 Aug 2019 08:05:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFyTC91cofDe8psibt7yH28DOyRXrPDtV9LUoCrevJO3G7b2BMTcoMArfUqGF7yMIFCZbE X-Received: by 2002:a17:902:be12:: with SMTP id r18mr27473410pls.341.1566313558185; Tue, 20 Aug 2019 08:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566313558; cv=none; d=google.com; s=arc-20160816; b=lKy7XzIoI7yWOmQuQ1tYxcCNaset2vxj1CgrTkESMJC70lSs4PfcXLAzcVjv1RYcB9 koMu/uyZRVxuFB13mOO/S+z6xQ1406GPG+Ksxfi430PfTrIykyh+UY55u6HyPvcH9xSq lVvO4hImKwGkztmOeRtzeytCYj4Yq4w1ob8AylJfs8bpnxrFsZPmMDmF9NoHxMATeRIP +MoVUVl8eLZck0cHRyOI4IcoCUY/1oKWP5TTsUSCJh9bcSVAMiV8oa1IV58CVjayKdOf RM5iBEYL5RKINtEYoIPVih6IJsvwS8TWlVg45RKjsXtEnfuHm4BQqf93H088JDVMN0ZG Xv8w== 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=b/1w5LvL+fBJM0aA0+n6sQkDfXDbUnJO+MNoklWJK6k=; b=DHNntcMhmJOzhGVWmXpp/nJvZ4E+uq8nEqSgz+HvfbbaDSdI6QsiLvmRMYtOGSgSy0 19OZUbuN4FySBxYfpE8pu5vIQCKOLY9o+/TB/TQ1rhJSdnsebQLtV8IaAOIZz0fEENjJ foD8ym5hVlSF5FcUQU++mO84Ns7VgSI5nZ2e97XW0sd4WcGVBb4PZog2LLgBaHAxmzJk /pY1puT832xIs3gKmGHVcwKkeqkQrwU1k8Yafdm2fDoUZ/YuLffQYsriAy2e5pdaXxl4 e/b7SAs1AOgTjOOi7HBuWz5LUQIgxxLPIgU2JjZLVxvV3jrNtgEp0GNPhpHFVcXreEIU BmMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1wwfXpp; 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 f59si12644947plf.220.2019.08.20.08.05.42; Tue, 20 Aug 2019 08:05:58 -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=s1wwfXpp; 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 S1729937AbfHTPEb (ORCPT + 99 others); Tue, 20 Aug 2019 11:04:31 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35742 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726742AbfHTPEa (ORCPT ); Tue, 20 Aug 2019 11:04:30 -0400 Received: by mail-wm1-f67.google.com with SMTP id l2so2977729wmg.0 for ; Tue, 20 Aug 2019 08:04:28 -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=b/1w5LvL+fBJM0aA0+n6sQkDfXDbUnJO+MNoklWJK6k=; b=s1wwfXpp3IIu5zYLuh/BcfPpG9+/3h93ZL8srfWtCF6/V4AgZTQd88PQVUUcIIceg3 iSId+Jf/SelQiNRkah6dq2I28zAviqQCMMKXSS+Xiq3oPHj6m6EgZaG51LEYGQoBnQon G5r+to80gAgDsdFn3J9Kfbq0B/bgkyctwrG6pxNOikJmnb0tEmRvAZqt7d+KRolHHXm7 TwWegXMdH5f5PRHcQnm6Izew+8dZ7IHI8eGNOXbrLyLpI01vth6grw8bR/FXPEVPSkrb /Ne4lqEnKF4FHaTQ7a8RZpQ+5N9qvYCSvDIJl5JnoEnpsJiBH737i+GLHjhNBHlYpBlF jP4A== 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=b/1w5LvL+fBJM0aA0+n6sQkDfXDbUnJO+MNoklWJK6k=; b=cwBtVf1RSamfrhBTvdVnNcDln44T401iSZemMv/VIdhVwOWhQw3Sx+0AxF5V+xhlun wDvTod5r3zYk8HYBTgVKPh8B0bHkJntOF00Fc98TlUJVnctNxmrdIBrX8T7T89TF7crU LLuD9HkIOZL9RgeOJuAP20mBW7C4AJtHjUHyl8ZHL0LEdL2ae6ujiEkIH4xxDbxUmzfg 0DOGLx3s5Hmf10bmmm00PkHZIXx9Q3xwtNvpu9bc96E7hmCvny8cMJgCDNXCVSHHQFNO aACNTeFT4JBCDMXBSE9WX8OP1KxjsijCXy+C+y8bcfsxftadDYdr61NABDkrKxMlGspC 92Kw== X-Gm-Message-State: APjAAAWOv6kf0/xh9Pzp0WeESXOmv5dt1TlqGR9El01cJr9VDLiIAQ0D QsRvi3pGw6K54h0dVC5jODKnwA== X-Received: by 2002:a7b:c195:: with SMTP id y21mr498870wmi.16.1566313468179; Tue, 20 Aug 2019 08:04:28 -0700 (PDT) Received: from [192.168.0.101] (88-147-37-138.dyn.eolo.it. [88.147.37.138]) by smtp.gmail.com with ESMTPSA id f7sm25906746wrf.8.2019.08.20.08.04.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 08:04:27 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCHSET block/for-next] IO cost model based work-conserving porportional controller From: Paolo Valente In-Reply-To: <5A63F937-F7B5-4D09-9DB4-C73D6F571D50@linaro.org> Date: Tue, 20 Aug 2019 17:04:25 +0200 Cc: Jens Axboe , newella@fb.com, clm@fb.com, Josef Bacik , dennisz@fb.com, Li Zefan , Johannes Weiner , linux-kernel , linux-block , kernel-team@fb.com, cgroups@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, bpf@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190614015620.1587672-1-tj@kernel.org> <20190614175642.GA657710@devbig004.ftw2.facebook.com> <5A63F937-F7B5-4D09-9DB4-C73D6F571D50@linaro.org> 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 20 ago 2019, alle ore 12:48, Paolo Valente = ha scritto: >=20 >=20 >=20 >> Il giorno 14 giu 2019, alle ore 19:56, Tejun Heo ha = scritto: >>=20 >> On Thu, Jun 13, 2019 at 06:56:10PM -0700, Tejun Heo wrote: >> ... >>> The patchset is also available in the following git branch. >>>=20 >>> git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git = review-iow >>=20 >> Updated patchset available in the following branch. Just build fixes >> and cosmetic changes for now. >>=20 >> git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git = review-iow-v2 >>=20 >=20 > Hi Tejun, > I'm running the kernel in your tree above, in an Ubuntu 18.04. >=20 > After unmounting the v1 blkio controller that gets mounted at startup > I have created v2 root as follows >=20 > $ mount -t cgroup2 none /cgroup >=20 > Then I have: > $ ls /cgroup > cgroup.controllers cgroup.max.descendants cgroup.stat = cgroup.threads io.weight.cost_model system.slice > cgroup.max.depth cgroup.procs cgroup.subtree_control = init.scope io.weight.qos user.slice >=20 > But the following command gives no output: > $ cat /cgroup/io.weight.qos=20 >=20 > And, above all, > $ echo 1 > /cgroup/io.weight.qos=20 > bash: echo: write error: Invalid argument >=20 > No complain in the kernel log. >=20 > What am I doing wrong? How can I make the controller work? >=20 I made it, sorry for my usual silly questions (for some reason, I thought the controller could be enabled globally by just passing a 1). The problem now is that the controller doesn't seem to work. I've emulated 16 clients doing I/O on a SATA SSD. One client, the target, does random reads, while the remaining 15 clients, the interferers, do sequential reads. Each client is encapsulated in a separate group, but whatever weight is assigned to the target group, the latter gets the same, extremely low bandwidth. I have tried with even the maximum weight ratio, i.e., 1000 for the target and only 1 for each interferer. Here are the results, compared with BFQ (bandwidth in MB/s): io.weight BFQ 0.2 3.7 I ran this test with the script S/bandwidth-latency/bandwidth-latency.sh of the S benchmark suite [1], invoked as follows: sudo ./bandwidth-latency.sh -t randread -s none -b weight -n 15 -w 1000 = -W 1 The above command simply creates groups, assigns weights as follows echo 1 > /cgroup/InterfererGroup0/io.weight echo 1 > /cgroup/InterfererGroup1/io.weight ... echo 1 > /cgroup/InterfererGroup14/io.weight echo 1000 > /cgroup/interfered/io.weight and makes one fio instance generate I/O for each group. The bandwidth reported above is that reported by the fio instance emulating the target client. Am I missing something? Thanks, Paolo [1] https://github.com/Algodev-github/S > Thanks, > Paolo >=20 >> Thanks. >>=20 >> --=20 >> tejun >=20