Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2081377rdb; Thu, 7 Dec 2023 18:49:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLy+/nTx1Q9vuxGWBkxkqPWImNRCATtuY/E6OfwNLIUbFGAYgvze8gtPSIfjqFyEbCzxtf X-Received: by 2002:a17:902:d301:b0:1d0:6ffd:e2f0 with SMTP id b1-20020a170902d30100b001d06ffde2f0mr3499875plc.138.1702003777623; Thu, 07 Dec 2023 18:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702003777; cv=none; d=google.com; s=arc-20160816; b=U4jLZliK3tzdZOyEQt/3zD6wVPA4+yWXsgVOO16scrLFh00NLPa9EBRFJiuJz/G0Cl yrek9cYQaRuF0NRKI9eJb2BYByrGFuPBJP6xtIDJUW8syoSGbXRBhf1mveQiGTlgZnxJ 8croBpAMlZ89z9QLioDt8FePdaLJi/cd0VRWCXJWdWsJrp8/YBvvdoE4Vt0cvlmzG8EI wyan4TObZcLP48HgpTPlKbLmujL6uDwHEWs5XMqXV2UqGlb+83fe7sk78jp+SuZv2kkw 2Vd+oEXkxDqqlJ6fEAWACCO9Mw7hy2XDwDwfVZDgaXPsqUoMOqt5D8nKjUVQIL+4H1+m t6wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VmvDpTnH73xsId8iy986SrNwijibAq4AeGx+7fu9LPc=; fh=H9pN4C4J/g+ocW5Yex0FQ/a1FOzyhTwvydVk00vsN1c=; b=gVAgQerM+CDcsrD83ie7a4JnfukU4Q7WvPSFkOvFxj+ji0BneP/uTkhnPiXGxplspw ToZZmggPV1lkgKYynA277jkwt8qGIeF9VclU0TK92V4Vh23kQARqvXjneeqZ+T+F6m6M jSYjFex+K8TpdTPboGnapiKTSpOWsmGyxnW7NRLK8YJlrQv6KGt8/Y/f9U9jKrEGW4Wc tae0CMGCmH2ZzrNSK0U/A9VarI6nivcYWsNmbuUbowwjSuQCNcNQF741KhuV2nvg/OsY QJw918602iZlBflgYvvyPEhCphKoTyc1njp9KH3RL9hVWLY09JIkPqzk4C//q5K/x0Da iTVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pL7RE0MC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i8-20020a1709026ac800b001cfdf2e382bsi739854plt.209.2023.12.07.18.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 18:49:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pL7RE0MC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4FCDD833E1EF; Thu, 7 Dec 2023 18:49:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573001AbjLHCof (ORCPT + 99 others); Thu, 7 Dec 2023 21:44:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjLHCoe (ORCPT ); Thu, 7 Dec 2023 21:44:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3CDF1708 for ; Thu, 7 Dec 2023 18:44:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFA2FC433C7; Fri, 8 Dec 2023 02:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702003480; bh=wuEMZ81uJKarUyz9kBDH4zgx1rrGtZ2JyolpU+3aRiM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pL7RE0MChzRmd5+zFgBRqP2gm0x35pQjDnQ/pvXGYQbkFekqXMJF4XBtatGzh6Mw3 DXX1DS3AJ1wUYSsDsQEH62rAJMpMU0OiePmTuAdnJwmQNQxhRgr/tZ9xdhhRmYz/ic JkDlnfgOfacefgnnOF6C1/t5Yr+9FxoT3VT4frjyUuEvXfA2e+ouWVcilcMHNJ5jaW 554KkpfVUeFErCu85NQXOzaOYPFBXQYu81R3KA4uS9tYeLmafcTQkcWfub+dyP5hi1 PXTWMyXcKOREPs6aFr+QSRcVwE18aQho0GDSUOvDNhUipxsYBz+u4OIOR/V+c9jeiV jiV1SVn7fO1Qg== Date: Thu, 7 Dec 2023 19:44:37 -0700 From: Keith Busch To: Ming Lei Cc: Li Feng , Jens Axboe , "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , Xuan Zhuo , "open list:BLOCK LAYER" , open list , "open list:VIRTIO BLOCK AND SCSI DRIVERS" Subject: Re: [PATCH] virtio_blk: set the default scheduler to none Message-ID: References: <20231207043118.118158-1-fengli@smartx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 07 Dec 2023 18:49:35 -0800 (PST) On Fri, Dec 08, 2023 at 10:00:36AM +0800, Ming Lei wrote: > On Thu, Dec 07, 2023 at 12:31:05PM +0800, Li Feng wrote: > > virtio-blk is generally used in cloud computing scenarios, where the > > performance of virtual disks is very important. The mq-deadline scheduler > > has a big performance drop compared to none with single queue. In my tests, > > mq-deadline 4k readread iops were 270k compared to 450k for none. So here > > the default scheduler of virtio-blk is set to "none". > > The test result shows you may not test HDD. backing of virtio-blk. > > none can lose IO merge capability more or less, so probably sequential IO perf > drops in case of HDD backing. More of a curiosity, as I don't immediately even have an HDD to test with! Isn't it more useful for the host providing the backing HDD use an appropriate IO scheduler? virtio-blk has similiarities with a stacking block driver, and we usually don't need to stack IO schedulers.