How about to add splice

Aleksandar Lazic al-nginx at none.at
Wed Dec 9 20:48:38 UTC 2015


Dear Valentin.

Am 09-12-2015 12:54, schrieb Valentin V. Bartenev:
> 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.

Thanks for answer.

BR Aleks



More information about the nginx mailing list