On Tue, 29 Mar 2016 at 10:35 Per Buer <[email protected]> wrote:

> On Fri, Mar 25, 2016 at 5:09 PM, Martin Blix Grydeland <
> [email protected]> wrote:
>
>> On Fri, 25 Mar 2016 at 16:35 Nils Goroll <[email protected]> wrote:
>>
>>>
>>> is there a particular reason for pipe mode not using sendfile half the
>>> number of
>>> syscalls required and avoid copying to/from a userspace buffer?
>>>
>>
>> sendfile() requires the in_fd to be an fd supporting mmap-like
>> operations, ie no network sockets.
>>
>
> How about TCP Splicing? Shouldn't we be able to do that? If I'm not
> mistaken HA-Proxy used TCP Splicing for quite some time to avoid read/write
> copying to userspace.
>

TCP splicing would be an option. I've never played with it, so I'm not sure
about the details. But as I understand it, the number of system calls
wouldn't go down, and the number of fd's used per piped connection would
increase by 4 (2 fd's per pipe, and one pipe per direction). You would
avoid the userspace/kernelspace copying though.

Martin
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to