From: Keith Busch <[email protected]>
To: Keith Busch <[email protected]>
Cc: [email protected], [email protected],
[email protected], [email protected], [email protected]
Subject: Re: [PATCH 0/6] ublk zero-copy support
Date: Thu, 6 Feb 2025 08:28:15 -0700 [thread overview]
Message-ID: <Z6TVD5KuRSQKsPVJ@kbusch-mbp> (raw)
In-Reply-To: <[email protected]>
On Mon, Feb 03, 2025 at 07:45:11AM -0800, Keith Busch wrote:
> From: Keith Busch <[email protected]>
>
> This is a new look at supporting zero copy with ublk.
Just to give some numbers behind this since I didn't in the original
cover letter. The numbers are from a 1.6GHz Xeon platform.
Using the ublksrv patch I provided in the cover letter, created two ublk
block devices with null_blk backings:
ublk add -t loop -f /dev/nullb0
ublk add -t loop -f /dev/nullb1 -z
Using t/io_uring, comparing the ublk device without zero-copy vs the one
with zero-copy (-z) enabled
4k read:
Legacy:
IOPS=387.78K, BW=1514MiB/s, IOS/call=32/32
IOPS=395.14K, BW=1543MiB/s, IOS/call=32/32
IOPS=395.68K, BW=1545MiB/s, IOS/call=32/31
Zero-copy:
IOPS=482.69K, BW=1885MiB/s, IOS/call=32/31
IOPS=481.34K, BW=1880MiB/s, IOS/call=32/32
IOPS=481.66K, BW=1881MiB/s, IOS/call=32/32
64k read:
Legacy:
IOPS=73248, BW=4.58GiB/s, IOS/call=32/32
IOPS=73664, BW=4.60GiB/s, IOS/call=32/32
IOPS=72288, BW=4.52GiB/s, IOS/call=32/32
Zero-copy:
IOPS=381.76K, BW=23.86GiB/s, IOS/call=32/31
IOPS=378.18K, BW=23.64GiB/s, IOS/call=32/32
IOPS=379.52K, BW=23.72GiB/s, IOS/call=32/32
The register/unregister overhead is low enough to show a decent
improvement even at 4k IO. And it's using half the memory with lower CPU
utilization per IO, so all good wins.
next prev parent reply other threads:[~2025-02-06 15:28 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-03 15:45 [PATCH 0/6] ublk zero-copy support Keith Busch
2025-02-03 15:45 ` [PATCH 1/6] block: const blk_rq_nr_phys_segments request Keith Busch
2025-02-03 15:45 ` [PATCH 2/6] io_uring: use node for import Keith Busch
2025-02-03 15:45 ` [PATCH 3/6] io_uring: add support for kernel registered bvecs Keith Busch
2025-02-07 14:08 ` Pavel Begunkov
2025-02-07 15:17 ` Keith Busch
2025-02-08 15:49 ` Pavel Begunkov
2025-02-10 14:12 ` Ming Lei
2025-02-10 15:05 ` Keith Busch
2025-02-03 15:45 ` [PATCH 4/6] ublk: zc register/unregister bvec Keith Busch
2025-02-08 5:50 ` Ming Lei
2025-02-03 15:45 ` [PATCH 5/6] io_uring: add abstraction for buf_table rsrc data Keith Busch
2025-02-03 15:45 ` [PATCH 6/6] io_uring: cache nodes and mapped buffers Keith Busch
2025-02-07 12:41 ` Pavel Begunkov
2025-02-07 15:33 ` Keith Busch
2025-02-08 14:00 ` Pavel Begunkov
2025-02-07 15:59 ` Keith Busch
2025-02-08 14:24 ` Pavel Begunkov
2025-02-06 15:28 ` Keith Busch [this message]
2025-02-07 3:51 ` [PATCH 0/6] ublk zero-copy support Ming Lei
2025-02-07 14:06 ` Keith Busch
2025-02-08 5:44 ` Ming Lei
2025-02-08 14:16 ` Pavel Begunkov
2025-02-08 20:13 ` Keith Busch
2025-02-08 21:40 ` Pavel Begunkov
2025-02-08 7:52 ` Ming Lei
2025-02-08 0:51 ` Bernd Schubert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z6TVD5KuRSQKsPVJ@kbusch-mbp \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox