Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2779177imm; Wed, 3 Oct 2018 09:03:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV62DjyaAjnJWh4rBvvv/IzLqkiDPWpGdsfNTupX+i/NL3fkKy49BxFICHhvEJCVbVXjSJuaf X-Received: by 2002:a63:584f:: with SMTP id i15-v6mr1991329pgm.178.1538582616156; Wed, 03 Oct 2018 09:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538582616; cv=none; d=google.com; s=arc-20160816; b=BX23nK4hVgw1LqI1sPPXk+s+kTQBOodW5TzMi2/hwhhd7uWksqIrn8Jwm4f9mU1pqB etANdWq1sXPVjnZ0Aa0jS4KUIhL9qkz9yHwvnh13bcgG06QlECOjlo3JC2AHe+zye/Cy T1C1dk2Tc9u5y3gHNoYEu3zgLWt/EGv33DKELO5py34EkWO+0JbTqfjj0cclGF5FrxCs 2mUzHn4SAgZtPclyRUgL4St9cg6Glh2VBLLV01iPb3I0TU2Uppc0yRM2DuG0KHsAFu9P U1t3suv90VRUGis82ybRQGzHUFU7sWYWXLtL6iQKv7oDJsDQGzi47vchCuO7hYBPZ/yO gl+Q== 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=wb6w6HFYiyU7K2nshj692sKb++MyK4v1CGwWJnmPTZM=; b=iV+lv+Eq3cPlmBqgod9CNAWataUzbQ9pdgBPDYgOkilME7KvVdzX6hgPlz7kXbscp2 XYBvtOsflapDcrItJAguYf9cevoJv05JLgDDAmMJNM7Xs19cgtCKzD/+UcdZ7qaAOpOp axUIwQIY3p7nUPsINBVFLGDWOPcdfxp5ommLuGEd8rasvn+3e+ZRMlbtdy0FPd6ILAyT GCyQ83SblsFfe7ounvxbcKR+cPy+uqEGzyiJARuzQA4lMmbmh/H/hYdbdEeVgegM1ob8 4NHtH3K+/ztDifc21nnq4gRTF269s0zFg4XpwyDPEo0cho+Hrqo+jELIgihsUWx2xaYq jN0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N+lVVJ3U; 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 77-v6si2004972pfu.154.2018.10.03.09.03.20; Wed, 03 Oct 2018 09:03:36 -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=N+lVVJ3U; 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 S1726991AbeJCWvl (ORCPT + 99 others); Wed, 3 Oct 2018 18:51:41 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54778 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbeJCWvl (ORCPT ); Wed, 3 Oct 2018 18:51:41 -0400 Received: by mail-wm1-f65.google.com with SMTP id r63-v6so6266062wma.4 for ; Wed, 03 Oct 2018 09:02:40 -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=wb6w6HFYiyU7K2nshj692sKb++MyK4v1CGwWJnmPTZM=; b=N+lVVJ3U1alRuMdtl4En2sv73m4CiU4XSl0iQe7nshVNztJRvJZyTMzApoJ2ESGELm iAjkz4xMtfLnDTFm1mG4M4oiiywDOPZw6rcdw5f/o4m2fepS7dpbLVdb33s4z6yPQ2lA 0oLjdIWLp0vz6J+buqf6HhQV2PJXT/E3QQ6xs= 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=wb6w6HFYiyU7K2nshj692sKb++MyK4v1CGwWJnmPTZM=; b=KRFVhPN0p0MZvpONhhtTBjaYgBIt3nxPgRjyIW22NQrG1VFGukHbAzvVYiHM6lX5dX PKXdG9u00LuFv3UAvVzyBf/G6/u0GU6qZgAeylajN9a4kUI5tFRIkEDz9jKPbkhnlccQ cxkhMoHap7clUDF3AGoIw/OiasirAag5M6Vbc78ac9je2MP5AdzSn9TLM90nZ2+0DH0w nlBZJl4gzibFA9+8uwToKlAfH9rtCCk64cOcQhsKln3zmBjlASb3zoN+16gHWFb4lDBD /4kLWOZknDkcX+CVnUVUM4qikivXBJOhIqTlawKinezxVLVUCMWJB4/nwKeAC8O54dmv yceg== X-Gm-Message-State: ABuFfoiciQiubfRF99lgw5ST+/TQXdZbIrudW5qeUkNZ7NeiKcn1LOWE BKdL6YYmQn8bdlP2rvgCyFsXaQ== X-Received: by 2002:a1c:2081:: with SMTP id g123-v6mr1938210wmg.144.1538582559498; Wed, 03 Oct 2018 09:02:39 -0700 (PDT) Received: from [192.168.43.112] ([31.157.182.99]) by smtp.gmail.com with ESMTPSA id g3-v6sm1889023wrw.81.2018.10.03.09.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 09:02:38 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH] block: BFQ default for single queue devices From: Paolo Valente In-Reply-To: <1538582091.205649.20.camel@acm.org> Date: Wed, 3 Oct 2018 18:02:36 +0200 Cc: Jens Axboe , Linus Walleij , linux-block , linux-mmc , linux-mtd@lists.infradead.org, Pavel Machek , Ulf Hansson , Richard Weinberger , Artem Bityutskiy , Adrian Hunter , Jan Kara , Andreas Herrmann , Mel Gorman , Chunyan Zhang , linux-kernel , 'Paolo Valente' via bfq-iosched , Oleksandr Natalenko , Mark Brown Content-Transfer-Encoding: quoted-printable Message-Id: References: <20181002124329.21248-1-linus.walleij@linaro.org> <05fdbe23-ec01-895f-e67e-abff85c1ece2@kernel.dk> <1538582091.205649.20.camel@acm.org> To: Bart Van Assche X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 03 ott 2018, alle ore 17:54, Bart Van Assche = ha scritto: >=20 > On Wed, 2018-10-03 at 08:29 +0200, Paolo Valente wrote: >> [1] https://lkml.org/lkml/2017/2/21/791 >> [2] http://algo.ing.unimo.it/people/paolo/disk_sched/results.php >> [3] https://lwn.net/Articles/763603/ >=20 > =46rom [2]: "BFQ loses about 18% with only random readers, because the = number > of IOPS becomes so high that the execution time and parallel = efficiency of > the schedulers becomes relevant." Since the number of I/O patterns for = which > results are available on [2] is limited and since the number of = devices for > which test results are available on [2] is limited (e.g. RAID is = missing), > there might be other cases in which configuring BFQ as the default = would > introduce a regression. >=20 =46rom [3]: none with throttling loses 80% of the throughput when used to control I/O. On any drive. And this is really only one example among = a ton. In addition, the test you mention, designed by me, was meant exactly to find and show the worst breaking point of BFQ. If your main workload of interest is really made only of tens of parallel thread doing only sync random I/O, and you care only about throughput, without any concern for your system becoming so unresponsive to be unusable during the test, then, yes, mq-deadline is a better option for you. So, are you really sure the balance is in favor of mq-deadline? Thanks, Paolo > I agree with Jens that it's best to leave it to the Linux distributors = to > select a default I/O scheduler. >=20 > Bart.