Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3880289imu; Mon, 12 Nov 2018 01:58:54 -0800 (PST) X-Google-Smtp-Source: AJdET5eVsxXtCzeKoVnC53GyFFDY0Wp7NhehSvjr/sbsdwZJpv64c2FMx4JiQuDCxsSux3gfhn6d X-Received: by 2002:a17:902:7402:: with SMTP id g2mr295705pll.198.1542016734735; Mon, 12 Nov 2018 01:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542016734; cv=none; d=google.com; s=arc-20160816; b=mRC1E8kwl47QaB6tdRCb+R9xC9TkKPVT/r24VYv29gehVzkKS4z5+N151M70TnnBkj PotCiqhhhg94Zg2TRBAt+6aK/YkLazg/WI4v+/577hOSxgLgabGwEXzNfTxihptysgWL NDg93Cp5Ki2xo2xmX03CJEGUgkYJ+T6ziJTcTEKWhcYlb2XXY2Towje5UDIauMuAQuOk 33RX08DoFO83JqQbkkppeabO0xPuGEwMkkIurNkw/v2kuTs9P3wRRhMi8sbjjC7ceo6p cCffqbUpVHHd9TmvwSpexgesW+WLuTcw/DPQab73SplaPABtFR6W9yv1sUvYgSDgbOX2 tsfw== 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=P3gM8CEth45UYnNHSZF98Zi/zDAo21J+oNJpFvTMXDU=; b=PYdBLiEX6kJ44bRnrRdIQFjQddnj0NmTvLn6esKrppvrNhIRd3F5+dl7BTMuQCcbgX GPcbe52Z9cG7bdG/Kc5aRUjckXuGhW04xXl8ADM1K2ItDl9zabpwJ4xZRA2/wZnLx8Nm 8RJhCqmBdCr2xrrSG2fhH/v5vo4DKPFO73Ezhwy6mQCCgNYYLnMEUxoATs9DKT24qX+0 7lLNY4Z/JxN16F75NpLT+f6fJjpxrcqtmvuGRnEgKLk/rgbPqdc3yJf9q+tUM4odiiUD Rhw2Smct8h0+xeEYBx+322cjCpgSVfxeRrVKhSR8PfrtF4p8N6VsUB3EUJskNkLIu5cX lmOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+07G256; 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 x142si15189218pgx.202.2018.11.12.01.58.40; Mon, 12 Nov 2018 01:58:54 -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=F+07G256; 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 S1729264AbeKLTtt (ORCPT + 99 others); Mon, 12 Nov 2018 14:49:49 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33464 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729150AbeKLTtr (ORCPT ); Mon, 12 Nov 2018 14:49:47 -0500 Received: by mail-wr1-f68.google.com with SMTP id u9-v6so8589191wrr.0 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=lOF6HF/ELV/urYo1qNSxPsL9UJLD9sbBLDO5hr4KYpczpnD9TO2PToL59tJfRWLd7r fMZ00e9eEDw9JIQqQ09WPju2XxFcGAjhfT0Dx77nmC9xHGX+JFZDKLY2g246D1fbo2Dg q5+b2aFh8Z9ecrH8dJhrZ4TLFYTFzcwl+/b5/N/mM4DQ6Ao8rj9Yar2R/MqQeIUTU9x3 GzpESeuw2MbmcoAJft8TqAwtQxvLK0T9pIgucwjoY0uphBNcuGbWR0jJzZhU1FM4Iotg gsobGZ7q7fdfTeMDH9fXVNx+fMeuRG/BDr+bnrIkERHBXks11IBPvebCs8xJu+4mHjnm /gDA== X-Gm-Message-State: AGRZ1gJ5WFC6mQFm58SDknrJoxDwZVVLeUqsSfAyq36fYInc1oogM3tz hzOv7yB57aTBAehfaWU+REwlrA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.16.1