[asterisk-dev] Re: [RFC] optimisinf RTP traffic? (Roy Sigurd Karlsbakk)

Roy Sigurd Karlsbakk roy at karlsbakk.net
Thu Jul 20 18:16:39 MST 2006


>>>>>> "RSK" == Roy Sigurd Karlsbakk <roy at karlsbakk.net> writes:
>
> RSK> sendfile() can do zero copy transmission of data between sockets,
> RSK> meaning no in-memory copying of the data, and having the NIC (if
> RSK> supported) generate checksums as well. This will increase the
> RSK> number of bridgable calls by, well, although I obviously haven't
> RSK> tested it, quite a lot. but then, since sendfile() just sends the
> RSK> data, this means you won't be able to Monitor() the calls, you
> RSK> won't be able to touch the RTP stream.
>
> If you use splice() instead of sendfile(), you can get the same
> benefits, but you'll still be able to Monitor and so on. The downside
> is that you need a really recent kernel (2.6.17 I believe). Support
> from the system libraries is probably lacking as well.

well, splice will be nice, but sendfile() is more portable, having  
sisters in other OSes IIRC. Why not do both?

roy
--
Roy Sigurd Karlsbakk
roy at karlsbakk.net
(+47) 98013356
---
In space, loud sounds, like explosions, are even louder because there  
is no air to get in the way.





More information about the asterisk-dev mailing list