Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2870438imm; Wed, 3 Oct 2018 10:22:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV626F0/qSJv6WcFhaX5v6GCoUjof7Fj7x7BVAswtjLFRClFM1g1UysEtliONp79XooPX/61N X-Received: by 2002:a62:69c9:: with SMTP id e192-v6mr2636939pfc.35.1538587368345; Wed, 03 Oct 2018 10:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538587368; cv=none; d=google.com; s=arc-20160816; b=Hw6ktRcvDg0+pb3rjFWCh7yEdpq6YERyRg2a+YQZmiUudTS9GsyI8/86uZNbHqRKXC pCeYTTGmPNgEFWkpSAv8i2A0RiTlpWCIiDeq8vHQqEj1Ga7ibOsROnH27/8usNfcKpWs myJDIJMW5rYjKQn96G37XOP/0L2mJsHFPX5zFAGXPvpv6yb0o+Pfh7JlRGlf6YYwF2wV AXVVqQyqnUmv5Hw/YjBhQUfrXTYLehD2oAtMm4tFiLiQk/MxUExkAVEphpTWfbgAPE9A 8FXHmfxq/lG9+BZEEAsL9EHvp8KYkm0eA2nTDPLF2dw+mO/KtVqMNUCveX2JNQFCjqeg gsWA== 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=LyqJ4anEYMwD0L3rYcfWiYxAf+l80CRBoz4rcy3lb2M=; b=O4IwOvujoqJuVQxK0gtFmyKc8sICODald8jt8FgOqX2uVIygzVEZpcrnJ33/TmDlIP yP7kwZcOKHBcj74DapuQNUigu17g5GaFsI3SdGBqMccHYRfsEpvS6cA3MsUA+mwgvg0/ aGh38Gt8HuBro1uCtqM5qM/hg/kshaktVmNoKcVikeDyBE3XgPUacSJv5gTdIscQCX12 XSZmIm6nfSko6lPh1xvwb+4mLsuRKoHX3Eey/+4YmuL4SwHYRZegddiEc6YOokhfaF4b +j19zG91UuhAdumBeDZyCDjjR6YP/j4N2aBwBL5ErKCrfDTAzPhwsz5oOM69At8o3XDg lVYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D39vBri6; 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 i21-v6si2161661pgj.51.2018.10.03.10.22.32; Wed, 03 Oct 2018 10:22:48 -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=D39vBri6; 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 S1727091AbeJDALp (ORCPT + 99 others); Wed, 3 Oct 2018 20:11:45 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33029 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbeJDALp (ORCPT ); Wed, 3 Oct 2018 20:11:45 -0400 Received: by mail-wr1-f68.google.com with SMTP id e4-v6so7050964wrs.0 for ; Wed, 03 Oct 2018 10:22:25 -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=LyqJ4anEYMwD0L3rYcfWiYxAf+l80CRBoz4rcy3lb2M=; b=D39vBri65+fA+sORnB0Yo+uzfShXCQfAts16yWMAMHHm/KxsKrViGbisQZfnNjrI7r +QSH3S9JVEv26yS5uSZ8Hq6lgPg64b0i6KglQwvrfLv90FT7pJ3jT40amhKdmajjqveC +GiWDy2Kqk7cjzchQSlaUr94jyVPm+3SrmZTQ= 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=LyqJ4anEYMwD0L3rYcfWiYxAf+l80CRBoz4rcy3lb2M=; b=RnZfLj05CTxbqp84CDmNfWhRrModGNVTWJHooGCBYxVxKORkS4EX2xpbEDeQARv20f 3fDGd/rAkgTAM4CmY52gbyLpAHyGh3JILzf/hg/OubjAXOSAV7oe6cPcZ9e54An/E0zX K3nCkjkz17LczIxeJ6G/qNpnizLu2AzLaytpnOnTG81rtEWDDod9yKFFqYDMhJcz9YhC x7Lvg3b2tUmU6O6zwYtEBUreS3zJdKNWyW70RuYYKw654hSQWMsROMDcnkgzhc9iPV+x MPvYr1OigJ1NhtNXRbqQDFkEUn2PAb5HEr0MKyhmKKFMA7W3aQ3oGAuwDfbHinbXGm0E 0yOQ== X-Gm-Message-State: ABuFfoj4Am8y7+IXxBrHiRXkcfqys1hFmgOsluCapX8lD8zi7lWMGkF7 JF+RrBlr0OAyXqTo5wSYEQ5Z5Q== X-Received: by 2002:adf:9f0f:: with SMTP id l15-v6mr2090426wrf.206.1538587344749; Wed, 03 Oct 2018 10:22:24 -0700 (PDT) Received: from [192.168.0.100] (146-241-40-124.dyn.eolo.it. [146.241.40.124]) by smtp.gmail.com with ESMTPSA id a17-v6sm2230546wme.40.2018.10.03.10.22.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 10:22:23 -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: Date: Wed, 3 Oct 2018 19:22:20 +0200 Cc: Bart Van Assche , 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 , Oleksandr Natalenko , Mark Brown Content-Transfer-Encoding: quoted-printable Message-Id: <11FFD0AF-4A08-4565-B4BE-FF80EA5BB5E6@linaro.org> References: <20181002124329.21248-1-linus.walleij@linaro.org> <05fdbe23-ec01-895f-e67e-abff85c1ece2@kernel.dk> <1538582091.205649.20.camel@acm.org> To: 'Paolo Valente' via bfq-iosched 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 18:02, Paolo Valente = ha scritto: >=20 >=20 >=20 >> 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 >=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. >=20 I forgot to add that the same 80% loss happens with mq-deadline plus throttling, sorry. In addition, mq-deadline suffers from much more than a 18% loss of throughput, w.r.t. bfq, exactly in the same figure you cited, if there are random writes too. > 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. >=20 Some more detail on this. The fact that bfq reaches a lower throughput than none in this test is actually still puzzling me, because the process rate of I/O with bfq is one order of magnitude higher than the IOPS of this device. So, I still don't understand why, with bfq, the queue of the device does not get as full as with none, and thus why the throughput with bfq is not the same as with none. To further test this issue, I replaced sync I/O with async I/O (with a very high depth). And, nonsensically (for me), throughput dropped with both bfq and none! I already meant to to report this issue, after investigating it more. Anyway, this is a different story w.r.t. this thread. Thanks, Paolo > So, are you really sure the balance is in favor of mq-deadline? >=20 > Thanks, > Paolo >=20 >> I agree with Jens that it's best to leave it to the Linux = distributors to >> select a default I/O scheduler. >>=20 >> Bart. >=20 > --=20 > You received this message because you are subscribed to the Google = Groups "bfq-iosched" group. > To unsubscribe from this group and stop receiving emails from it, send = an email to bfq-iosched+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.