Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8951118ybi; Fri, 7 Jun 2019 00:31:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbXaWvM//xRUUjUT79qNyRN3DtuZYpesDVHR7DnSR6pgi1RZ8cDfjsCu5K8QKJmdJCUoVA X-Received: by 2002:a17:902:15c5:: with SMTP id a5mr55069699plh.39.1559892709188; Fri, 07 Jun 2019 00:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559892709; cv=none; d=google.com; s=arc-20160816; b=y+/hGBEnq2H7S41e+nGGyhwiFWk2MoII4HfEu9xtDjo4JbbkRQbwvkZe17OF9A42zS zAivmdE5S34j9pkNsynSXBlthzW1RG1nIIrKKlDAlDwdwt99lmwuWPfEQUvmon0FXFpW w6zUHwf2O6zOivu9M6Bc+bNwWKa/USxt05hQW451Sl/HAwej3y3gaNDYFd56Pf1sqUcN bN/FsFE7mwNeZJeUoJooxePoSyJAz31EP+DWFV+9JjjqKNyQ8b/CUYCMfU3gCMtdZh42 GtouCLRlDPTMU24qpjqT1cwyh4na507rb2w0xuPYxc118qJedvp1OmXHXuh+rak3mj0/ qRzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lrr6ioZcekx4kANZ44iPzLZQJWO8X7giUJsRwhjFEb0=; b=dPOnkbIi/vB7j4q2Qnos8EAr90MiXBnBxV3PpWKX4wBpP2OsgsEl8J0N0klxYhBMMa ICICAOtfXEajY3A3duvJhh+hHGzTys3sJzKtZDY/U5hOT46kprk22IWRoA6V+sSEsn0c kU8j42tl0a9dVc1OgsqBvLmWR+cBY6/NpzbqeEijwnALspWmHMNQf3H9SvFASARs+liP lXIjPkbXl2tvOnrOL+XMVoC3YTngHc5g+aN9D9sKHJL94QVBWwYHDARx3jeBYAYkjXg3 Ok75PRwx4luNcFofzWyWj2Xn0LMwlHm92kwwvmxlZAzoM3gD2eiVB+nj/63fxgHz83c1 X8OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="l7WHDDr/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37si1154173plb.351.2019.06.07.00.31.32; Fri, 07 Jun 2019 00:31:49 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="l7WHDDr/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727585AbfFGHaO (ORCPT + 99 others); Fri, 7 Jun 2019 03:30:14 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39531 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfFGHaO (ORCPT ); Fri, 7 Jun 2019 03:30:14 -0400 Received: by mail-wr1-f67.google.com with SMTP id x4so1055560wrt.6 for ; Fri, 07 Jun 2019 00:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lrr6ioZcekx4kANZ44iPzLZQJWO8X7giUJsRwhjFEb0=; b=l7WHDDr/x6pU8uYm5wJ0Y3fV2Q55Li+9kzbMpZNFSrpIEQLoGXyM/b9hnONT/bYi9P qAxGdnrXTd6FnF1ucQ5wtRB7h3DwuJyP22h8w18Mt5CrPgx6aN/2+qnc15mpd+xvAL8A btd5J7vllSPG8ebzjZBzAFWQvkhxxIxMR4vcgpZ7Vzh4DSCrWQvFvwsrwCDAOaEtXvxS z5FbtRgH+fm++h4OdrqYP4+tEsxGthbOQguem2DmX5g5YkFvRclrEFllTxW4MazRNdob O38cT/HoWGTw2ezDOjCL4zEtJdixjl2NnvFTcADXiwFHgE6Hee3j5+Lk2RCg1n+qe+cj E25Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lrr6ioZcekx4kANZ44iPzLZQJWO8X7giUJsRwhjFEb0=; b=pwNp8FrNyJiHE+s4vdDHVNLh2w2UMuepxMNb9P3/i1wKBnwjWDgOGvB3PEqtrPryxU GQvbQAuVEGAGAKBFJ4w3tExMo/n/PMgqeNEe2xFzrpuFqntU3OqHkUv6TZx37g0x9QCa 06OOgvors6myO2b+G5ykAMd/FBUzIbtCR9+7E0wsZy0TJG6pUQTvst/FxBFfsJYzTw8T 5DxZOvwwAT5ngMw1DksUlpNWpQdKnVEaGraYvm1HCEpWHe7YTCutEYbRPvFU4U5A0qxO G0hjARB1MiG4aV7l3CZTltfBNDi7zU2ITiCQJQLSQHI39rjzyAgS87wuBE5iH/H7PRPL /S4Q== X-Gm-Message-State: APjAAAXh2w91CyTRs6i7QxIcv2fOStOXGYA3DMeRL/Tb22Udt5a7D4ur z9EMNCvbPOyNZL8Pg0U2ip+hGA== X-Received: by 2002:adf:dc0c:: with SMTP id t12mr32465037wri.101.1559892612170; Fri, 07 Jun 2019 00:30:12 -0700 (PDT) Received: from [10.97.4.179] (aputeaux-682-1-82-78.w90-86.abo.wanadoo.fr. [90.86.61.78]) by smtp.gmail.com with ESMTPSA id q24sm971429wmc.43.2019.06.07.00.30.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jun 2019 00:30:11 -0700 (PDT) Subject: Re: [PATCH 0/2] block, bfq: add weight symlink to the bfq.weight cgroup parameter To: Paolo Valente Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, broonie@kernel.org, bfq-iosched@googlegroups.com, oleksandr@natalenko.name References: <20190521080155.36178-1-paolo.valente@linaro.org> From: Jens Axboe Message-ID: <854dd83a-bd07-c1c3-d005-ef7a62f0fa35@kernel.dk> Date: Fri, 7 Jun 2019 01:30:10 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190521080155.36178-1-paolo.valente@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/21/19 2:01 AM, Paolo Valente wrote: > 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). > > 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. > > 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. Applied, thanks. -- Jens Axboe