Re: [asterisk-dev] RTP Bridging optimization

2007-05-14 Thread Brandon Kruse
k, -bkruse - Original Message - From: "Kevin P. Fleming" <[EMAIL PROTECTED]> To: "Asterisk Developers Mailing List" Sent: Monday, May 14, 2007 5:38:09 PM (GMT-0800) America/Tijuana Subject: Re: [asterisk-dev] RTP Bridging optimization Vadim Lebedev wrote: > Now

Re: [asterisk-dev] RTP Bridging optimization

2007-05-14 Thread Kevin P. Fleming
Vadim Lebedev wrote: > Now, when we agree that it IS possible to use single pipe for multiple > bridges > let's look on benefits: I did not agree that it was possible, I told you it seemed possible but would likely provide little or no benefit. > As for now Asterisk when packet arrives on a bri

Re: [asterisk-dev] RTP Bridging optimization

2007-05-14 Thread Vadim Lebedev
Kevin P. Fleming wrote: Vadim Lebedev wrote: The trick is that the pipe is ALWAYS empty And when we push something to the pipe, we pull the data from it immideately afterwards. So you've replaced a pair of read()/write() calls with two calls to splice()? It's the same number of

Re: [asterisk-dev] RTP Bridging optimization

2007-05-14 Thread Kevin P. Fleming
Vadim Lebedev wrote: > The trick is that the pipe is ALWAYS empty And when we push > something to the pipe, we pull the data from it immideately afterwards. So you've replaced a pair of read()/write() calls with two calls to splice()? It's the same number of userspace/kernelspace boundary cro

Re: [asterisk-dev] RTP Bridging optimization

2007-05-14 Thread Vadim Lebedev
Kevin P. Fleming wrote: Vadim Lebedev wrote: You're right but only in the case that when you have separtae briding threads for each direction. I was thinkin about situation when there is ONE briging theard for two directions. The you can you the same pipe for both direction. No,

Re: [asterisk-dev] RTP Bridging optimization

2007-05-13 Thread Kevin P. Fleming
Vadim Lebedev wrote: > You're right but only in the case that when you have separtae briding > threads for each direction. > I was thinkin about situation when there is ONE briging theard for two > directions. The you can you the same pipe > for both direction. No, you cannot. How are you going

Re: [asterisk-dev] RTP Bridging optimization

2007-05-13 Thread Vadim Lebedev
Tilghman Lesher wrote: On Sunday 13 May 2007, Kevin P. Fleming wrote: Vadim Lebedev wrote: I beleive you are mistaken, the pipe syscals creates 2 file descirptors, one for reading other for writing so in worst case you need 2 pipes meaning 4 fds so first you splice to a write si

[asterisk-dev] RTP Bridging optimization

2007-05-10 Thread Vadim Lebedev
I wonder if somebody considered to optimize RTP bridging using spllice and tee syscalls? Vadim ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mail