Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp686255imm; Thu, 4 Oct 2018 01:26:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV60xZkAsP2mA0i8hPTq2nL7uCRmAyy/fmDZM02qN5BSalkx6OI61qbGCEve1fstu3lDexQZV X-Received: by 2002:a63:2e47:: with SMTP id u68-v6mr4852723pgu.294.1538641567054; Thu, 04 Oct 2018 01:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538641567; cv=none; d=google.com; s=arc-20160816; b=pd8vC7dfAAR7uhhkWtTPx7xLDnLz4FA19whEe3r0m52NRxv1Ax+ceX14QUPJ/rpypj glkKu1pXstpuRkFmg6xW5IG1p3rUEQScG+xx5i5jUNOVIdbNi4MmS0XHmibXB8lARVx1 Mi6jamLQYQ1ha6jYTq5FHSga0SvLj6IAXlEl/KXicTM8CLfN9C/1EIMdy7BTSfpRFFmC dNe5AyCc5P47snBx+tGD7MXAdesk9rdJjEUiPab/z6EVEh0LMZ3Tspo+R7erqG9IBPju YbiGn/o7yp+lHw8jR6DLrotj4L+McvT20OtOIdq1fvLr1v1JRG00rq9R05SHnhtmlGm/ zvOg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=y1WiP80XkFNxDxWlyt7YqzsMLbbuFW8GXNWFWa8InOU=; b=Wb7WL5doXbPr7dcSYqG2rO1SnZs3rQzg9USDZIoRyyXIQ3a7dU7Qvyt8KZD8Yd1yun ahYDc/FOXO1++fZuqQTsAYrvhwc7lhxabcDTbEl88yeCYZaOJkoCjYibZjHkuHvr0/5y cBbP4smqKf3whKqZkBhed94sguHeNyDbfvIIyG5mB/UEiy3kgtUwJ+8rC9pZ2oDYXUF2 1TSmENIg6a/a6brsVFba6xWYN3WifnBmFcmE/XLDGpbjeuZI73i5ZfgX8ve25nukczBZ K4YG9ZlfmO9aCAgkFL8udAhqATscaJLyY9SlhRowntEiebJmdclZpK5nnVb5o5BmZl0F OZ+w== 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 f83-v6si4787289pfk.231.2018.10.04.01.25.50; Thu, 04 Oct 2018 01:26:06 -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 S1727311AbeJDPRi (ORCPT + 99 others); Thu, 4 Oct 2018 11:17:38 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:60759 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbeJDPRi (ORCPT ); Thu, 4 Oct 2018 11:17:38 -0400 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Thu, 04 Oct 2018 10:25:29 +0200 Received: from suselix ([10.120.13.201]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Thu, 04 Oct 2018 09:24:57 +0100 Date: Thu, 4 Oct 2018 10:24:55 +0200 From: Andreas Herrmann To: Johannes Thumshirn Cc: Jan Kara , Linus Walleij , Paolo Valente , Jens Axboe , linux-block , linux-mmc , linux-mtd@lists.infradead.org, Pavel Machek , Ulf Hansson , Richard Weinberger , Artem Bityutskiy , Adrian Hunter , 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: <20181004082455.ulk37hzmyuo4byw2@suselix> References: <20181002124329.21248-1-linus.walleij@linaro.org> <05fdbe23-ec01-895f-e67e-abff85c1ece2@kernel.dk> <20181003132554.GC21043@quack2.suse.cz> <20181004074535.GB6682@linux-x5ow.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181004074535.GB6682@linux-x5ow.site> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 09:45:35AM +0200, Johannes Thumshirn wrote: > On Wed, Oct 03, 2018 at 03:25:54PM +0200, Jan Kara wrote: > > 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. > > [Full quote for context] > > What about resurrecting CONFIG_DEFAULT_IOSCHED for MQ as well and > leave it default to mq-deadline but give bfq, kyber and none as a > choice as well? I second this -- introduction of a CONFIG_DEFAULT_MQ_IOSCHED. Having a default I/O scheduler kernel config option for MQ allows to build a kernel suitable for specific use w/o userspace dependencies. (But it still allows to reconfigure things via userspace.) > The question is shall we only do it for single queue devices or for > native MQ devices as well if we go down that road? Good question. I am not yet sure about this. I'd start with using the default for single queue devices. Andreas > I understand the embedded floks will want a different interface than > udev, but from the non-embedded point of view I'm with Jens and Jan > here, let udev do the job. > > Johannes > -- > Johannes Thumshirn Storage > jthumshirn@suse.de +49 911 74053 689 > SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg > GF: Felix Imendörffer, Jane Smithard, Graham Norton > HRB 21284 (AG Nürnberg) > Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850