]> xenbits.xensource.com Git - libvirt.git/commit
rpc: Fix slow volume download (virsh vol-download)
authorOssi Herrala <oherrala@gmail.com>
Mon, 20 Jul 2015 12:44:32 +0000 (12:44 +0000)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Aug 2015 11:08:00 +0000 (13:08 +0200)
commitd9c9e138f22c48626f719f880920e04c639e0177
tree8546a36b90deb425202efccb052cf318d5e27314
parente7fef6d00e60a181d0606bcca8186c23614e1827
rpc: Fix slow volume download (virsh vol-download)

Use I/O vector (iovec) instead of one huge memory buffer as suggested
in https://bugzilla.redhat.com/show_bug.cgi?id=1026137#c7. This avoids
doing memmove() to big buffers and performance doesn't degrade if
source (virNetClientStreamQueuePacket()) is faster than sink
(virNetClientStreamRecvPacket()).

Resolves: http://bugzilla.redhat.com/1026137

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/rpc/virnetclientstream.c