Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1727893rdb; Thu, 7 Dec 2023 07:19:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoQ/hcPBO7wLnjgLzMckn53eeKb/Ez5IWsKDs0vSiJVYy+L2yU42fT3pxhXIpRccyNRQeD X-Received: by 2002:a17:902:bc4b:b0:1d0:91c3:aaf2 with SMTP id t11-20020a170902bc4b00b001d091c3aaf2mr2057984plz.25.1701962372875; Thu, 07 Dec 2023 07:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701962372; cv=none; d=google.com; s=arc-20160816; b=AKLCQfb6ckaBmXtvzNGPmLm95sFyLxzyXcxz30UcROtLWIQaRzvzXV7bfZTpGeZEPz y0Aa6bkZk3i/D5209pEKkLefgbPHRwBuRBAkQmwL66PuU4O36ovAkWucjzPrItv6jmKu c10YC57FTny+0vibiGKhTJGeRyhvikTGQwrfzmUd2z+FLg2dVVMu1nNnBUNjJEb9MBq9 QBf3BuuyvlkfFpcGA5XoAWBCIFKrL6XBX0Xk3gJYtl0DaiDZgMird5F4p2a9QHxok0B7 Bv34bARw3rNJYQvYddla8xFjtbF2EEd3AxcvMsvec2ndfS2QWgeUGXe7duCzRMtF+Xvb MX6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=q+5nnw0aDKtXuFQojfm6wR4VX55BGzj+EpBlSLXJlPY=; fh=Z3pvGM9ZY0a/rMWX3dhubNiQ6vlDOwTrbbB8y57X01w=; b=x0bvsLw8t9X1TY4mZqyOqoJ/R0dUNLd7gyFWBXbaH+uSrMBLm2VIsOfvPVGveHiu0f hgmxdDUAKfjHK3nrR4Llc3k7x9rQ3JzVK6ppOJ3G7cXFdodpsVq7Xtba0Bp7/E+0pepe 3HQ6fY+HZVLpfBujBLx+HGk8rQHjcafSDwG3VLkYrjMMSQjeiIe9vOPuiELlzurOsTMd rnA1TWZYBXPIr7ME7ljTY4rAXSMhsidiVl5fwJU88410WZ6j6OnqYXx7sKjhbvv458sQ /UKSyAJGobTIuCtilX2HYd/9HHaDk32+PwZcoV3Xj45NPpTfX08qIFwTRASLynsMim6R T6tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z8-20020a170903018800b001cfec9dcd7fsi1306652plg.408.2023.12.07.07.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:19:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 66E7B808EDEF; Thu, 7 Dec 2023 07:19:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443275AbjLGPTP (ORCPT + 99 others); Thu, 7 Dec 2023 10:19:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232946AbjLGPTO (ORCPT ); Thu, 7 Dec 2023 10:19:14 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D3719A; Thu, 7 Dec 2023 07:19:20 -0800 (PST) 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> 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) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 07:19:30 -0800 (PST) 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.