optimizing io

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

optimizing io

Santiago Bragagnolo
Hi all! Im making some performance enhancement on PhaROS, i realised that one of my common scenarios is having several sockets that should receive exactly the same information, in order to do that, im using n calls to the vm, which does n system-calls.

I was wondering if there something done in:

- send the same data to all the sockets in just one primitive
- send the same data to all the sockets in just one syscall. 

I checked around in google but i didn't found anything useful, but probably i have no knowledge about the proper words for such search :).


Thanks! 


Reply | Threaded
Open this post in threaded view
|

Re: optimizing io

Igor Stasenko
Dig deeper: IP protocol supports broadcasting/multicasting.


http://en.wikipedia.org/wiki/IP_multicast


On 20 November 2013 08:49, Santiago Bragagnolo <[hidden email]> wrote:
Hi all! Im making some performance enhancement on PhaROS, i realised that one of my common scenarios is having several sockets that should receive exactly the same information, in order to do that, im using n calls to the vm, which does n system-calls.

I was wondering if there something done in:

- send the same data to all the sockets in just one primitive
- send the same data to all the sockets in just one syscall. 

I checked around in google but i didn't found anything useful, but probably i have no knowledge about the proper words for such search :).


Thanks! 





--
Best regards,
Igor Stasenko.
Reply | Threaded
Open this post in threaded view
|

Re: optimizing io

Santiago Bragagnolo
Great info! Thanks!


2013/11/20 Igor Stasenko <[hidden email]>
Dig deeper: IP protocol supports broadcasting/multicasting.


http://en.wikipedia.org/wiki/IP_multicast


On 20 November 2013 08:49, Santiago Bragagnolo <[hidden email]> wrote:
Hi all! Im making some performance enhancement on PhaROS, i realised that one of my common scenarios is having several sockets that should receive exactly the same information, in order to do that, im using n calls to the vm, which does n system-calls.

I was wondering if there something done in:

- send the same data to all the sockets in just one primitive
- send the same data to all the sockets in just one syscall. 

I checked around in google but i didn't found anything useful, but probably i have no knowledge about the proper words for such search :).


Thanks! 





--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: optimizing io

Esteban A. Maringolo
If your sockets are connection oriented (it is. TCP) using IP
Multicast won't be an option.

Multicast was made with Datagrams in mind instead of Packets. Though
there was a multicast solution that numbered the datagrams to request
retransmission in case of packet loss.

Regards,


Esteban A. Maringolo


2013/11/20 Santiago Bragagnolo <[hidden email]>:

> Great info! Thanks!
>
>
> 2013/11/20 Igor Stasenko <[hidden email]>
>>
>> Dig deeper: IP protocol supports broadcasting/multicasting.
>>
>>
>> http://en.wikipedia.org/wiki/IP_multicast
>>
>>
>> On 20 November 2013 08:49, Santiago Bragagnolo
>> <[hidden email]> wrote:
>>>
>>> Hi all! Im making some performance enhancement on PhaROS, i realised that
>>> one of my common scenarios is having several sockets that should receive
>>> exactly the same information, in order to do that, im using n calls to the
>>> vm, which does n system-calls.
>>>
>>> I was wondering if there something done in:
>>>
>>> - send the same data to all the sockets in just one primitive
>>> - send the same data to all the sockets in just one syscall.
>>>
>>> I checked around in google but i didn't found anything useful, but
>>> probably i have no knowledge about the proper words for such search :).
>>>
>>>
>>> Thanks!
>>>
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: optimizing io

Igor Stasenko



On 20 November 2013 13:40, Esteban A. Maringolo <[hidden email]> wrote:
If your sockets are connection oriented (it is. TCP) using IP
Multicast won't be an option.

Multicast was made with Datagrams in mind instead of Packets. Though
there was a multicast solution that numbered the datagrams to request
retransmission in case of packet loss.


Yeah, but that's what you probably should do to avoid duplicating traffic in a first place: use proper technology for that.
 
Regards,


Esteban A. Maringolo


2013/11/20 Santiago Bragagnolo <[hidden email]>:
> Great info! Thanks!
>
>
> 2013/11/20 Igor Stasenko <[hidden email]>
>>
>> Dig deeper: IP protocol supports broadcasting/multicasting.
>>
>>
>> http://en.wikipedia.org/wiki/IP_multicast
>>
>>
>> On 20 November 2013 08:49, Santiago Bragagnolo
>> <[hidden email]> wrote:
>>>
>>> Hi all! Im making some performance enhancement on PhaROS, i realised that
>>> one of my common scenarios is having several sockets that should receive
>>> exactly the same information, in order to do that, im using n calls to the
>>> vm, which does n system-calls.
>>>
>>> I was wondering if there something done in:
>>>
>>> - send the same data to all the sockets in just one primitive
>>> - send the same data to all the sockets in just one syscall.
>>>
>>> I checked around in google but i didn't found anything useful, but
>>> probably i have no knowledge about the proper words for such search :).
>>>
>>>
>>> Thanks!
>>>
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>
>




--
Best regards,
Igor Stasenko.
Reply | Threaded
Open this post in threaded view
|

Re: optimizing io

Santiago Bragagnolo
In reply to this post by Esteban A. Maringolo
Thanks, i checked that out from some digging. Actually all my protocol run over TCP/IP so i cannot do most, but im taking in care move to UDP or maybe one of the Real time options. Thanks!


2013/11/20 Esteban A. Maringolo <[hidden email]>
If your sockets are connection oriented (it is. TCP) using IP
Multicast won't be an option.

Multicast was made with Datagrams in mind instead of Packets. Though
there was a multicast solution that numbered the datagrams to request
retransmission in case of packet loss.

Regards,


Esteban A. Maringolo


2013/11/20 Santiago Bragagnolo <[hidden email]>:
> Great info! Thanks!
>
>
> 2013/11/20 Igor Stasenko <[hidden email]>
>>
>> Dig deeper: IP protocol supports broadcasting/multicasting.
>>
>>
>> http://en.wikipedia.org/wiki/IP_multicast
>>
>>
>> On 20 November 2013 08:49, Santiago Bragagnolo
>> <[hidden email]> wrote:
>>>
>>> Hi all! Im making some performance enhancement on PhaROS, i realised that
>>> one of my common scenarios is having several sockets that should receive
>>> exactly the same information, in order to do that, im using n calls to the
>>> vm, which does n system-calls.
>>>
>>> I was wondering if there something done in:
>>>
>>> - send the same data to all the sockets in just one primitive
>>> - send the same data to all the sockets in just one syscall.
>>>
>>> I checked around in google but i didn't found anything useful, but
>>> probably i have no knowledge about the proper words for such search :).
>>>
>>>
>>> Thanks!
>>>
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>
>