From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F94840BF4 for ; Thu, 7 Dec 2023 15:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 46A52227A87; Thu, 7 Dec 2023 16:19:17 +0100 (CET) Date: Thu, 7 Dec 2023 16:19:17 +0100 From: Christoph Hellwig To: Paolo Bonzini Cc: Stefan Hajnoczi , Li Feng , Jens Axboe , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , "open list:BLOCK LAYER" , open list , "open list:VIRTIO BLOCK AND SCSI DRIVERS" , Christoph Hellwig Subject: Re: [PATCH] virtio_blk: set the default scheduler to none Message-ID: <20231207151917.GA20401@lst.de> References: <20231207043118.118158-1-fengli@smartx.com> <20231207145159.GB2147383@fedora> Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Dec 07, 2023 at 03:55:17PM +0100, Paolo Bonzini wrote: > > This seems similar to commit f8b12e513b95 ("virtio_blk: revert > > QUEUE_FLAG_VIRT addition") where changing the default sounded good in > > theory but exposed existing users to performance regressions. [...] > > I don't want to be overly conservative. The virtio_blk driver has > > undergone changes in this regard from the legacy block layer to blk-mq > > (without an I/O scheduler) to blk-mq (mq-deadline). > > IIRC there were also regressions in both virtio-blk and virtio-scsi > when switching from the legacy block layer to blk-mq. So perhaps I > *am* a bit more conservative, but based on past experience, this patch > seems not to be a great idea for practical use cases. Agreed. I'm in fact not exactly happy about the rather odd BLK_MQ_F_NO_SCHED_BY_DEFAULT flag to start with.