VirtIO VSOCK MSG_ZEROCOPY To Begin Landing For Linux 6.7: More Performance

Written by Michael Larabel in Linux Networking on 26 September 2023 at 09:13 AM EDT. 4 Comments
LINUX NETWORKING
The first of three parts for MSG_ZEROCOPY preparations for the VirtIO-Vsock driver have been queued into net-next ahead of planned introduction in the Linux 6.7 kernel as another means of achieving greater performance within virtual machines.

This message zero-copy support for the VirtIO/Vsock code can allow for nice efficiency gains within VMs. The first part of the patches making the initial preparations was queued into net-next last week. Hopefully the rest of the patches will be reviewed and approved for merging still in time for the 6.7 cycle, which allows for more zero-copy of buffers rather than creating extra copies of buffers on transmissions with the virtio-vsock driver.

Benchmarks on the patch series in full show some very nice gains with buffer sizes at 32KB and larger:

Vsock zero copy


This MSG_ZEROCOPY feature for the VirtIO/Vsock driver is quite interesting for this host/guest communication interface on Linux.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week