Skip to content
Snippets Groups Projects
Commit b7de9871 authored by Asias He's avatar Asias He Committed by Pekka Enberg
Browse files

virtio-blk: Do not split buffer


bio->bio_data from ZFS is allocated either from alloc_page or malloc
which are both physically contiguous buffer. So no need to break a
contiguous buffers that > 4k into several physical page mapping even if
the virtual space is contiguous.

This reduces the virtio buffer element usage a lot with large buffers.

Test:

On my setup using ramdisk as backend.

$ scripts/run.py -e "/tests/misc-bdev-write.so vblk1 200000000"

Before:
Wrote 13644.500 MB in 10.00 s = 1364.157 Mb/s

After:
Wrote 30219.750 MB in 10.00 s = 3021.261 Mb/s

Reviewed-by: default avatarGlauber Costa <glommer@cloudius-systems.com>
Signed-off-by: default avatarAsias He <asias@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent f99ea602
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment