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

Benny Amorsen benny+usenet at amorsen.dk
Thu Jul 20 10:48:24 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.


/Benny





More information about the asterisk-dev mailing list