[asterisk-dev] [RFC] optimising RTP traffic?
Roy Sigurd Karlsbakk
roy at karlsbakk.net
Tue Jul 25 04:09:08 MST 2006
hm...
another way, far less portable, though, would be to use libipt/
iptables to rewrite and send the packets from there. not really clean
and so on, but fast, really fast..
roy
On Jul 22, 2006, at 1:28 PM, Roy Sigurd Karlsbakk wrote:
>> Summing it up about optimizing RTP traffic - I get that "sendfile"
>> is off-limits"
>> because one of the file descriptions can't be a socket.
>
> That's right. I was wrong about sendfiles with sockets
>
>> splice - while einticing, is only avaialbe in new Lunix kernels,
>> also it lacks
>> user space library support (I'll take this back if someone
>> explains me how I
>> can do a syscall without library support)
>
> Just create prototypes...
>
> /* Splice address range into a pipe. */
> extern int vmsplice (int __fdout, const struct iovec *__iov, size_t
> __count,
> unsigned int __flags);
>
> /* Splice two files together. */
> extern int splice (int __fdin, int __fdout, size_t __len, unsigned
> int __flags)
> __THROW;
>
> /* In-kernel implementation of tee for pipe buffers. */
> extern int tee (int __fdin, int __fdout, size_t __len, unsigned int
> __flags)
> __THROW;
>
> grabbed from a patch from http://sourceware.org/ml/libc-ports/
> 2006-04/msg00044.html
>
>> This leaves epoll and the only candiate to boost RTP performance
>> on asterisk.
>
> epoll and splice, yes.
>
> 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.
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
--
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