Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp344951rwi; Wed, 2 Nov 2022 12:36:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Um9VykrvhdA2yMLL4byKXHfF/gVjqB0RCGYS5jAZ4sx8FyLCaKN3c4kXs0UxDUNAzcNnY X-Received: by 2002:a17:906:8a63:b0:7ad:95cf:726a with SMTP id hy3-20020a1709068a6300b007ad95cf726amr25594757ejc.82.1667417808072; Wed, 02 Nov 2022 12:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667417808; cv=none; d=google.com; s=arc-20160816; b=zwPzMJlYCo7e8lczJ3yk1jnxJDbL/eiq9vG5d7L+q2EJz0cT3yd+VoRNEn5k+DmpX3 FseufR4lLTn5PGMRCdBmwcALymr8O3HrwhT4+AWEbIQkFFdaV83CPeu1K5tlNUokzisT nMb14FqSvEn6IbxiMbMQQClmqiBImRtZun8oFXWK2cS0Nfq60S90lZBA0NNlY5/uJxoe ai/eiICyyXujTwiQUa2txG8CUeu20LYdv/GZFj5EHK6UR2OvSddijOM7ZMOetXSvasip 4H5AzZJfmUgLgrFUC+wfe8d4DcCU5Bim5zyTihjKbP1PxsrBbdhtQUodvghLNnQmsBg2 hfEA== 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=sfmdRZi2oRqTqcnLT5pjPUSkV22lKIz3gi/HpKleL5o=; b=VvvN1wwIYV9zENQo4ozGj6Gw5Ish+PxHLpWMglu9mMLQselh9obcLSrcIpp74O1OsW 0Y0Tc/uHz6ifWXvuJvkUxykXpm/rFc5HG77UmcQ1i9ZUpnOXFMirOtWNgVXER/yerqSh +a4fXzvnsOY6tHznnt3Fc2aaLHIXyc5+s+AmyWonPM1fCyda6k+igFwqC3OKpSxvDk/L kcmKjqBTvWFra+9Yiw6tigN97knwhVxtwaHiM4dWdea+6fIzzccM6kdOUJQuTCvB76W6 G9X+F6of1wJDiAUzGKhamz1elkgjrerRXqL4meuV3pW3ex+w+OrKzyCWAyhJvfwDymff 06Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cFD/44eM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a056402144500b004517955b673si14739933edx.124.2022.11.02.12.36.24; Wed, 02 Nov 2022 12:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cFD/44eM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbiKBTPU (ORCPT + 98 others); Wed, 2 Nov 2022 15:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbiKBTOt (ORCPT ); Wed, 2 Nov 2022 15:14:49 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 462F5CFE for ; Wed, 2 Nov 2022 12:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667416436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sfmdRZi2oRqTqcnLT5pjPUSkV22lKIz3gi/HpKleL5o=; b=cFD/44eMjeARsyEIApRZShr4jw+cimgZQUoEDu4FXOWQr0HQpGfml9eJ3ZTag6SlIZOX6N yx5r+iQdMWggLcNsi7UfimxTjR7C0/KLzhSt8RbeJuGp6AXdq8hzYiP1Vap9yi0n5MmpDY GceNpGoUPVhmkNJfzXVJAv9Xco5uqsk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-262-PxzAMl8kMMG9hH5Z1BqGww-1; Wed, 02 Nov 2022 15:13:51 -0400 X-MC-Unique: PxzAMl8kMMG9hH5Z1BqGww-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ABA5E87B2A1; Wed, 2 Nov 2022 19:13:50 +0000 (UTC) Received: from localhost (unknown [10.39.192.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC2C21121320; Wed, 2 Nov 2022 19:13:49 +0000 (UTC) Date: Wed, 2 Nov 2022 15:13:47 -0400 From: Stefan Hajnoczi To: Jason Wang Cc: Stefan Hajnoczi , Yongji Xie , "Michael S. Tsirkin" , Ming Lei , Ziyang Zhang , io-uring@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel , "Denis V. Lunev" , Xiaoguang Wang Subject: Re: ublk-qcow2: ublk-qcow2 is available Message-ID: References: <1d051d63-ce34-1bb3-2256-4ced4be6d690@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jPo3x6rSJt98BRBl" Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jPo3x6rSJt98BRBl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 01, 2022 at 10:36:29AM +0800, Jason Wang wrote: > On Tue, Oct 25, 2022 at 8:02 PM Stefan Hajnoczi wrot= e: > > > > On Tue, 25 Oct 2022 at 04:17, Yongji Xie wrot= e: > > > > > > On Fri, Oct 21, 2022 at 2:30 PM Jason Wang wrot= e: > > > > > > > > > > > > =E5=9C=A8 2022/10/21 13:33, Yongji Xie =E5=86=99=E9=81=93: > > > > > On Tue, Oct 18, 2022 at 10:54 PM Stefan Hajnoczi wrote: > > > > >> On Tue, 18 Oct 2022 at 09:17, Yongji Xie wrote: > > > > >>> On Tue, Oct 18, 2022 at 2:59 PM Ming Lei wrote: > > > > >>>> On Mon, Oct 17, 2022 at 07:11:59PM +0800, Yongji Xie wrote: > > > > >>>>> On Fri, Oct 14, 2022 at 8:57 PM Ming Lei wrote: > > > > >>>>>> On Thu, Oct 13, 2022 at 02:48:04PM +0800, Yongji Xie wrote: > > > > >>>>>>> On Wed, Oct 12, 2022 at 10:22 PM Stefan Hajnoczi wrote: > > > > >>>>>>>> On Sat, 8 Oct 2022 at 04:43, Ziyang Zhang wrote: > > > > >>>>>>>>> On 2022/10/5 12:18, Ming Lei wrote: > > > > >>>>>>>>>> On Tue, Oct 04, 2022 at 09:53:32AM -0400, Stefan Hajnocz= i wrote: > > > > >>>>>>>>>>> On Tue, 4 Oct 2022 at 05:44, Ming Lei wrote: > > > > >>>>>>>>>>>> On Mon, Oct 03, 2022 at 03:53:41PM -0400, Stefan Hajno= czi wrote: > > > > >>>>>>>>>>>>> On Fri, Sep 30, 2022 at 05:24:11PM +0800, Ming Lei wr= ote: > > There are ways to minimize that cost: > > 1. The driver only needs to fetch the device's sq index when it has > > run out of sq ring space. > > 2. The device can include sq index updates with completions. This is > > what NVMe does with the CQE SQ Head Pointer field, but the > > disadvantage is that the driver has no way of determining the sq index > > until a completion occurs. >=20 > Probably, but as replied in another thread, based on the numbers > measured from the networking test, I think the current virtio layout > should be sufficient for block I/O but might not fit for cases like > NFV. I remember that the Linux virtio_net driver doesn't rely on vq spinlocks because CPU affinity and the NAPI architecture ensure that everything is CPU-local. There is no need to protect the freelist explicitly because the functions cannot race. Maybe virtio_blk can learn from virtio_net... Stefan --jPo3x6rSJt98BRBl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmNiwWsACgkQnKSrs4Gr c8gbrgf/WHP+3xc/eWo3qZHzOaLwMBStLXxphQCA3G+/eYczr4GsFdkMmSs6FiAD dKoF7y4iBSKkRyJk0IsDA/57yrnYv9ygPUXHYsYz0UmyJ7ax5G7t7nJZ0CpEJjsF /ZlpRCb4NCuW4tIYih1QW5edo564pjwF9VKH6VUu0lZhSgZSZCYh3VruUBaF4x1C Jsw9qxoSUb0+EyqhaS8DbKDWF7ah1TO+oXI62N4RVbimJYewxUBIveYCtGh6IPdO 7/efT8LICrNRehiUGDzC7pnOOwc9MiKwjaIX/qFOxsmQlYr3BRZ1pd7LSvVC6s4p 87ZYdPu20YwF1RMeDkq399nbEu8mQQ== =kHlQ -----END PGP SIGNATURE----- --jPo3x6rSJt98BRBl--