How about to add splice

Maxim Dounin mdounin at mdounin.ru
Thu Dec 10 13:17:52 UTC 2015


Hello!

On Thu, Dec 10, 2015 at 01:15:27AM +0300, Maxim Konovalov wrote:

> 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.

Not really, as stream is able to do SSL encoding and decoding.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list