Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2597777imm; Wed, 3 Oct 2018 06:26:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62KbsXYbAOxpl6fggvpOFYmGMYo5m3NliWLQ0dVf3zkIk2a7Q+Ctnww0nNwwZaFRUGPaHgj X-Received: by 2002:a63:6746:: with SMTP id b67-v6mr1411357pgc.310.1538573180341; Wed, 03 Oct 2018 06:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538573180; cv=none; d=google.com; s=arc-20160816; b=IYUn256c4bOuw26p1uf9IVo4KaTKAzlXgMFcIn+PzQDujJyAQWCeyxygY+3THPVCCT 3M4q/ekanM7RFv/PPdi+iuaoy7oI2+Hf+8IVDDBmgmVj/rwzTK78JEr4tVbdzQBQUV0P 4SVAMCFwwxMdAHW2/OxhRVzednENbVXOBZPm4MFqH+meboUVg36NaxIah+HXxVFKTCM9 wczWfnv+qG9JMbyTxbNJs3QO52Xwa0wAY4I1SuLXQWJvBjqQ8UXPrjwVpul/3VO2UU3T SQiJQRM5tuHbiurnhz4FIJSXzl6NM9tocH1LzZF0YaXdAzP0dBsT4DKw4oVzlFE3WIUr jJBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=t6t0YGYBe4RTElh0MTfIT82GCccCSTc26d6mjMkVubE=; b=cn7T0Vy5CtyNxIXwBNKzj5V1glTMKt6FICQcgJKp6dnaOvhC3mngdxEEcOT5n1zfuS Zy8Xg0U9vK3cBMRORxPQzefCDH+N5U7dXanKytmk/HqJlaUs6w6nlVFt5L05qCDh61+E azGKr5WTjnBsCWkc+i4VJUNQwV71y51EIEopLeQLvII2RKnIIq7UXn/4rfuSBMy0haCP lSAy701jdQ+gAAMklNGp2GBkKZdmIqmbchVhXyjeAeA/ON7bWolg8XePbAgvCb3jyDMJ 8l5Bk27R1tl8Gh8dHaD//iIyeuuDHZ20vE6YETSGbd8MAwLpAOTJ1Ekf7U81t0vLEz2p kVdg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si1662783pfg.46.2018.10.03.06.26.05; Wed, 03 Oct 2018 06:26:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726943AbeJCUOV (ORCPT + 99 others); Wed, 3 Oct 2018 16:14:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:34416 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726694AbeJCUOV (ORCPT ); Wed, 3 Oct 2018 16:14:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EF226AFB5; Wed, 3 Oct 2018 13:25:54 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 431121E3613; Wed, 3 Oct 2018 15:25:54 +0200 (CEST) Date: Wed, 3 Oct 2018 15:25:54 +0200 From: Jan Kara To: Linus Walleij Cc: Paolo Valente , Johannes Thumshirn , aherrmann@suse.com, Jens Axboe , linux-block , linux-mmc , linux-mtd@lists.infradead.org, Pavel Machek , Ulf Hansson , Richard Weinberger , Artem Bityutskiy , Adrian Hunter , Jan Kara , mgorman@suse.com, Chunyan Zhang , "linux-kernel@vger.kernel.org" , bfq-iosched@googlegroups.com, oleksandr@natalenko.name, Mark Brown Subject: Re: [PATCH] block: BFQ default for single queue devices Message-ID: <20181003132554.GC21043@quack2.suse.cz> References: <20181002124329.21248-1-linus.walleij@linaro.org> <05fdbe23-ec01-895f-e67e-abff85c1ece2@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 03-10-18 08:53:37, Linus Walleij wrote: > On Wed, Oct 3, 2018 at 8:29 AM Paolo Valente wrote: > > > So, I do understand your need for conservativeness, but, after so much > > evidence on single-queue devices, and so many years! :), what's the > > point in keeping Linux worse for virtually everybody, by default? > > I understand if we need to ease things in as well, I don't intend this > change for the current merge window or anything, since v4.19 > will notably have this patch: > > commit d5038a13eca72fb216c07eb717169092e92284f1 > Author: Johannes Thumshirn > Date: Wed Jul 4 10:53:56 2018 +0200 > > scsi: core: switch to scsi-mq by default > > It has been more than one year since we tried to change the default from > legacy to multi queue in SCSI with commit c279bd9e406 ("scsi: default to > scsi-mq"). But due to issues with suspend/resume and performance problems > it had been reverted again with commit cbe7dfa26eee ("Revert "scsi: default > to scsi-mq""). > > In the meantime there have been a substantial amount of performance > improvements and suspend/resume got fixed as well, thus we can re-enable > scsi-mq without a significant performance penalty. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke > Reviewed-by: Ming Lei > Acked-by: John Garry > Signed-off-by: Martin K. Petersen > > I guess that patch can be a bit scary by itself. But IIUC it all went > fine this time! > > But hey, if that works, that means $SUBJECT patch will enable BFQ on all > libata devices and any SCSI that is single queue as well, not just > "obscure" stuff like MMC/SD and UBI, and that is > indeed a massive crowd of legacy devices. But we're talking > v4.21 here. > > Johannes, you might be interested in $SUBJECT patch. > It'd be nice to hear what SUSE people have to add, since they > are pretty proactive in this area. So we do have a udev rules in our distro which sets the IO scheduler based on device parameters (rotational at least, with blk-mq we might start considering number of queues as well, plus we have some exceptions like virtio, loop, etc.). So the kernel default doesn't concern us too much as a distro. I personally would consider bfq a safer default for single-queue devices (loop probably needs exception) but I don't feel too strongly about it. Honza -- Jan Kara SUSE Labs, CR