From patchwork Mon Nov 12 09:56:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valente X-Patchwork-Id: 10678411 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D68213AD for ; Mon, 12 Nov 2018 09:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BA4E29F62 for ; Mon, 12 Nov 2018 09:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F93429F64; Mon, 12 Nov 2018 09:58:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D0AB29F62 for ; Mon, 12 Nov 2018 09:58:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728706AbeKLTud (ORCPT ); Mon, 12 Nov 2018 14:50:33 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34939 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728796AbeKLTtq (ORCPT ); Mon, 12 Nov 2018 14:49:46 -0500 Received: by mail-wr1-f68.google.com with SMTP id z16-v6so8586006wrv.2 for ; Mon, 12 Nov 2018 01:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P3gM8CEth45UYnNHSZF98Zi/zDAo21J+oNJpFvTMXDU=; b=F+07G256OoZzsTmnbt0RELuT0heBN/K8A2OrFVYc5axzgzepR5T2xKkZNXlibAtKAJ 809E2WdhkOSlr2VxSQawiDZ9b1WIzjE9faJ7tuvvOP/NGFenBt5I92R4MWTVciVtbKU9 TdhCVPR+K7VkxBtuZ276fOv470Q1nrjMDL6vk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P3gM8CEth45UYnNHSZF98Zi/zDAo21J+oNJpFvTMXDU=; b=FABa8pRvj9GPvRXPlpkI5gWrcVgYz5a22nm/xSlPmiU9BKv9xh+zkRf3z95KLvEh9t HcjPJlUN0Ph2D/EeozqS719PjfO8mOo9j1KTHJCR4hSd3ttjDEpWoDXzt4/gJw9dMtzi k6Fa+a3NCuHEszrfp3RDSU3bmU+x3mF/nQ0toYxX8sEfnZKg7GBHPXidTG2/q/FjRatt viW+14uMYl+MlZxrydD/wAiVPhcKVEaGomLypi2ZBdtA7gGGTPozFZtS/QL36LzdjG3A FhE1p5eQK8EbDBvnmT50kKl/v8nb4SrmLPLrVc32Bcl8OrltYzVLp+ogPuX+mTU+FKMV wlrA== X-Gm-Message-State: AGRZ1gJIsr+7oNs7fhJjYzlYxP2RsJ2Bq+gf4bLOms1qt8a6O/sXznvw f0utqYlinIYe3PA4XaLSje7YoA== X-Google-Smtp-Source: AJdET5dmQXJVy08gMpQhoMpmynlctBhE45z6FLv3NNiUP+8moCL8RqcGeq1AsRtgkq2/wuSqduDtxw== X-Received: by 2002:a5d:5544:: with SMTP id g4-v6mr311353wrw.222.1542016637942; Mon, 12 Nov 2018 01:57:17 -0800 (PST) Received: from localhost.localdomain ([93.68.220.21]) by smtp.gmail.com with ESMTPSA id r14-v6sm21273089wro.8.2018.11.12.01.57.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 01:57:17 -0800 (PST) From: Paolo Valente To: Jens Axboe , Greg Kroah-Hartman , Tejun Heo , Li Zefan , Angelo Ruocco , Dennis Zhou , Josef Bacik , Liu Bo , Bart Van Assche , Johannes Weiner 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, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet , Paolo Valente Subject: [PATCH 06/12] block, bfq: align min and default weights with cfq Date: Mon, 12 Nov 2018 10:56:26 +0100 Message-Id: <20181112095632.69114-7-paolo.valente@linaro.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20181112095632.69114-1-paolo.valente@linaro.org> References: <20181112095632.69114-1-paolo.valente@linaro.org> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Angelo Ruocco The I/O schedulers bfq and cfq expose a cgroup attribute with the same meaning: weight. This commit changes bfq default and min weights to match the ones set by cfq. Signed-off-by: Angelo Ruocco Signed-off-by: Paolo Valente --- block/bfq-iosched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h index 77651d817ecd..249d8128d3ee 100644 --- a/block/bfq-iosched.h +++ b/block/bfq-iosched.h @@ -22,13 +22,13 @@ #define BFQ_IOPRIO_CLASSES 3 #define BFQ_CL_IDLE_TIMEOUT (HZ/5) -#define BFQ_MIN_WEIGHT 1 +#define BFQ_MIN_WEIGHT 10 #define BFQ_MAX_WEIGHT 1000 #define BFQ_WEIGHT_CONVERSION_COEFF 10 #define BFQ_DEFAULT_QUEUE_IOPRIO 4 -#define BFQ_WEIGHT_LEGACY_DFL 100 +#define BFQ_WEIGHT_LEGACY_DFL 500 #define BFQ_DEFAULT_GRP_IOPRIO 0 #define BFQ_DEFAULT_GRP_CLASS IOPRIO_CLASS_BE