Improve qemu-nbd performance by 4400 %
commit5fe16888d33af7aca0d613d888c161af68c755c3
authorLaurent Vivier <laurent@vivier.eu>
Fri, 17 Sep 2010 16:13:57 +0000 (17 18:13 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Sep 2010 13:39:42 +0000 (21 15:39 +0200)
tree1070ab1a9f7499011eb9bef2d6c18cb75d0b1b49
parent581b9e29f36eec5de0779c3dbade980e4405d92e
Improve qemu-nbd performance by 4400 %

This patch allows to reduce the boot time from an NBD server from 225 seconds to
5 seconds (time between the "boot cd:0" and the kernel init) for the
following command lines:

./qemu-nbd -t ../ISO/debian-500-powerpc-netinst.iso
and
./ppc-softmmu/qemu-system-ppc -cdrom nbd:localhost:1024

This patch combines the reply header and payload send operation.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
nbd.c