How about to add splice
Maxim Konovalov
maxim at nginx.com
Wed Dec 9 22:15:27 UTC 2015
On 12/9/15 2:54 PM, Valentin V. Bartenev wrote:
> On Tuesday 08 December 2015 20:50:47 Aleksandar Lazic wrote:
>> Dear developer.
>>
>> Do you know the splice() feature in Linux?
>>
>> https://lwn.net/Articles/178199/
>> http://man7.org/linux/man-pages/man2/splice.2.html
>> http://ogris.de/howtos/splice.html
>>
>> How about to add it ;-)
>>
> [..]
>
> Of course we know about splice(). You can find some mentions of it
> in the mailing list archive since 2006.
>
> The problem with this syscall is that it's not easy to implement,
> while the performance benefits are questionable (AFAIK not all network
> cards work well with splice()) and use cases are limited.
>
> It only can be useful for proxying big amounts of data without any
> processing. But if you need compression, or TLS, or SSI, or even some
> simple substitution, then splice() cannot be used.
>
It should fit in our stream quite nicely.
--
Maxim Konovalov
More information about the nginx
mailing list