Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1436979imm; Thu, 4 Oct 2018 13:40:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV610/3vdHOd/eNF6xoU9m1fHC74p/XIb4ERYOgKUDTx/Zd+b4Ntk9XvbSzmmbvAy9GYaZg44 X-Received: by 2002:a63:2587:: with SMTP id l129-v6mr7170806pgl.29.1538685613479; Thu, 04 Oct 2018 13:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538685613; cv=none; d=google.com; s=arc-20160816; b=0ZzJ8fZVWz9zmZc7o/FKIbyVKfIIUNeSqKfoFLpD64ZHl5aMqdGoeFJc8M1/nHPVui HCsYloZsBklEEHgpK0eirN0H51pzsrpK5ST92rDu0BKc8d/1Bm3AKr1zV6+0v5gNBfPj bWnRA+JSQohn6T9l0wRQaRSeYGDXWyyGoV5pOsuCja4AU8BdlK7p46NAaXurF4DyT5GQ Elu0DYsXzAqHaFtZhweL7ytDN0Efv8YBm+3RvjEc6k4+h8FltZe3jXJ2Ny5OikbFDd7q Y+YlxmoIuvZ5q+MktVpP9Mvn4FwxYYh3QcKkZVwr3xG9xjhYDb9iuWoI0qqXfv6AFbsX YwZA== 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=P2SzKngWQmTMeesDAsT186A/MDilvXbaxeJYoWc4fkU=; b=IFjYSmezZhGFBXNlFozUP8nFyScNhK2Yb+Mz24tcQrYvEnh4D6XCV3nywIc0zjkaJX yCI/IutUwMyhZVlNMGc+lwVU2RhyaxMKzoWWD4jh7u9XhfcfWZ3zd5EusdeIAdQ4+YUU 1hbDRftxoY+NrSTdI78PvCuv97nr6b68EZw4HzlgIBAhRe2xuoh+TIVRTSbGR9pxUXdS +o6530Ofqx9D7qyZaVAr5DQsovFWD5h0vG88Wp8FFstYLfrgm3uDQ46bRKWLlPBS3GYu WyBf5gSFv/O1Jh2gkGpQjuAuovSrJmH1mfqVXFEvXzN9EOPAw5KZlUD6JNQlfvPUn8e/ n0Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z2SdoDqv; 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 m6-v6si4861324pgg.265.2018.10.04.13.39.58; Thu, 04 Oct 2018 13:40:13 -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=Z2SdoDqv; 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 S1727993AbeJEDeV (ORCPT + 99 others); Thu, 4 Oct 2018 23:34:21 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36937 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727536AbeJEDeV (ORCPT ); Thu, 4 Oct 2018 23:34:21 -0400 Received: by mail-wr1-f68.google.com with SMTP id y11-v6so586354wrd.4 for ; Thu, 04 Oct 2018 13:39:23 -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=P2SzKngWQmTMeesDAsT186A/MDilvXbaxeJYoWc4fkU=; b=Z2SdoDqvK8QxWTqP+KfQ29zhUCFsyashc6WPJBoudEivDbSJVPbwBYKCtKpGzNzuNk vgVDQmBLULbww4q17Jo0C7VIhmv3Usmv8y5ZTAEn57nvbIXuuE6HJlGHfzcMVBL/DorE wuVfMKMAUChf7ue3mA+rIpySyI/X5XUpCa4kQ= 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=P2SzKngWQmTMeesDAsT186A/MDilvXbaxeJYoWc4fkU=; b=SRsBO0SwyseWW0X1m3qNzvoNucnhEjar9nve386Jh6nr6aUjbAaGUuzVtbAKjguhj4 tn6haUwtAyLKr9UWorqblRcMmGnspv2O9ykLX90CRO+4vX/X87HaG3CqeCZ7RrPro/YG C3/1UkiaIFtwUQvmrdG7MUtieDjovtr37Mn7FZeqATb7m8ozrlWo4e1LbA1Q2MCuhxzK EBWtz3/cA06x+/QUrs9TdoNMnMl3MNyQt+JW0oyDQFmwZQR7lv22a+XGBYQZYHtBqicH vG6X9tsZaFd7XohtJq99xv5exmJEk5QMfSvJIyPk6PP8JIrsxKWmDmf2KPn/k58gd78u 6kEQ== X-Gm-Message-State: ABuFfoh/tpcSTIR8U+xw0ns61f9xdDvfeWaEzVXR6NYoETEa33pIfSOw h/xXhcmoM1JrkteWUH5i00gwBg== X-Received: by 2002:a5d:41d0:: with SMTP id e16-v6mr6527020wrq.8.1538685562876; Thu, 04 Oct 2018 13:39:22 -0700 (PDT) Received: from [192.168.0.100] (146-241-9-213.dyn.eolo.it. [146.241.9.213]) by smtp.gmail.com with ESMTPSA id x8-v6sm603753wrd.54.2018.10.04.13.39.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 13:39:21 -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: <1538683746.230807.9.camel@acm.org> Date: Thu, 4 Oct 2018 22:39:20 +0200 Cc: Alan Cox , 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 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> <20181004202553.71c2599c@alans-desktop> <1538683746.230807.9.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 04 ott 2018, alle ore 22:09, Bart Van Assche = ha scritto: >=20 > On Thu, 2018-10-04 at 20:25 +0100, Alan Cox wrote: >>> I agree with Jens that it's best to leave it to the Linux = distributors to >>> select a default I/O scheduler. >>=20 >> That assumes such a thing exists. The kernel knows what devices it is >> dealing with. The kernel 'default' ought to be 'whatever is usually = best >> for this device'. A distro cannot just pick a correct single default >> because NVME and USB sticks are both normal and rather different in = needs. >=20 > Which I/O scheduler works best also depends which workload the user = will run. > BFQ has significant advantages for interactive workloads like video = replay > with concurrent background I/O but probably slows down kernel builds. No, kernel build is, for evident reasons, one of the workloads I cared most about. Actually, I tried to focus on all my main kernel-development tasks, such as also git checkout, git merge, git grep, ... According to my test results, with BFQ these tasks are at least as fast as, or, in most system configurations, much faster than with the other schedulers. Of course, at the same time the system also remains responsive with BFQ. You can repeat these tests using one of my first scripts in the S suite: kern_dev_tasks_vs_rw.sh (usually, the older the tests, the more hypertrophied the names I gave :) ). I stopped sharing also my kernel-build results years ago, because I went on obtaining the same, identical good results for years, and I'm aware that I tend to show and say too much stuff. Thanks, Paolo > That's > why I'm not sure whether the kernel should select the default I/O = scheduler. >=20 > Bart.