Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp365694pxj; Thu, 3 Jun 2021 08:34:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8JTTwP+5Oxxlt7mn0JCZC+2W3Ldjl1COQ7hlyLyxLW0D2PskgoqSC3a3Eh3BJ5bCg5Jxy X-Received: by 2002:a17:906:a398:: with SMTP id k24mr168785ejz.203.1622734465715; Thu, 03 Jun 2021 08:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622734465; cv=none; d=google.com; s=arc-20160816; b=u59RQInHnv+jsuUrJD/yZW/j0xjzGpLX8tV5lREjiq7hkxyTnfe1mGUdh0SxVVdubE k1S9CzNURoQov+2PWl/NApVv+KSv9ItxQv0F2EPPZ8uwyAwqelgeF+rv4SMrpWi49Ajt zi2a775O6uqKOqbTx0hEHD4DqqxESNhQsVf9VAMHk82DKDu4+ETpxnkOI/aZZ9hmSckt 8XjmIT4V81ek57Xg1idAlqQDl/ixV23w3Pt/fvwC7fU8oj2NsaEe1lPcrZnEoW1OjUMW XWj3Mubyxn9J7Mawa8qNDs+ikyHijqrEdtSNOwNirbjBCM2BPSoD3YYYWzSsi29PEzwa sQaA== 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=/S1XKe/GM4qQZl4GJJ8xfCrJIwaECIza2brwo279Qw4=; b=WfVBrVuTlMgw1qdWZJGGehO8r1Sdn0rOt3kY6ncDMDS4ScKMieKCLEubu8poh8N/gs nU0WOZd9ZzCmxLRJdHY29LjyGI/gwqNfAp6OwRVhQ/QvjhdNPaycrmaJdIgzdhKElL4J cHYgzvV5TYIYUtlAzpsbF7hiI4HOvWOp8pTxfjox+vlidtyTha/X4aGmDeoaFB/aYlbi CRYDa0iMjFdDYnbqRF7tDEpzL47iPCKtn7DheIrD7T0OlCBL3DNn7QIz8Da1XVilR4En +ud4p9102q8lYvFQlIEPEycXBXCR8oZD70sZ7N4JAeX0acgkYR6j/GQb0+tdKatoVZ+o 4+Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RWOGJRy3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si2174335edv.565.2021.06.03.08.34.02; Thu, 03 Jun 2021 08:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RWOGJRy3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229794AbhFCPcX (ORCPT + 99 others); Thu, 3 Jun 2021 11:32:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:30144 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhFCPcW (ORCPT ); Thu, 3 Jun 2021 11:32:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622734237; 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=/S1XKe/GM4qQZl4GJJ8xfCrJIwaECIza2brwo279Qw4=; b=RWOGJRy3gSpUVaDgRJHkTcqhlPMauyA2wT/xbQAzR+OYCdsvUxa9e28Wpyn+JmU9GBy0Qa lXyesmzcTbYNkj7+6+tlqHMv3DqUrmXColwDKa/r2fh+OJrJOzsRB+E1fmOzIpsAuxGPoA QrgwkeFJz4Jd+HPF/aQ28PHCDW+ETJQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-135-KdW-98JTOBmvLj354ZUpbg-1; Thu, 03 Jun 2021 11:30:36 -0400 X-MC-Unique: KdW-98JTOBmvLj354ZUpbg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 96FD780EDB3; Thu, 3 Jun 2021 15:30:34 +0000 (UTC) Received: from localhost (ovpn-114-228.ams2.redhat.com [10.36.114.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE1CE10016FC; Thu, 3 Jun 2021 15:30:26 +0000 (UTC) Date: Thu, 3 Jun 2021 16:30:25 +0100 From: Stefan Hajnoczi To: Christoph Hellwig , Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang , Paolo Bonzini , slp@redhat.com, sgarzare@redhat.com, "Michael S. Tsirkin" Subject: Re: [PATCH 0/3] virtio_blk: blk-mq io_poll support Message-ID: References: <20210520141305.355961-1-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="B/OddBweazIqrPeI" Content-Disposition: inline In-Reply-To: <20210520141305.355961-1-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --B/OddBweazIqrPeI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 20, 2021 at 03:13:02PM +0100, Stefan Hajnoczi wrote: > This patch series implements blk_mq_ops->poll() so REQ_HIPRI requests can= be > polled. IOPS for 4k and 16k block sizes increases by 5-18% on a virtio-blk > device with 4 virtqueues backed by an NVMe drive. >=20 > - Benchmark: fio ioengine=3Dpvsync2 numjobs=3D4 direct=3D1 > - Guest: 4 vCPUs with one virtio-blk device (4 virtqueues) > - Disk: Intel Corporation NVMe Datacenter SSD [Optane] [8086:2701] > - CPU: Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz >=20 > rw bs hipri=3D0 hipri=3D1 > ------------------------------ > randread 4k 149,426 170,763 +14% > randread 16k 118,939 134,269 +12% > randread 64k 34,886 34,906 0% > randread 128k 17,655 17,667 0% > randwrite 4k 138,578 163,600 +18% > randwrite 16k 102,089 120,950 +18% > randwrite 64k 32,364 32,561 0% > randwrite 128k 16,154 16,237 0% > read 4k 146,032 170,620 +16% > read 16k 117,097 130,437 +11% > read 64k 34,834 35,037 0% > read 128k 17,680 17,658 0% > write 4k 134,562 151,422 +12% > write 16k 101,796 107,606 +5% > write 64k 32,364 32,594 0% > write 128k 16,259 16,265 0% >=20 > Larger block sizes do not benefit from polling as much but the > improvement is worthwhile for smaller block sizes. >=20 > Stefan Hajnoczi (3): > virtio: add virtioqueue_more_used() > virtio_blk: avoid repeating vblk->vqs[qid] > virtio_blk: implement blk_mq_ops->poll() >=20 > include/linux/virtio.h | 2 + > drivers/block/virtio_blk.c | 126 +++++++++++++++++++++++++++++------ > drivers/virtio/virtio_ring.c | 17 +++++ > 3 files changed, 123 insertions(+), 22 deletions(-) Christoph and Jens: Any more thoughts on this irq toggling approach? Stefan --B/OddBweazIqrPeI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmC49ZEACgkQnKSrs4Gr c8j34Af+OlGHrPFOu/uCty4kQUK2eoLVfirmODk3dZSTw9dI349E+luWFSE+dOyn UJL1cKCs3Cw8jgwiUkzjt/lSMlpmjvQiqGmJCxfC+0Z+mkinpthhhK5G7DlSFTQl BoQ+h64/9rU7rXXP4jJarxNV/LAu2jXPBL2pypG8UfGSB6wPFdcd/01ftiKLbkZE ja044LxlD84TUn3sgtGRtH5MupRE7k/izZMYmyBlWLE/vH4DySVhvA6kwGWeAD82 dClnQ/TiFkvkf7GM4CvdX+PZ2f+sGpa4dPJ7LUJOz6RxpdUo+fW7loKm1zu5IyO9 /qF7ys9OUNREOxR9hiWtpcE+2V/HBA== =/ihk -----END PGP SIGNATURE----- --B/OddBweazIqrPeI--