On Sat, May 17, 2025 at 11:11:52PM +0300, Nir Soffer wrote: > Testings reading and writing from qemu-nbd using a unix domain socket > shows that the platform default send buffer size is too low, leading to > poor performance and hight cpu usage. > > Add a helper for setting socket send buffer size to be used in NBD code. > It can also be used in other context. > > We don't need a helper for receive buffer size since it is not used with > unix domain sockets. This is documented for Linux, and not documented > for macOS. > > Failing to set the socket buffer size is not a fatal error, but the > caller may want to warn about the failure. > > Signed-off-by: Nir Soffer <nir...@gmail.com> > --- > include/io/channel-socket.h | 13 +++++++++++++ > io/channel-socket.c | 11 +++++++++++ > 2 files changed, 24 insertions(+)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|