Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1480171rdb; Wed, 6 Dec 2023 23:21:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBmCdhyl5tk3VOnovKrYPdTQtlPIojMDleokJifHZkHc5icRWzZAcmBoWsOBdLPobmIMoG X-Received: by 2002:a05:6a20:8fa5:b0:18f:97c:925c with SMTP id k37-20020a056a208fa500b0018f097c925cmr1521716pzj.65.1701933682252; Wed, 06 Dec 2023 23:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701933682; cv=none; d=google.com; s=arc-20160816; b=UDB4ks8dhsJH5g34IFIGASkDwjEh7butcR2nS2bXwAE1jfEVH5CMRqxdYHcR4LcE33 ME40bcunKA1YdtMEb9sL4yES4hW9eBSdEX3kQGj3pv9Yiu2r/w46I8ZZYP/m1TG0sjrf mPpDoZzsfno33IlJECJMhpHoOaFCnP78+tjtVg3YGRGlIyq0/UURnB7T6prZ8oTMR12/ 19q3MTOGSJ66h90ReyKjy07P+M2nDN79iBXr8iXHxbiaQTrPYxJc+jNBAFppZzBAdpqm +IqiqUktmb6RXTUD3/1pEhuLANZyqF4830omP3Vh226guDTM78PLaBpvTHMDit5Ju6C4 NnVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=j53nqNU7jMgvgRvYSWrD1Dh7t93e+rnrWj/PotqK0BA=; fh=tZINERG9tq7fpYUYt5iYH9Y2665ZRAo+o8+MOV+ECMk=; b=cjN+2WrTcxLHD+QXtcjUUMfAYI37ZiuF7eV7RPGv4w/a/iWJSx8iOmP0ioDXf7ifyY Ba9F5BDKjnSVrMZM1P+6856+CPe3r70/s/M4UTb1gVWqnJBdVcns4aMyFD3MOMOlCxsf NsbAnxZ9Cir9EWvJkdAa7agVqf043nZi2yoGYXsybBRAZWP6rtyqRxUJOgqJq+IXxapr nmy8u/NL8diuDbAlERZKJxRWssP+hk2iOp5Teue+hDzbLjX148AbNNc++q532HN18xeN Xql7oe7uCxXuBQO9vin1wHFC/++kKB3nscpcCMd2EkY4AUv7g5X5Gmpd4oRXoyDxRrqy Wkmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@smartx-com.20230601.gappssmtp.com header.s=20230601 header.b="MD/Bumpr"; 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 h7-20020a056a00170700b00690c23d353asi754516pfc.217.2023.12.06.23.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:21:22 -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; dkim=pass header.i=@smartx-com.20230601.gappssmtp.com header.s=20230601 header.b="MD/Bumpr"; 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 9068B80FC14A; Wed, 6 Dec 2023 23:21:01 -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 S229765AbjLGHUp (ORCPT + 99 others); Thu, 7 Dec 2023 02:20:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbjLGHUl (ORCPT ); Thu, 7 Dec 2023 02:20:41 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471B9D53 for ; Wed, 6 Dec 2023 23:20:47 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1d06d4d685aso4123605ad.3 for ; Wed, 06 Dec 2023 23:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartx-com.20230601.gappssmtp.com; s=20230601; t=1701933647; x=1702538447; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=j53nqNU7jMgvgRvYSWrD1Dh7t93e+rnrWj/PotqK0BA=; b=MD/BumprF9xqKfB6752eRZ7GFq5+Z+EHobjhRN9QVvWTlCycgN+FjkZhwUstXhzhl7 yauWSk2aeLHice2vdJvlYjnZCwv9dMbyCdQV5Vyf+I0QXhn8JZjYMYph+PnXLu3BwuCf wY9Q7hRq8DnzPdMcmc1KA3/dPjzau/dtue2TOAQMW89ITKqn9O1+DY8lXY7xnBnJch9x 29buCJZe1/nlC0vZkGyDbTxMQQdMKSRZ6hCDcnPg9cQGZFrBA5Alh3C6JSD9TaVy0kUV pjgrKOBfHVkPJ8VauSuGxZSO7vYoQTwtvdRddF0x6YWI9VrcJLHbxMTTui7vYnRP0XZn eOYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701933647; x=1702538447; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j53nqNU7jMgvgRvYSWrD1Dh7t93e+rnrWj/PotqK0BA=; b=eJ5A7CmkK+2ymJKKEAKdi3udiltShWFvknUP6X/3hTCLehFlfo+qGiGbIwkIlx06qJ XbtOcwEnelGC858Dz6uUjn9DpedcumMWvmIMpz3abuAeTd0TJA48F58S5vva/8bDwdmp T/WN59Wgt4Tw0GZqrHzWIyG7aScP3/VpBQn7ZdtxpDzpS2OzD2jB98jbRqoeZjiWcbtq 4IEPlmnvNujqo6RmgZSShLx+5sMftG1hRaVRV/WQsxhSdhdv7v8Jm85S+/q6/HNDuezF WnMsPuG7k7rEEhR/bmLPEKSjYeHxP445cUbceviUyYIpE5hxLwuVZmlVTe5WJ96d/aip kcSQ== X-Gm-Message-State: AOJu0Yzfd1L1Badp+3SHc6c0rkle/V+tfuK96aQ940evHSu5YzctNdHs d0Nv+fqUj+kEqAN6174Oy2WAPw== X-Received: by 2002:a17:903:2448:b0:1d0:9416:efec with SMTP id l8-20020a170903244800b001d09416efecmr2048898pls.74.1701933646273; Wed, 06 Dec 2023 23:20:46 -0800 (PST) Received: from smtpclient.apple ([8.210.91.195]) by smtp.gmail.com with ESMTPSA id p14-20020a170902e74e00b001d04c097d32sm624915plf.270.2023.12.06.23.20.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2023 23:20:45 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Subject: Re: [PATCH] virtio_blk: set the default scheduler to none From: Li Feng In-Reply-To: <9b963af6-0a3f-4957-9227-43673e70b720@nvidia.com> Date: Thu, 7 Dec 2023 15:21:44 +0800 Cc: Jens Axboe , "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , Xuan Zhuo , "open list:BLOCK LAYER" , linux-kernel , "open list:VIRTIO BLOCK AND SCSI DRIVERS" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20231207043118.118158-1-fengli@smartx.com> <9b963af6-0a3f-4957-9227-43673e70b720@nvidia.com> To: Chaitanya Kulkarni X-Mailer: Apple Mail (2.3774.100.2.1.4) 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 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]); Wed, 06 Dec 2023 23:21:01 -0800 (PST) > On Dec 7, 2023, at 14:53, Chaitanya Kulkarni = wrote: >=20 > On 12/6/23 20:31, 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". >>=20 >> Signed-off-by: Li Feng >> --- >>=20 >=20 > This patch looks good to me, however I'd update the commit log and add > performance numbers for the non-mq case also, just in-case to show = that we > are not breaking non-mq setup. >=20 > Being said that, in case we want to be future proof, we can also think = of > adding a module param so if someone comes with a scenario where = NO_SCHED is > not providing the performance then they can just use the module = parameter > instead of again editing the code, irrespective of that :- >=20 > Reviewed-by: Chaitanya Kulkarni >=20 > -ck Hi ck, What I put above(450k vs 270k) is the data of single queue(non-mq). I = think we don=E2=80=99t need to add module parameters because the scheduler can = be modified through sysfs. Thanks. >=20 >=20