From patchwork Mon Nov 19 10:34:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valente X-Patchwork-Id: 151472 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2489966ljp; Mon, 19 Nov 2018 02:34:55 -0800 (PST) X-Google-Smtp-Source: AJdET5c0GAnGLdW/pINIzW4mGXG4ZwiWCyZAVmOyJKayqWOGXWIvHT1JCOSbKNzhqCjwyLii9iYn X-Received: by 2002:a63:cc12:: with SMTP id x18mr19435535pgf.33.1542623695322; Mon, 19 Nov 2018 02:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542623695; cv=none; d=google.com; s=arc-20160816; b=SSCI0bAg82DvrXdqqKtTpnGtEifYw1JbvDfmh8dTj2wBAhqIssLTO6j+eYrAOmghTJ Fsok7qH+7LiaWu2Rxe+zcwkFMb57Xwu6koGyOgAqdn/Ua0ebfn3H6ll+lQtFDqdCUKBu H302MnW70RirKqbdvT9Mc0TyduIBZFDB29yE5NyZz91GQEHz820gK1fXB1/07BqYL1/h LxWsN0e6AZc2iyt/0lDuDhIOyuhoy+JwbopDejifwjau7QH8uszNFl8KVpJh7EbgLAnP NE60VJFtVuv13xt78ZKmhjBZ168Qys8kwfELiHYN4PXiKkiTjgLF8WCvdJ62qcD7Y9Gc +Q5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=X5boqJ0UbdeKGVE+FnIPUcIjT6rvSPY3NTZlqHlp7eY=; b=LCKofZ+xyCD+pYETq1xUcpfIA4S7vMHElNNaMmqBQ+XNGhdU5ELYh3bwNHTj/rwu1g Wia1lMVGvAuN0ln7hQonpKcfoBmkC3I9oRNMJXzXh6uN+ksWUJuDsdyhtsIVN35OBcHW PfwgkMtn0HT/fzAUiCHZEYxlSGiX+kqMkiDbwWCdmFZoyz6PDTFBLx68uS3abQWyBBFX etYJDdPmzkOGtdIWqljnR8CLV+xvZ4CBJ/zkk+p1yckEQg0mbUyemktn07Z2xwn/Mh61 bh/ghjRXJC6AwM1jdOs2uRv1F+4RHrQN+0Dt2HOCqwyU9yaCgHpmxiLAEaCljSpnMdLB OETQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cOaOohdK; 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 y5-v6si36714014pgv.38.2018.11.19.02.34.54; Mon, 19 Nov 2018 02:34:55 -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=cOaOohdK; 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 S1728277AbeKSU6F (ORCPT + 32 others); Mon, 19 Nov 2018 15:58:05 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38379 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728238AbeKSU6D (ORCPT ); Mon, 19 Nov 2018 15:58:03 -0500 Received: by mail-wr1-f65.google.com with SMTP id e3-v6so31458227wrs.5 for ; Mon, 19 Nov 2018 02:34:50 -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=X5boqJ0UbdeKGVE+FnIPUcIjT6rvSPY3NTZlqHlp7eY=; b=cOaOohdKAX6mJq3wr2E6Hwafuweehz68ABx+2oXHJV0TZuvr4qoCBxK2dufKJTVwOI pIuCn8YJgCmgtwHWw/Bhfhh2VvhLRaaHj0AkzG5SpAmKlDJQv+8kIIsF2MoREcj+qMIQ C2MBBTrmNvoV9HHeYBNRnb8XIcdxNvnBM7qSs= 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=X5boqJ0UbdeKGVE+FnIPUcIjT6rvSPY3NTZlqHlp7eY=; b=JTGZo4DxFIr113Kz45+Cd2Aqlh/4tJtaxDvXp0FGZuVEXrdP1H6IstiiWhJHmf2urD SHdSdP2B0t+CP35sHOJX0vZ8B0W5UYuwxChqJ68ICylRVur/IqQD4tSl3Z+8O5vOAn72 Co4DzKE8qgbaYE9kv5y0i14eVX3WFD724v6VcOQ1Rqv3QbJLKBGDiFdncR9/o3xYfYCc pjSBA1qj/fy0xmIO76ONyWQZmVzz+wVRyMUHSN314j7+2lNFzsmot/KASb3BtFxGgwML i9h6N81i+ko31pAD1i8jq66fM5qXxQeRFfFVGVneB5fyYHdoXyEk9spmQG4krlMW6u8k GH1w== X-Gm-Message-State: AGRZ1gKC3fS9PoPeb5Hyxax31rHmBlLtpm+5jOUlVSWoDEf6rQeFTCsR OeNGZ2zpqrGO2RVntNRHfWB6nQ== X-Received: by 2002:a5d:6187:: with SMTP id j7mr17824022wru.300.1542623689487; Mon, 19 Nov 2018 02:34:49 -0800 (PST) Received: from localhost.localdomain ([37.162.18.180]) by smtp.gmail.com with ESMTPSA id e9sm14973298wro.16.2018.11.19.02.34.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 02:34:49 -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 V2 05/10] block, bfq: align min and default weights with the old cfq default Date: Mon, 19 Nov 2018 11:34:19 +0100 Message-Id: <20181119103424.3853-6-paolo.valente@linaro.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20181119103424.3853-1-paolo.valente@linaro.org> References: <20181119103424.3853-1-paolo.valente@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Angelo Ruocco bfq exposes a cgroup attribute, weight, with the same meaning as that exposed by cfq. This commit changes bfq default and min weights to match the ones set by cfq (before legacy blk was removed). Signed-off-by: Angelo Ruocco Signed-off-by: Paolo Valente --- block/bfq-iosched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.16.1 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