From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f194.google.com ([209.85.210.194]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8d1F-0006Sr-Rk for linux-mtd@lists.infradead.org; Sat, 06 Oct 2018 03:12:58 +0000 Received: by mail-pf1-f194.google.com with SMTP id r9-v6so5749233pff.11 for ; Fri, 05 Oct 2018 20:12:31 -0700 (PDT) Subject: Re: [PATCH] block: BFQ default for single queue devices To: Jan Kara Cc: Paolo Valente , 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 , Andreas Herrmann , Mel Gorman , Chunyan Zhang , linux-kernel 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> <1538692972.8223.7.camel@acm.org> <20181005091626.GA9686@quack2.suse.cz> From: Bart Van Assche Message-ID: <20bfa679-3131-e0af-f69d-2fbec32fbced@acm.org> Date: Fri, 5 Oct 2018 20:12:27 -0700 MIME-Version: 1.0 In-Reply-To: <20181005091626.GA9686@quack2.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 10/5/18 2:16 AM, Jan Kara wrote: > On Thu 04-10-18 15:42:52, Bart Van Assche wrote: >> What I think is missing is measurement results for BFQ on a system with >> multiple CPU sockets and against a fast storage medium. Eliminating >> the host lock from the SCSI core yielded a significant performance >> improvement for such storage devices. Since the BFQ scheduler locks and >> unlocks bfqd->lock for every dispatch operation it is very likely that BFQ >> will slow down I/O for fast storage devices, even if their driver only >> creates a single hardware queue. > > Well, I'm not sure why that is missing. I don't think anyone proposed to > default to BFQ for such setup? Neither was anyone claiming that BFQ is > better in such situation... The proposal has been: Default to BFQ for slow > storage, leave it to deadline-mq otherwise. Hi Jan, How do you define slow storage? The proposal at the start of this thread was to make BFQ the default for all block devices that create a single hardware queue. That includes all SATA storage since scsi-mq only creates a single hardware queue when using the SATA protocol. The proposal to make BFQ the default for systems with a single hard disk probably makes sense but I am not sure that making BFQ the default for systems equipped with one or more (SATA) SSDs is also a good idea. Especially for multi-socket systems since BFQ reintroduces a queue-wide lock. As you know no queue-wide locking happens during I/O in the scsi-mq core nor in the blk-mq core. Bart.