Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2091000rdb; Thu, 7 Dec 2023 19:16:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj1zX07J4MS6ZRqLTxWjkjJahqd7JRwdt79DviT8HLJ0J010Zo8NsYCcjAUUlbBRdOzejg X-Received: by 2002:a17:90a:6008:b0:285:bd52:32df with SMTP id y8-20020a17090a600800b00285bd5232dfmr2970344pji.30.1702005404461; Thu, 07 Dec 2023 19:16:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702005404; cv=none; d=google.com; s=arc-20160816; b=eZWix0drLSG/qYiC6NFvRDZmlyu4v8NU4hVFi7QVmbPpvN4BQR1X8ddDuDxPFoziAK qJ5LFD0NAXpsRxUpm0mNhf13vqK4vBt7x0+Z403VIOfw0OFIuKVP9xIu/XrjF0CbHP1R nSGISupFIno3poNsclNVYPHIBRuZSkeiouQHdZ5JBhMGbWxm6/8v/bKBXN9+GyKXPPBe Bso8vDR7k5uA3o3dVP7Lb4yEfhPWE9K/68SJa3LR7HJEhsjngxtzWjsiArFBeqNoLpsI c6VmrAgGCFfOqwuF7ip9z9Zm/NYQlnVGViqCwahh4FytAqduCdtNf5MXOoPIEL4hKw1i YEKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jGfLZ/anCgoizin3EJrsBtWsOUnIV8oEkhHw3KAoiyE=; fh=ui+dK2M90bgG1omcaXdc7ACy3jN2BZA4utbfP4/F1Vs=; b=Dhn8x9tGMxm4585tdj9DRm2eyO0QLayNTQIkVB//JRGUZ9Xk4CNhbFrsK7rZftqrrW XdlZql+Zf+f2iRR4RmWk5e/6zqorYwgC0HsMoB3xYGrB7BGfFLeTs1TfDNUo0ehe+ZhH aepOGazU5pdbt6MauKOtcTNaGWIvgh1z4/db4MA/Zm0c+WVCal5R2y/Wgnz6g5gyNVW1 ku2RCQm2tuNV6/fDkNqrky4U6Bqw+gvq+uiDz5rK5/xYV0+73fleBEGRBlNUFn2dwEQx ZbxDmjdTHP2N5YLnKdRtXg/TaGhrDigU+1zmOHBW57YNZGeCk7dP05qm2zvXrOt6iEqH cfaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=R1dbJvL4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id kb4-20020a17090ae7c400b002871b0b4a11si904959pjb.61.2023.12.07.19.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 19:16:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=R1dbJvL4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 4C8E0807C6FA; Thu, 7 Dec 2023 19:15:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573029AbjLHDPP (ORCPT + 99 others); Thu, 7 Dec 2023 22:15:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231892AbjLHDPO (ORCPT ); Thu, 7 Dec 2023 22:15:14 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C07D810CA for ; Thu, 7 Dec 2023 19:15:20 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1d072f50a44so3674965ad.0 for ; Thu, 07 Dec 2023 19:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1702005320; x=1702610120; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jGfLZ/anCgoizin3EJrsBtWsOUnIV8oEkhHw3KAoiyE=; b=R1dbJvL4+eLjEhhg0VgKY1AyJG3WfUpl2uxQt+FrXUBP2zJo3ZTU1KPTLIGLtnpSvl WVtby8UN9DTj5oBxNmDlOmfjSz+86PVJOXQ5XTk+0QOpU32ClIiM52GlRRfnjv+o2wTL FJ7mn4tve4W+KE7AhVjKoQ3JwmfPod4VQDdS0O8aO+OdAlidD2cS5xY04gE/Ncwb52Wv s6PoYDk+M7xrGj8YUaBpbUjLRNaqZsqHilmMLjBcI2UZhYP9cXdprcq/USkp3IGdSp3p aJoJSuaraEW1cwQgBvbsqF0FH/fjvDJWvCwZzNPe5TpdyvDb/0JOGMriSqLcnHEEKCuR Jz8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702005320; x=1702610120; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jGfLZ/anCgoizin3EJrsBtWsOUnIV8oEkhHw3KAoiyE=; b=YUQQY+9m0tyeujUXxEcYjK/RUrzuBu1FV6NQL2UD0AGrUp9hbbxJoW1nJkTzO6J8b6 IrLtQlWiPl6Paq9o408SDJbEg0KPJfi7y6ocKl4j7RoWeYyk5CvQOcH+15AV4p+Gt39y mgDiIRELhZo3WO4LUAekXLcxhd/Oep2xzsTIelqJBuoPlleScJdqKAXzdLCXlqvEbSXL A2D7twjQhtlpx2knsBba7FKbDyRBQoEM6uYi06F3plwls0ZKCVZF83Oospzp0JYg7LgX ZU7/7GNwMgte1nV6ahX4eRDMCPMhtDKz0IC96sNAvj/7lKF/0lr7ZKuq0XSTJ6Gx03uS KVCQ== X-Gm-Message-State: AOJu0Yw8c4CvUh8UGFZo0GvvB+3zYkcQHsmuVqP+t3yjinm4vceMFApp lr2trnYCX9sMyXgQfb2G1AMrNQ== X-Received: by 2002:a05:6a20:1583:b0:18b:4b84:3a1 with SMTP id h3-20020a056a20158300b0018b4b8403a1mr7015450pzj.5.1702005320251; Thu, 07 Dec 2023 19:15:20 -0800 (PST) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id w4-20020aa78584000000b006ce5c583c89sm532425pfn.15.2023.12.07.19.15.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Dec 2023 19:15:19 -0800 (PST) Message-ID: Date: Thu, 7 Dec 2023 20:15:18 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] virtio_blk: set the default scheduler to none Content-Language: en-US To: Keith Busch , Ming Lei Cc: Li Feng , "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , Xuan Zhuo , "open list:BLOCK LAYER" , open list , "open list:VIRTIO BLOCK AND SCSI DRIVERS" References: <20231207043118.118158-1-fengli@smartx.com> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 19:15:36 -0800 (PST) On 12/7/23 7:44 PM, Keith Busch wrote: > 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. Indeed, any kind of scheduling or merging should not need to happen here, but rather at the lower end. But there could be an argument to be made for having fewer commands coming out of virtio-blk, however. Would be interesting to test. -- Jens Axboe