-
Andrey Vagin authored
Currently the buffer size is 4096. It always works because we use hosts where PAGE_SIZE is 4096. PowerPC64 has a bigger PAGE_SIZE. Here is a comment from the kernel code. /* * skb should fit one page. This choice is good for headerless malloc. * But we should limit to 8K so that userspace does not have to * use enormous buffer sizes on recvmsg() calls just to avoid * MSG_TRUNC when PAGE_SIZE is very large. */ We set the buffer size to 16384, because it's the max length of recvmsg() for this case. We will need less iterations to collect all data, so the perfomance should be better. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Cc: Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
50d4d073